Viewing 10 replies - 16 through 25 (of 25 total)
  • Hi Frank,

    Deactivating AO brings website back to normal.

    We have noticed no server conflict with other plugin we are using:
    They are:

    AIOSEO Pack
    Jetpack
    WP Smush
    MailChimp
    Soliloquy
    Contact Form 7
    Mashshare Share Buttons

    Will share input on server log in a while.

    Thank You

    We have been getting this error

    PHP Fatal error: Call to a member function get() on a non-object in /var/www/html/wp-includes/cache.php on line 123

    PHP Fatal error: Call to a member function get() on a non-object in /var/www/html/wp-includes/cache.php on line 123

    But I think, this was because define(“WP_CACHE”, true); has been added in wp-cache and no AO has been deactivated.

    Rest there is no serious log.

    I would like to draw your attention towards one more points – We have Google Pagespeed Mod installed and activated on our server. We are not very sure it that can cause some conflict. But it’s been there since last 1 year without any issues.

    Plugin Author Frank Goossens

    (@futtta)

    PHP Fatal error: Call to a member function get() on a non-object in /var/www/html/wp-includes/cache.php on line 123

    AO doesn’t use cache.php, that error is not related to AO I’m afraid

    I would like to draw your attention towards one more points – We have Google Pagespeed Mod installed and activated on our server. We are not very sure it that can cause some conflict. But it’s been there since last 1 year without any issues.

    that should be no problem.

    Got it.

    But We are still unable to use AO as we are getting 500 server error. Even when all plugins are deactivated except AO.

    Plugin Author Frank Goossens

    (@futtta)

    But We are still unable to use AO as we are getting 500 server error. Even when all plugins are deactivated except AO.

    no idea what is happening I’m afraid Reckon Talk. AO was working (except for the theme-related issue with AIOSEO’s title rewrite) before until you made changes (disabling plugins). somehow one of those changes broke something, but I have no indication of what broke AO as there’s no relevant info in the error-log (except for the reference to cache.php, which is not related to AO). maybe remove AO entirely and re-install?

    frank

    Thread Starter jgadbois

    (@jgadbois)

    I finally tracked down in our theme anyway what was breaking (but not why) – there was a query_posts call in our home page template. Removing this call fixed the output buffering problem. I’m not sure why this would cause a problem – I verified there wasn’t any ob_* calls in the theme and it only started happening when Autoptimize was activated.

    Plugin Author Frank Goossens

    (@futtta)

    wow, that’s bizarre!

    so one has:
    * a theme with a query_posts-call
    * all in one SEO title rewriting active
    * autoptimize active

    then AIOSEO’s title rewrite functionality breaks. remove any of those 3 conditions and there is no problem.

    I’ll be very honest here; I have no idea where/ how to start fixing this. do share this with the AIOSEO-guys, I’m sure they’re way smarter ??

    frank

    Thread Starter jgadbois

    (@jgadbois)

    Looking into it a little more seems like themes should not be using query_posts normally within the theme, so I removed the call in one site and in the other just hooked into the default query_posts with the pre_get_posts hook to make the changes I need.

    Plugin Author Frank Goossens

    (@futtta)

    based on jgadbois’ info I Googled around a bit to indeed find that using query_posts in a theme is a big no-no really as it can break things. cfr.

    https://make.www.ads-software.com/themes/2012/12/14/query_posts/
    https://www.slideshare.net/andrewnacin/you-dont-know-query-wordcamp-portland-2011
    https://wordpress.stackexchange.com/a/1755/3966

    frank

    Thread Starter jgadbois

    (@jgadbois)

    Thanks Frank for all the help – hopefully other people will find this thread useful if they encounter the same issues.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Problem with Autoptimize and All in One SEO page titles’ is closed to new replies.