• I published a website at UNSG.org back in 2006 that is now simply an archive site. I can’t recall exactly which version of WP it was written is, but it would have been which one was the newest at the beginning of 2006.

    I’ve not updated the site since 2007 – no upgrades, no new plugins, etc. It is simply an archive of the posts for scholars and researchers on the topic of the UN Secretary General race in 2006.

    However, when I went to the site today, the following appeared:

    Warning: main(/home3/glblctzn/public_html/wordpress/wp-includes/functions.php) [function.main]: failed to open stream: Permission denied in /home3/glblctzn/public_html/wordpress/wp-settings.php on line 116

    Warning: main(/home3/glblctzn/public_html/wordpress/wp-includes/functions.php) [function.main]: failed to open stream: Permission denied in /home3/glblctzn/public_html/wordpress/wp-settings.php on line 116

    Fatal error: main() [function.require]: Failed opening required ‘/home3/glblctzn/public_html/wordpress/wp-includes/functions.php’ (include_path=’.:/usr/php4/lib/php:/usr/local/php4/lib/php’) in /home3/glblctzn/public_html/wordpress/wp-settings.php on line 116

    Any suggestions on how this error might have arisen, or how to fix it would be greatly appreciated.

    Thanks,
    Tony

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you please list out the url of your site. This would be a great info!

    Thread Starter tonyfleming

    (@tonyfleming)

    Hi tonyfleming,

    This is a response to another “closed” thread that you spoke on “[Plugin Widget Context] Target by URL does not work”.

    I had this very same issue and believe it to be a problem of the plugin. I have managed to solve it for my website. Please let me know if you are interested and I will post you the modified widget context code.

    Kind regards,
    Lea Hayes

    Thread Starter tonyfleming

    (@tonyfleming)

    Hi Lea — Sorry for the late response. I would like to hear how you fixed that issue with Context widget. I moved on from that project for a brief while but would like to use that tool if a fix is available.

    Thanks,
    Tony

    Hey Tony,

    I updated the following functions:

    function get_current_url() {
    		if ($_SERVER['REQUEST_URI'] == '')
    			$uri = $_SERVER['REDIRECT_URL'];
    		else
    			$uri = $_SERVER['REQUEST_URI'];
    
    		$url = $uri;
    
    		if (substr($url, -1) == '/')
    			$url = substr($url, 0, -1);
    
    		return $url;
    	}
    
    	// Thanks to Drupal: http://api.drupal.org/api/function/drupal_match_path/6
    	function match_path($path, $patterns) {
    		static $regexps;
    
    		// get home url;
    		$home_url = preg_replace('/^[^\/]+\/\/[^\/]+/', '', get_bloginfo('url'));
    
    		// add trailing slash if missing
    		if (substr($home_url, -1) !== '/')
    			$home_url = $home_url . '/';
    
    		// Remove http:// from the url user has specified
    		if (strstr($patterns, 'http://'))
    			$patterns = str_replace('http://', '', $patterns);
    
    		if (!isset($regexps[$patterns])) {
    			$regexps[$patterns] = '/^'.preg_quote($home_url, '/').'('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<home\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote($home_url, '/') .'\2'), preg_quote($patterns, '/')) .')$/';
    		}
    		return preg_match($regexps[$patterns], $path);
    	}

    Hope this helps!

    Best wishes,
    Lea

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No new plugins, no upgrades, but suddenly WP site is not accessible’ is closed to new replies.