Hm. That error has never come up before… Which version of WP are you using? Have you tried enabling WP_DEBUG to get a little more info?
My guess is that WPSSO is triggering a bug in another plugin. Have you tried disabling all other plugins one by one?
Let me know which errors come up after enabling WP_DEBUG. More info on enabling the constant can be found here: http://wpsso.com/codex/plugins/wpsso/installation/debugging-and-problem-solving/
js.
Thread Starter
cpier
(@cpier)
Thanks for the very fast response. Unfortunately, this was on a live server where I can’t experiment much.
But I’ll try to reproduce this on the staging server and get back here in a few days because I’m thinking about using this plugin on other WordPress sites as well.
Looking forward to the results. 😉
js.
I hit this same problem…
I updated the plugin WPSSO plugin v3.29.4-1 this morning and have found that it broke a portion of the media upload module. Going to Add Post > Add Media > Select Image > Edit Image. The image fails to load withiin the tool that allows you to crop etc.
From the console, the error looks like this:
<siteurl>/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=98d79c427e&postid=5778&rand=15218
From the server error log:
[Fri Apr 15 15:01:49 2016] [error] PHP Fatal error: Call to a member function get_options() on null in /var/www/html/wp-content/plugins/wpsso/lib/util.php on line 174, referer: <siteurl>/wp-admin/post-new.php
I disabled the plugin and the media uploader works again.
I am going to rollback the plugin, although I dont see an easy way to do that either from the documentation on the wordpress site. All i see under other versions is the development version. Frustrating.
Regards
Fantastic, thanks for the excellent bug report! With this information I was able to fix the issue quickly and release a new version. If there was a rating system for replies, yours would get 5 stars! 😉
js.
Thread Starter
cpier
(@cpier)
Wow! Thanks to both of you. Great work and awesome response time.