[wp-trac] Re: [WordPress Trac] #3883: PHP Fatal error: Call to
undefined
function is_wp_error() in /wp-includes/functions.php on line 1299
w/ patch
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 27 16:40:56 GMT 2007
#3883: PHP Fatal error: Call to undefined function is_wp_error() in /wp-
includes/functions.php on line 1299 w/ patch
---------------------+------------------------------------------------------
Reporter: tacker | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone:
Component: General | Version: 2.2
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by tacker):
My first fix breaks other stuff.
This works:
{{{
#!patch
Index: wp-blog-header.php
===================================================================
--- wp-blog-header.php (Revision 4953)
+++ wp-blog-header.php (Arbeitskopie)
@@ -5,6 +5,7 @@
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
+ require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I
need this before we can get started. Need more help? <a
href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You
can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code>
file through a web interface</a>, but this doesn't work for all server
setups. The safest way is to manually create the file.", "WordPress
› Error");
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3883#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list