2012-06-11, 05:55:04
hameau Wrote:Using a copy from your svn, downloaded yesterday, 2012/06/09, on Debian + PHP 5.3.3.
As soon as Image Resize Filter is enabled, Apache crashes with an apc-error :Code:Cannot redeclare simple_html_dom_node in [...]plugins/ImageResizeFilter.php on line 31.
Changing the referenced include to include_once fixed it for me, but I don't know if this is the best way to do it. Apart from that, the plugin seems to work well, in my limited testing – thanks !
EDIT to add : I have just seen a debug notice :This appears where the template calls get_i18n_content() and is evident on all pages.Code:Notice: Constant RESIZE_CACHE_FOLDER already defined in [...]plugins/ImageResizeFilter.php on line 29
Just moving the current line 29 outside the function declaration seems to work.
Thanks! Marcel did the work on this one and sent a pull request which is now merged.
Quote:Incidentally, do you think there should be some sort of cleaning of the resized image folder ? It doesn't take much (user) experimentation with sizes before it starts to get a bit busy. Perhaps just a manual 'Clear resized images' button somewhere ?
I added a clear cache button on the admin page in the plugins tab.
Thanks for the suggestions and help!