sewpafly / post-thumbnail-editor

Wordpress Plugin to manually edit post thumbnails
http://wordpress.org/extend/plugins/post-thumbnail-editor/
32 stars 18 forks source link

Strict Standards error #76

Closed commodoretyler closed 10 years ago

commodoretyler commented 10 years ago

Getting this error on the media edit page after install: Strict Standards: Only variables should be assigned by reference in /Users/tyler.moore/Sites/AccretiveHealth/wp-content/plugins/post-thumbnail-editor-master/post-thumbnail-editor.php on line 254

Getting this error on the Media list page after install: Notice: Trying to get property of non-object in /Users/tyler.moore/Sites/AccretiveHealth/wp-includes/capabilities.php on line 1078

Also, script times out on Post Thumbnail Edit page screen shot 2013-09-25 at 12 38 32 pm

sewpafly commented 10 years ago

are you using the latest from github? I'm the only person that I know of that is doing that, so I'm not sure about the ChromePhp stuff... You might try the 2.2.1 tag

sewpafly commented 10 years ago

Which version of wordpress are you running? Have you tried disabling all other plugins? (the timeout issue)

commodoretyler commented 10 years ago

I've tried both the 2.2.1 version and the github version. Wordpress 3.6.1. Yes, I've tried deactivating all the other plugins.

sewpafly commented 10 years ago

Let's see if we can solve one problem at a time:

First, change line 254 to read: if ( !$post = get_post( $id ) ) {. (You just remove the & after the =)

commodoretyler commented 10 years ago

Perfect! That actually cleared the whole thing up. Thanks so much for your quick response.

sewpafly commented 10 years ago

Thanks, I'll check in the fix too.