0
Welcome Guest! Login
0 items Join Now

Cache error

  • Cache error

    Posted 12 years 1 month ago
    • I see a lot of errors in the log like this:
      [18-Mar-2013 03:05:33 UTC] PHP Fatal error: Call to a member function get() on a non-object in /mnt/stor10-wc1-ord1/806727/806778/www.vanilla.com/web/content/wp-includes/cache.php on line 113

      I had super cache installed but not on. I do have the Gantry cache and gzip on. I just turned them off and turned on Super Cache to see if that helps. The reason I went to the log is because I got a timeout message in a Rackspace error page that popped up. The odd thing was the pages seemed to be loading fine and still I got that.

      The log is full of those errors, but there was one the same time I got the connection error message. That error appears in the log over and over again, possibly every time someone hits the page???? Not sure.

      And there was a Gantry error an hour earlier:
      [18-Mar-2013 16:55:36 UTC] WordPress database error Got error -1 from storage engine for query SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('nav_menu') AND tr.object_id IN (4971, 4972, 4973, 4977, 4978, 4976, 5012, 5016, 4992, 5006, 5014, 4993, 4994, 4995, 4996, 4997, 4998, 5000, 5001, 4999, 5018, 5009, 5010, 5020, 5021, 5019, 5004, 5003, 5007, 5017, 5008, 4982, 4987, 4990, 4986, 4989, 4988, 4991, 4983, 4984, 4980, 4975) ORDER BY t.name ASC made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, gantry_post_parse_load_action, Gantry->postParseLoad, GantryOverridesEngine->run, RuleSession->fireAll, RuleSession->fire, Rule->checkAll, Rule->check, eval, GantryFactMenu->isMenuItem, GantryFactMenu->setupBaseInfo, wp_get_nav_menu_items, get_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms

      What's going on? How do I fix this? Apparently it's blocking people so this is a very serious.

      Help please. Thank you.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Cache error

    Posted 12 years 1 month ago
  • Re: Cache error

    Posted 12 years 1 month ago
    • Thanks. So am I right in leaving the Gantry zip and cache off and keep super cache on? Will your solution fix the errors?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Cache error

    Posted 12 years 1 month ago
    • I can't guarantee anything when it comes to complex stuff like cache but your idea should work.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Cache error

    Posted 12 years 1 month ago
    • and what about your idea? I wasn't sure why you were suggesting it. Looks interesting. Have you tried it with gantry?
    • The following users have thanked you: Leonel Porras

  • Re: Cache error

    Posted 12 years 1 month ago
    • Interesting. When I turned on Super Cache and turned off Gantry cache and zip, the site slowed WAY DOWN. I just turned off Super Cache and it sped up. Turned on Gantry GZip and the speed is still good. Now I'm worried about getting the caching errors. <sigh>

      Yep. Just checked. Errors back. So Gantry's GZip might be what is generating errors.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Cache error

    Posted 12 years 1 month ago
    • And you are 100% sure that eAccelerator is off? I think that thing is breaking our stuff.

      I have seen that before :(
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Cache error

    Posted 12 years 4 weeks ago
    • Prim, I called Rackspace. They don't use eAccelerator, but they do use xCache.

      _________________________

      Cloud Sites PHP Op-code Cache

      We will be introducing an op-code cache on our PHP based web nodes. Normally, PHP files have to be read and parsed for each request before they are executed. This processing time gets longer the more complex your site is. The cache temporarily stores the result of this step so it may be used for further requests eliminating processing overhead and the associated resource usage.

      Our cache is based on XCache, however we will be using just the code-caching portion. If your application has native support for XCache, it will not be able to take advantage of it. Direct user access will not be supported.

      We have tested and ensured compatibility with a very wide variety of common applications and code. Some applications may still exhibit behaviors like a blank white page or reporting errors. If the cache is suspected for the cause of the errors, it can be disabled in the .htaccess file with the following:

      php_flag xcache.cacher 0
      If the cache ends up not being the problem, please remove the entry to ensure you are getting the benefits of the cache.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Cache error

    Posted 12 years 4 weeks ago
    • Ah yeah, i've seen issues with xCache on several sites - Including my own. I had to disable it because i found no stable solution to get around it.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Cache error

    Posted 12 years 4 weeks ago
    • I turned it off. Haven't gotten any timeouts, but I don't always get them so I don't know if it helps. I just checked the logs and look what just came in, and this is just a few. THere are 140 of them.

      [19-Mar-2013 22:17:48 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.slug = 'main-2' LIMIT 1 made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, gantry_post_parse_load_action, Gantry->postParseLoad, GantryOverridesEngine->run, RuleSession->fireAll, RuleSession->fire, Rule->checkAll, Rule->check, eval, GantryFactMenu->isParentOf, GantryFactMenu->setupBaseInfo, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:48 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.name = 'Main 2' LIMIT 1 made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, gantry_post_parse_load_action, Gantry->postParseLoad, GantryOverridesEngine->run, RuleSession->fireAll, RuleSession->fire, Rule->checkAll, Rule->check, eval, GantryFactMenu->isParentOf, GantryFactMenu->setupBaseInfo, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:48 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.slug = 'main-2' LIMIT 1 made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, gantry_post_parse_load_action, Gantry->postParseLoad, GantryOverridesEngine->run, RuleSession->fireAll, RuleSession->fire, Rule->checkAll, Rule->check, eval, GantryFactMenu->isParentOf, GantryFactMenu->setupBaseInfo, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:48 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.name = 'Main 2' LIMIT 1 made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, gantry_post_parse_load_action, Gantry->postParseLoad, GantryOverridesEngine->run, RuleSession->fireAll, RuleSession->fire, Rule->checkAll, Rule->check, eval, GantryFactMenu->isParentOf, GantryFactMenu->setupBaseInfo, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:50 UTC] WordPress database error MySQL server has gone away for query SELECT post_id FROM wp_postmeta, wp_posts WHERE ID = post_id AND post_type = 'post' AND meta_key = '_wp_old_slug' AND meta_value = 'rose-red-velvet-cake' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), call_user_func_array, wp_old_slug_redirect
      [19-Mar-2013 22:17:51 UTC] WordPress database error MySQL server has gone away for query SELECT ID FROM wp_posts WHERE post_name LIKE 'rose-red-velvet-cake%' AND post_type IN ('post', 'page', 'attachment', 'shopp_product') AND post_status = 'publish' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), call_user_func_array, redirect_canonical, redirect_guess_404_permalink
      [19-Mar-2013 22:17:51 UTC] WordPress database error MySQL server has gone away for query SELECT option_value FROM wp_options WHERE option_name = 'rt_enigma_wp-template-options-override-widgets-6' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rt_enigma_wp/index.php'), Gantry->displayModules, GantryWidgetsRenderer->display, dynamic_sidebar, apply_filters('dynamic_sidebar_params'), call_user_func_array, GantryWidgetsRenderer::filterWidget, Gantry->renderLayout, GantryLayoutWidget_Standard->render, Gantry->renderLayout, GantryLayoutChrome_Standard->render, GantryLayout->_getWidgetInstanceParams, WP_Widget->get_settings, get_option, apply_filters('option_widget_text'), call_user_func_array, gantry_setup_override_widget_instances_intercept, get_option
      [19-Mar-2013 22:17:51 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.slug = 'main-2' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rt_enigma_wp/index.php'), Gantry->displayModules, GantryWidgetsRenderer->display, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, GantryWidgetMenu->widget, GantryWidgetMenu->render, GantryWidgetMenu->initializeMenu, RokMenu->initialize, RokMenuDefaultRenderer->initialize, AbstractRokMenuProvider->getMenuTree, AbstractRokMenuProvider->populateMenuTree, GantryMenuProviderWordpress->getMenuItems, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:51 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.name = 'main-2' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rt_enigma_wp/index.php'), Gantry->displayModules, GantryWidgetsRenderer->display, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, GantryWidgetMenu->widget, GantryWidgetMenu->render, GantryWidgetMenu->initializeMenu, RokMenu->initialize, RokMenuDefaultRenderer->initialize, AbstractRokMenuProvider->getMenuTree, AbstractRokMenuProvider->populateMenuTree, GantryMenuProviderWordpress->getMenuItems, wp_get_nav_menu_object, get_term_by
      [19-Mar-2013 22:17:51 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('category') AND ( t.term_id <> 122 ) ORDER BY t.name ASC made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rt_enigma_wp/index.php'), Gantry->displayMainbody, GantryMainBodyRenderer->display, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, GantryWidget->widget, GantryWidgetCategories->render, wp_dropdown_categories, get_terms
      [19-Mar-2013 22:17:52 UTC] WordPress database error MySQL server has gone away for query SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 5 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rt_enigma_wp/index.php'), Gantry->displayMainbody, GantryMainBodyRenderer->display, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, WP_Widget_Recent_Posts->widget, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
      [19-Mar-2013 22:31:48 UTC] PHP Fatal error: Call to a member function get() on a non-object in /mnt/stor10-wc1-ord1/806727/806778/www.vanilla.com/web/content/wp-includes/cache.php on line 113

Time to create page: 0.067 seconds