Fatal Error when indexing images
-
When I try to index, after some files, it always says:
Could not read image dimensions: …/wp-content/uploads/2011/05/
that a couple of times, and then:
Uknown error: Please see returned value belowand after that it comes to:
Illegal string offset \’file\’ in <b>…/wp-content/plugins/image-cleanup/image-cleanup.plugin.php</b> on line <b>328</b>
and also Uninitialized string offset…What could be the issue here?
Thanks in advance!
-
Ah thank you for the feedback! This is very helpful! I will update the plugin asap.
When the log file states that the image dimensions could not be read it means that the file does exist but that the php function getimagesize does not return a correct value. Usually this means that the file is corrupt.
The illegal offset is a problem which I am tackling right now.
I have updated the plugin to write the meta data to the log file if your specific case occurs. Would you be so kind to email me the log file?
My email is opicron at gmail. Thanks!
Same problem here
[0.0006] Uknown error: Please see returned value below
<b>Notice</b>: Undefined index: file in <b>/home/content/s/u/r/surffxftp/html/wordpress/wp-content/plugins/image-cleanup/image-cleanup.plugin.php</b> on line <b>318</b>
<b>Notice</b>: Undefined index: file in <b>/home/content/s/u/r/surffxftp/html/wordpress/wp-content/plugins/image-cleanup/image-cleanup.plugin.php</b> on line <b>319</b>
<b>Notice</b>: Undefined index: width in <b>/home/content/s/u/r/surffxftp/html/wordpress/wp-content/plugins/image-cleanup/image-cleanup.plugin.php</b> on line <b>321</b>
<b>Notice</b>: Undefined index: height in <b>/home/content/s/u/r/surffxftp/html/wordpress/wp-content/plugins/image-cleanup/image-cleanup.plugin.php</b> on line <b>322</b>
{\”continue\”:true,\”errormsg\”:null,\”halt\”:false}Working on this at the moment. Please expect an update shortly.
The plugin has been updated. Looking forward to your responses!
I’ve just updated the plugin and I’m receiving a fatal error as well.
I’m posting my error message since it differs from what’s been reported above.
Notice: Undefined index: sizes in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747 Warning: Invalid argument supplied for foreach() in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747 Notice: Undefined index: sizes in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747 Warning: Invalid argument supplied for foreach() in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747 Notice: Undefined index: sizes in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747 Warning: Invalid argument supplied for foreach() in /home/myacct/public_html/mysite/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 747Looks like everything’s fine. I uninstalled then re-installed the plugin, reduced both step counts to 50 and re-indexed. No more error message.
Ok thats great, but that means there is still something not quite right. I would really like to dig deeper into that issue. Any change I can debug your site? With access to backend and maybe ftp?
Ah frikafrax,
I found out where this issue was occurring and why. There is an check in place now to avoid this error.
Please de-install and re-install the plugin as the code in the repository has been updated. But the version not (yet).
I try to index, and it quits here:
Step 2/7: retrieving metadata from index [1/145] [Fatal Error!] LogfileHere’s the logfile:
[0.0333] Info: WP_Query results written to log
[0.0001] Registered sizes: [“thumbnail”,”medium”,”large”,”cat_post_thumb_sizecategoryposts-3″,”full”]
[0.0004] Meta indexed so far: 1 / 145
[0.0025] Sample meta:
{“width”:960,”height”:720,”file”:”2013\/10\/Slide1.jpg”,”sizes”:{“thumbnail”:{“file”:”Slide1-150×150.jpg”,”width”:150,”height”:150,”mime-type”:”image\/jpeg”},”medium”:{“file”:”Slide1-300×225.jpg”,”width”:300,”height”:225,”mime-type”:”image\/jpeg”}},”image_meta”:{“aperture”:0,”credit”:””,”camera”:””,”caption”:””,”created_timestamp”:0,”copyright”:””,”focal_length”:0,”iso”:0,”shutter_speed”:0,”title”:””}}
[0.0028] Uknown error: Please see returned value below<b>Notice</b>: Undefined index: viewOption in <b>/home/[sitename_redacted]/wp-content/plugins/the-events-calendar/template-tags.php</b> on line <b>13</b>
{\”continue\”:true,\”errormsg\”:null,\”halt\”:false}Hi,
I also have a fatal error :
Step 2/7: retrieving metadata from index [1/13554] [Fatal Error!]I have the latest version of the plugin, and WordPress 4, Woocommerce 2.2
The log files says this :
[0.1999] Info: WP_Query results written to log
[0.0001] Registered sizes: [“thumbnail”,”medium”,”large”,”brand-thumb”,”shop_thumbnail”,”shop_catalog”,”shop_single”,”widget-thumb”,”full”]
[0.0001] Meta indexed so far: 1 / 13554
[0.0014] Sample meta:
“”
[0.0001] Uknown error: Please see returned value belowWarning: end() expects parameter 1 to be array, boolean given in /var/www/html/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 1478
Warning: key() expects parameter 1 to be array, boolean given in /var/www/html/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 1479
{\”continue\”:true,\”errormsg\”:null,\”halt\”:false}Can you help me ?
Regards,
Christian
The topic ‘Fatal Error when indexing images’ is closed to new replies.