• Hi,

    After 2.5 wks of development on a new site, I was implementing the Global Translator plugin, had adjusted the display to my liking in the sidebar using a dropdown rather than flags, and proceeded to test it.

    That’s when the stuff hit the circulating cooling device…

    The Error:
    Fatal error: Call to a member function get() on a non-object in /hermes/web02/b967/moo.durranilawfirm/wp/wp-includes/query.php on line 27

    The Backtrace:
    #0 get_query_var(cat) called at [/wp/wp-includes/general-template.php:415]
    #1 wp_title() called at [/wp/wp-content/plugins/global-translator/header.php:7]
    #2 require_once(/wp/wp-content/plugins/global-translator/header.php) called at [/wp/wp-content/plugins/global-translator/translator.php:283]
    #3 include_once(/wp/wp-content/plugins/global-translator/translator.php) called at [/wp/wp-settings.php:552]
    #4 require_once(/wp/wp-settings.php) called at [/wp/wp-config.php:78]
    #5 require_once(/wp/wp-config.php) called at [/wp/wp-load.php:30]
    #6 require_once(/wp/wp-load.php) called at [/wp/wp-blog-header.php:11]
    #7 require(/wp/wp-blog-header.php) called at [/wp/index.php:17]

    WP Version:
    2.9

    My Plugins:
    adsense-now
    akismet
    feedburner-plugin
    frontpage-manager
    global-translator
    google-xml-sitemaps-with-qtranslate-support
    role-manager
    rss-icon-widget
    shadowbox-js
    wp-db-backup
    wp-google-analytics
    wp-pagenavi
    wp-super-cache
    wpaudio-mp3-player

    Inserting a conditional into the following code in wp-settings to bypass loading of the translator plugin resulted in an identical fatal when the loop hit super-cache. Bypassing super-cache in a similar way did not eliminate the error.

    $current_plugins = get_option('active_plugins');
    if ( is_array($current_plugins) && !defined('WP_INSTALLING') ) {
    	foreach ( $current_plugins as $plugin ) {
    		// check the $plugin filename
    		// Validate plugin filename
    		if ( validate_file($plugin) // $plugin must validate as file
    			|| '.php' != substr($plugin, -4) // $plugin must end with '.php'
    			|| !file_exists(WP_PLUGIN_DIR . '/' . $plugin)	// $plugin must exist
    			)
    			continue;
    		include_once(WP_PLUGIN_DIR . '/' . $plugin);
    	}
    	unset($plugin);
    }
    unset($current_plugins);

    Likewise, commenting out the call to get_query_var(cat) resulted in the same error, as did commenting out all other calls to get_query_var() within that block (in wp-includes/general-template):

    function wp_title($sep = '»', $display = true, $seplocation = '') {
    	global $wpdb, $wp_locale, $wp_query;
    
    	$cat = get_query_var('cat');
    	$tag = get_query_var('tag_id');
    	$category_name = get_query_var('category_name');
    	$author = get_query_var('author');
    	$author_name = get_query_var('author_name');
    	$m = get_query_var('m');
    	$year = get_query_var('year');
    	$monthnum = get_query_var('monthnum');
    	$day = get_query_var('day');
    	$search = get_query_var('s');

    Currently, there is nothing I’ve tried that will let me get to the site at all, and after several hours of trying to debug (I’m a WP/PHP newb), I’ve come to the experts (y’all) for any assistance that might be forthcoming.

    Anyone ever run across a similar issue? Any chance my site may rise to fight again? Help??

    All input is greatly appreciated, and I’ll try all suggestions.

    MANY thanks in advance…

    Josephican

Viewing 11 replies - 1 through 11 (of 11 total)
  • Rename the wp-content/plugins/global-translator folder via FTP to deactivate the Global Translator plugin.

    Thread Starter josephican

    (@josephican)

    @esmi

    Thanks. I tried your suggestion. The results follow:

    Error:
    Fatal error: Call to undefined function update_meta_cache() in /wp/wp-includes/post.php on line 3485

    The relevant code:

    // WP_POST_REVISIONS = true (default), -1
    	if ( !is_numeric( WP_POST_REVISIONS ) || WP_POST_REVISIONS < 0 )
    		return $return;

    Try deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). You might also want to try switching to the default theme to rule out any theme-related problems

    Thread Starter josephican

    (@josephican)

    esmi,

    I’d love to try that… unfortunately, I have NO access to the site at all… not even admin

    You can reset the plugins folder by FTP or phpMyAdmin.

    Thread Starter josephican

    (@josephican)

    esmi,

    Followed your directions and that of the codex (thanks). Got the same error as last in post.php

    Grab a fresh download of WP and upload everything except the wp-content folder and your wp-config.php file via FTP.

    Thread Starter josephican

    (@josephican)

    Not being skeptical, but I think I’ll back it up first (sheepish grin), and then try that. Let you know.

    Thread Starter josephican

    (@josephican)

    Well, well…

    I have a site. Very cool. Things are a bit akilter, but I don’t see that as a major issue.

    MANY thanks, esmi. How should one proceed from here?

    Also, just so you can see it, is posting the url allowed in this forum?

    How should one proceed from here?

    You could try renaming your plugin folder back to “plugins” (or resetting it in PhpMyAdmin if that was the method you used). Then activate the plugins one at a time – checking the site thoroughly before proceeding to the next plugin.

    is posting the url allowed in this forum

    Absolutely! Sometimes, it’s essential to see the site in action before you can come up with a suggestion, so feel free to post your url if necessary.

    Thread Starter josephican

    (@josephican)

    esmi,

    So far so good. All working but the translations. Afraid to activate that one. Any way to back up complete site prior to this seemingly dangerous task?

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

The topic ‘Fatal – site now dead’ is closed to new replies.