View previous topic :: View next topic |
Author |
Message |
mondo
Joined: 26 Oct 2004 Posts: 17
|
Posted: Wed Oct 27, 2004 6:48 pm Post subject: |
|
|
and by did that, I mean got the base file. it was in the root directory, and I read another post about editing these files via the web browser that messes them up, so I assume that might be it |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 262
|
Posted: Wed Oct 27, 2004 6:52 pm Post subject: |
|
|
Can you try this? In the same directory as b2config.php and blog.header.php put the file b2test.php which contains: Code: | <?php
require_once (dirname(__FILE__).'/b2config.php');
echo "b2inc is ".$b2inc."<br>";
echo "blogfilename is ".$blogfilename;
?> |
Then go to http://wherever-you-are/b2test.php (using your URL) and if everything is OK it should show: Code: | b2inc is ./b2-include
blogfilename is index.php |
|
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 262
|
Posted: Wed Oct 27, 2004 6:53 pm Post subject: |
|
|
mondo wrote: | and by did that, I mean got the base file. it was in the root directory, and I read another post about editing these files via the web browser that messes them up, so I assume that might be it | Ahah! You must always use a text editor. This explains your problem with line 151 in b2config.php and why you are having problems now |
|
Back to top |
|
 |
mondo
Joined: 26 Oct 2004 Posts: 17
|
Posted: Wed Oct 27, 2004 6:58 pm Post subject: |
|
|
yeah, i figured that html thing was the problem
ok, did the test and got
Quote: | b2inc is ./b2-include
blogfilename is index.php |
|
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 262
|
Posted: Wed Oct 27, 2004 7:00 pm Post subject: |
|
|
So all should be well now? |
|
Back to top |
|
 |
mondo
Joined: 26 Oct 2004 Posts: 17
|
Posted: Wed Oct 27, 2004 7:08 pm Post subject: |
|
|
no, after getting the latest b2config uploaded (just modifying blog name), I get this:
Quote: | Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES) in /home/meyerima/.panel/web/b2/b2-include/b2functions.php on line 37
Can't connect to the database server. MySQL said:
Access denied for user: 'user@localhost' (Using password: YES)
|
it seems like it might be easier to just redo the whole thing, now that i have the base files. Before i do that, though, I would like to save the posts that I have made thus far. Which file are they contained in? |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 262
|
Posted: Wed Oct 27, 2004 7:17 pm Post subject: |
|
|
The posts aren't in a file but in a database. I did write a quick backup program to save the posts but it won't work until you have got b2 sorted.
1. Do you have a control panel with phpMyAdmin? That will allow you to export the posts.
But
2. Why not just re-install b2 using the same database? That will keep the posts and show them in your new version. To do that just upload the new files in place but don't run b2install.php. Then you should be able to see everything as before and login with the same name & password.
Let us know how you get on. |
|
Back to top |
|
 |
mondo
Joined: 26 Oct 2004 Posts: 17
|
Posted: Wed Oct 27, 2004 7:25 pm Post subject: |
|
|
grrr
I uploaded all the new b2 files, and I still get the same error:
Quote: | Warning: mysql_connect(): Access denied for user: 'user@localhost' (Using password: YES) in /home/meyerima/.panel/web/b2/b2-include/b2functions.php on line 37
Can't connect to the database server. MySQL said:
Access denied for user: 'user@localhost' (Using password: YES) |
|
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 262
|
Posted: Wed Oct 27, 2004 7:34 pm Post subject: |
|
|
Are you absolutely 100% sure you have the lines in b2config.php correct:
Code: | # fill with your database details
$dbname = 'b2'; // the name of the database
$dbhost = 'localhost'; // 99% chances you won't need to change this value
$dbusername = 'user'; // your MySQL username
$dbpassword = 'pass'; // ...and password |
|
|
Back to top |
|
 |
mondo
Joined: 26 Oct 2004 Posts: 17
|
Posted: Wed Oct 27, 2004 7:39 pm Post subject: |
|
|
tada!
Thanks a ton! |
|
Back to top |
|
 |
|