Hi. Testing out the plug using WordPress 2.7.1 on http://photographer365.com. As I hit publish on my blog post using the plug in, I saw this error message appear:
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Cannot modify header information – headers already sent by (output started at /home/xyz/public_html/wp-content/plugins/thesography.php:67) in /home/xyz/public_html/wp-includes/pluggable.php on line 850
As I display the preview of the post, I see the following error on my page (nothing else displays)
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Cannot modify header information – headers already sent by (output started at /home/xyz/public_html/wp-content/plugins/thesography.php:67) in /home/xyz/public_html/wp-includes/pluggable.php on line 850
When I look at the edit screen for the post, I see this just above the EXIF box:
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 37
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 40
Let me know if you have any fixes you want me to try.
I should have also mentioned that I added it manually using the code [exif show="aperture,iso,shutter,camera,focus,time"]
It throuws the following error when the post is displayed.
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 261
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 264
However, it does display the EXIF data following that error:
Aperturef/13CameraCanon EOS 50DTaken2 June, 2009Focal length70 mmISO200Shutter speed1/125 s
I believe all of those errors are a result of not visiting the Options page. I’ve been meaning to find a way to automatically redirect to the Options page after activation so that people don’t have to remember to do it, I will try to add some stuff so that a warning with the link shows up instead of those errors.
Do you think it would be more useful to redirect to the Options page after activating the plugin, or to just provide a link to the options page in the plugin description?
You are right. I did not go to that page. THe kids distracted me about that point in the process and when I came back to the text I skipped right over that step. A redirect to the options page to force visiting would be great since it is required. Or if you could throw up some reddish warning text on the theme activation page if the step has not been completed that would also help.
It is not throwing the errors any more. Adding the code to the post ( [exif show="aperture,iso,shutter,camera,focus,time"] ) works fine. However, it is not auto displaying the EXIF fields that I checked automatically. I have a feeling though it is caused by the specialized theme that I am using the pulls the first photo out of the body of the post and puts it at the top of the page. I’ll try it with another theme in a day or two and let you know what happens.
Automatic insertion is only for the Thesis theme at this time (was yours a modification of Thesis or just had some similar aspects? Very cool homepage anyway). If you have other themes that are accessible by hooks that you think I should look into integrating with I’m more than happy to take suggestions. I will probably look to integrate with Hybrid as that uses hooks.
Brett, if you want to try v1.0b2 before visiting the options page to see how this one behaves and if it shows you a warning please do. I will have to try it on a fresh install later.
(Woops… Looks like this message didn’t get posted yesterday when I intended.)
Is there a table that I need to delete before trying that v1.0b2 to see how the initial install goes? Or can I just delete the file and install from scratch?
To clear the options you need to deactivate the plugin, then if your theme has a functions.php (or custom_functions.php for Thesis) paste the line:
delete_option('thesography_options');
Wrapped in PHP tags if needed (depends what is already in the functions file). Then load your site once. Then delete that line from the file again. Then you can activate the new version. The new version will happily replace the old one, but if you’d like to test a naked install then the above should do it.
{ 9 comments… read them below or add one }
Hi. Testing out the plug using WordPress 2.7.1 on http://photographer365.com. As I hit publish on my blog post using the plug in, I saw this error message appear:
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Cannot modify header information – headers already sent by (output started at /home/xyz/public_html/wp-content/plugins/thesography.php:67) in /home/xyz/public_html/wp-includes/pluggable.php on line 850
As I display the preview of the post, I see the following error on my page (nothing else displays)
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 67
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 70
Warning: Cannot modify header information – headers already sent by (output started at /home/xyz/public_html/wp-content/plugins/thesography.php:67) in /home/xyz/public_html/wp-includes/pluggable.php on line 850
When I look at the edit screen for the post, I see this just above the EXIF box:
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 37
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 40
Let me know if you have any fixes you want me to try.
Thank you, Brett
I should have also mentioned that I added it manually using the code [exif show="aperture,iso,shutter,camera,focus,time"]
It throuws the following error when the post is displayed.
Warning: Invalid argument supplied for foreach() in /home/xyz/public_html/wp-content/plugins/thesography.php on line 261
Warning: extract() [function.extract]: First argument should be an array in /home/xyz/public_html/wp-content/plugins/thesography.php on line 264
However, it does display the EXIF data following that error:
Aperturef/13CameraCanon EOS 50DTaken2 June, 2009Focal length70 mmISO200Shutter speed1/125 s
Thanks Brett! I will test that now and get back to you.
Hey Brett,
I believe all of those errors are a result of not visiting the Options page. I’ve been meaning to find a way to automatically redirect to the Options page after activation so that people don’t have to remember to do it, I will try to add some stuff so that a warning with the link shows up instead of those errors.
Do you think it would be more useful to redirect to the Options page after activating the plugin, or to just provide a link to the options page in the plugin description?
You are right. I did not go to that page. THe kids distracted me about that point in the process and when I came back to the text I skipped right over that step. A redirect to the options page to force visiting would be great since it is required. Or if you could throw up some reddish warning text on the theme activation page if the step has not been completed that would also help.
It is not throwing the errors any more. Adding the code to the post ( [exif show="aperture,iso,shutter,camera,focus,time"] ) works fine. However, it is not auto displaying the EXIF fields that I checked automatically. I have a feeling though it is caused by the specialized theme that I am using the pulls the first photo out of the body of the post and puts it at the top of the page. I’ll try it with another theme in a day or two and let you know what happens.
Glad the errors have ceased.
Automatic insertion is only for the Thesis theme at this time (was yours a modification of Thesis or just had some similar aspects? Very cool homepage anyway). If you have other themes that are accessible by hooks that you think I should look into integrating with I’m more than happy to take suggestions. I will probably look to integrate with Hybrid as that uses hooks.
Brett, if you want to try v1.0b2 before visiting the options page to see how this one behaves and if it shows you a warning please do. I will have to try it on a fresh install later.
(Woops… Looks like this message didn’t get posted yesterday when I intended.)
Is there a table that I need to delete before trying that v1.0b2 to see how the initial install goes? Or can I just delete the file and install from scratch?
To clear the options you need to deactivate the plugin, then if your theme has a functions.php (or custom_functions.php for Thesis) paste the line:
delete_option('thesography_options');Wrapped in PHP tags if needed (depends what is already in the functions file). Then load your site once. Then delete that line from the file again. Then you can activate the new version. The new version will happily replace the old one, but if you’d like to test a naked install then the above should do it.