Support » Plugin: All in One SEO Pack » Code Errors within pages

  • Hi,

    Just installed this plugin on a newsite that went live last week and when i open up a page to add keywords etc to AIOSP i have 11 errors showing, see below

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-includes/query.php on line 3385

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-includes/query.php on line 3387

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-includes/query.php on line 3389

    Notice: Undefined variable: authordata in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1483

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1483

    Notice: Undefined variable: authordata in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1484

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1484

    Notice: Undefined variable: authordata in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1485

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1485

    Notice: Undefined variable: authordata in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1486

    Notice: Trying to get property of non-object in /home/xxxxx/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 1486

    As a precaution i have disabled all other plugins with no change along with deleting AIOSP and reinstalling but still get errors. I have this plugin runnning on over 25 sites and never had any issues like this. Thanks in advance for your help and awesome plugin.

    Ross

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

Viewing 6 replies - 1 through 6 (of 6 total)
  • We’ve got the same problem.

    Plugin Contributor Peter Baylies

    (@pbaylies)

    This is a small bug with a fairly easy fix, and will be fixed in the next release; look for the apply_page_title_format function in aioseop_class.php and replace the first three lines with these four lines, aka the part above where it says $new_title

    function apply_page_title_format( $title ) {
    		global $aioseop_options, $post;
    		$title_format = $aioseop_options['aiosp_page_title_format'];
    		$authordata = get_userdata( $post->post_author );

    Terrific Peter thanks! We’ll try this.

    Hi Peter and thanks for that, i have added the above code which has reduced the amount of errors i was getting but i still get the following!

    Trying to get property of non-object in /home/xxxxxx/public_html/wp-includes/query.php on line 3385

    Notice: Trying to get property of non-object in /home/xxxxxx/public_html/wp-includes/query.php on line 3387

    Notice: Trying to get property of non-object in /home/xxxxxx/public_html/wp-includes/query.php on line 3389

    Plugin Contributor Peter Baylies

    (@pbaylies)

    RosscoGC,

    So this is a bit harder to troubleshoot; those messages are coming from a WordPress core file. It could still be due to a bug or other issue with All in One SEO Pack, but could also be due to a conflict with your theme or with a plugin; can you tell me what version of WordPress you’re using (it is 3.5.1?), and if there’s anything else on your site that’s adding metaboxes to that edit page? You can also troubleshoot this by deactivating any other plugins that may conflict and/or changing your theme to one of the default themes that ships with WordPress such as Twenty Twelve; I’d recommend doing this on a development copy of your site if possible.

    Hi – I’m actually getting the same error message: “Trying to get property of non-object in /home/xxxxxx/public_html/wp-includes/query.php on line 3385”

    And I may know which plugin could be conflicting, but no clue how to resolve. I’m using Advanced Custom Fields (which does use metaboxes) and it’s pretty integral to the functionality of the site, so not really possible remove – do you have any thoughts on how I could fix?

    Thanks for any help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Code Errors within pages’ is closed to new replies.