Title: Code Errors within pages
Last modified: August 21, 2016

---

# Code Errors within pages

 *  [RosscoGC](https://wordpress.org/support/users/rosscogc/)
 * (@rosscogc)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/all-in-one-seo-pack/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [computercourage](https://wordpress.org/support/users/computercourage/)
 * (@computercourage)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818458)
 * We’ve got the same problem.
 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818460)
 * 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 );
       ```
   
 *  [computercourage](https://wordpress.org/support/users/computercourage/)
 * (@computercourage)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818468)
 * Terrific Peter thanks! We’ll try this.
 *  Thread Starter [RosscoGC](https://wordpress.org/support/users/rosscogc/)
 * (@rosscogc)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818502)
 * 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
 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818514)
 * 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.
 *  [erinallen](https://wordpress.org/support/users/erinallen/)
 * (@erinallen)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818566)
 * 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.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [all](https://wordpress.org/support/topic-tag/all/)
 * [get](https://wordpress.org/support/topic-tag/get/)
 * [in](https://wordpress.org/support/topic-tag/in/)
 * [non object](https://wordpress.org/support/topic-tag/non-object/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [of](https://wordpress.org/support/topic-tag/of/)
 * [Property](https://wordpress.org/support/topic-tag/property/)
 * [to](https://wordpress.org/support/topic-tag/to/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 6 replies
 * 4 participants
 * Last reply from: [erinallen](https://wordpress.org/support/users/erinallen/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/code-errors-within-pages/#post-3818566)
 * Status: not resolved