Trinity22
Member
Posted 9 years ago #
I'm trying to install wordpress but get this error
-------------------------
Warning: main(/home2/strata79/public_html/~trinity//b2-include/wp-db.php): failed to open stream: No such file or directory in /home2/trinity/public_html/b2config.php on line 337
Fatal error: main(): Failed opening required '/home2/strata79/public_html/~trinity//b2-include/wp-db.php' (include_path='.:/usr/share/php:/home2/strata79/public_html/billing:/home2/strata79/public_html/billing/include') in /home2/trinity/public_html/b2config.php on line 337
-------------------------
I don't know what to do.......line 337 doesn't seem like something I can modify. Is this a config error or something I'm not seeing? I'm not much of a php expert, I just use it for b2 (not trying to move to wordpress) and phpincludes.
Thanks,
Trinity
did u edit ur b2config file with the proper config?
Trinity22
Member
Posted 9 years ago #
Yes, the database/username/password are all perfect. I've triple-checked this.
trinity
Hi Trinity
From the error message, it looks like you have a mixture of absolute and linked paths.
The path to the file generating the error message is
/home2/strata79/public_html/~trinity//b2-include/wp-db.php
but it is claiming that the file it cannot find is
/home2/trinity/public_html/b2config.php
I suspect that the directory /home2/trinity/public_html is a symbolic link to /home2/strata79/public_html/~trinity
I think the calculation of abspath at the bottom of b2config.php (I'm assuming version 0.71 here) which uses getenv('DOCUMENT_ROOT') from Apache is causing the problem.
Try setting it directly to /home2/strata79/public_html/~trinity e.g.
$abspath = '/home2/strata79/public_html/~trinity';
in b2config.php in place of the getenv('DOCUMENT_ROOT') line to see if that fixes it.
Mike
Trinity22
Member
Posted 9 years ago #
hi, thanks for the suggestion. One question, do I replace the whole line
$abspath = getenv('DOCUMENT_ROOT')
or just the
getenv('DOCUMENT_ROOT')
just want to clairfy :)
trinity
I think the whole line will do it (I missed the trailing slash).
$abspath = '/home2/strata79/public_html/~trinity/';
Mike
Trinity22
Member
Posted 9 years ago #
I replaced that and now have a parse error. Now I have a page that says
-----------------
Parse error: parse error in /home2/trinity/public_html/b2config.php on line 334
WordPress
Welcome to WordPress. We’re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. Before we get started, remember that we require a PHP version of at least 4.0.6, you have 4.3.2. Look good? You also need to set up the database connection information in b2config.php. Have you looked at the readme? If you’re all ready, let's go!
-----------------
What should I do......try to proceed or fix the parse error. Currently line 334 reads
-----------------
$abspath = '/home2/strata79/public_html/~trinity/'; . $relpath . '/';
-----------------
Thoughts?
Thanks again,
trinity
Hi Trinity
You don't need the .$relpath bit so the line ends at the first semi-colon
Trinity22
Member
Posted 9 years ago #
Ack. I took out the .$relpath bit and now have the exact same thing
-----------
Warning: main(/home2/strata79/public_html/~trinity//b2-include/wp-db.php): failed to open stream: No such file or directory in /home2/trinity/public_html/b2config.php on line 337
Fatal error: main(): Failed opening required '/home2/strata79/public_html/~trinity//b2-include/wp-db.php' (include_path='.:/usr/share/php:/home2/strata79/public_html/billing:/home2/strata79/public_html/billing/include') in /home2/trinity/public_html/b2config.php on line 337
--------------
Line 337 reads as
---------
$abspath = '/home2/strata79/public_html/~trinity/';
---------
this is almost funny.....:)
any new thoughts?
trinity
OK, try this one,
$abspath = '/home2/trinity/public_html/';
and if that doesn't work try this
$abspath = '/home2/strata79/public_html/';
Mike
Trinity22
Member
Posted 9 years ago #
the first one worked perfectly. thank you so much for all your help :)
trinity
Yeah! I'm glad we got there in the end. :-)
Mike