PDA

View Full Version : Help



xxMATTGxx
09-08-2006, 07:01 AM
I need some on help on this error;

Warning: main(ABSPATHWPINC/template-loader.php): failed to open stream: No such file or directory in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17

Fatal error: main(): Failed opening required 'ABSPATHWPINC/template-loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17


Thanks

Matt

Fujitsu
09-08-2006, 08:06 AM
No such file or directory

Have you uploaded it?

ClubTime
09-08-2006, 12:22 PM
If you have uploaded it maybee theres a spelling mistake somewhere as it says there is an error on line 17

xxMATTGxx
09-08-2006, 03:41 PM
UPDATE:

Now it is;

Warning: main(ABSPATHWPINC/template-loader.php): failed to open stream: No such file or directory in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17

Fatal error: main(): Failed opening required 'ABSPATHWPINC/template-loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17

and the file is:

<?php

if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
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://wordpress.org/docs/faq/#wp-config'>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.");
}

$wp_did_header = true;

require_once( dirname(__FILE__) . '/wp-config.php');

function wp(){};
function gzip_compression(){};

require_once(ABSPATH . WPINC . '/template-loader.php');

endif;

?>

ClubTime
09-08-2006, 04:54 PM
change:


require_once(ABSPATH . WPINC . '/template-loader.php');

to


require_once(\ABSPATHWPINC'/template-loader.php\');


make sure that the folder on your server is ABSPATHWPINC

xxMATTGxx
09-08-2006, 04:57 PM
What folder is that?

ClubTime
09-08-2006, 05:00 PM
Ooo RIght Sorry change:


require_once(ABSPATH . WPINC . '/template-loader.php');

To:


require_once('\template-loader.php');

xxMATTGxx
09-08-2006, 05:26 PM
done that now i get;

Warning: main(\template-loader.php): failed to open stream: No such file or directory in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17

Fatal error: main(): Failed opening required '\template-loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ifoxmatt/public_html/blog/wp-blog-header.php on line 17

ClubTime
09-08-2006, 05:28 PM
then sorry i dont know :)

Tomm
09-08-2006, 06:38 PM
Are you trying to install wordpress via cPanel since I tryed it and I got a error like that. Install it manually.

xxMATTGxx
09-08-2006, 06:44 PM
How do i install it manually?

Fujitsu
09-08-2006, 06:45 PM
Download it from wordpress.com and install it.

xxMATTGxx
09-08-2006, 06:48 PM
well i do.. i download it from there , upload it :S

then try and install it "/

Fujitsu
09-08-2006, 07:25 PM
Um, email them or try support forums?

ClubTime
10-08-2006, 11:52 AM
Okay try changing:


require_once('\template-loader.php');

to:


require_once(\'template-loader.php\');

Sorry if it dont work :)

EDIT: Erm the second one should be:
require_once(\'template-loader.php\');
but for some reason it aint showing like that

Want to hide these adverts? Register an account for free!