View previous topic :: View next topic |
Author |
Message |
SUp3rFM
Joined: 16 Jan 2005 Posts: 2 Location: Lisbon
|
Posted: Sun Jan 16, 2005 10:53 am Post subject: [SOLVED] Need Help! mysql_fetch_object(): ... |
|
|
I'm running b2 for quite some time now @ http://blog.magiaontour.com
Yesterday, out of the blue stopped to show up to my visitors. I can see all entries, edit then, create new posts with b2edit.php. Everything looks to be fine.
I've made a check of the mysql db and it came with no errors (using the mysql databases management of Cpanel X). I also looked at it with PHPMyAdmin and they seem clean, with no errors.
I've installed last week the blacklist, smiley hack and upload images. It all went great. Since yesterday, without me messing around or even place a post/comment it stopped to work. I'm getting the following error:
Code: |
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/magia86/public_html/blog/index.php on line 339 |
At line 314 of index.php I have this
Code: |
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?> |
(you can see the error by simply going to http://blog.magiaontour.com)
Is there a need to post here my index.php?
I've searched the forum for an answer I couldn't find one. Thanks in advance. _________________ Magia on Tour
Last edited by SUp3rFM on Mon Jan 17, 2005 2:22 pm; edited 1 time in total |
|
Back to top |
|
 |
SUp3rFM
Joined: 16 Jan 2005 Posts: 2 Location: Lisbon
|
Posted: Mon Jan 17, 2005 2:19 pm Post subject: |
|
|
SOLVED!
Here's what happened. After reviewing everything, I got to this page about a problema related to comments not showing up... Well, what really helped me out was a link given by Sigg3 - http://www.sigg3.net/cafelog/files/b2_sep_dir.txt
Here's what I changed in b2config.php and REALLY, REALLY solved my problem. As I wrote, I've installed the smileys hack... I forgot something.
Code: |
b2config.php - Line 211
$smilies_directory = 'http://mydomain.com/b2-img/smilies';
Change to:
$smilies_directory = 'http://mydomain.com/news/b2-img/smilies'; |
In my b2config.php I had this:
Code: |
$smilies_directory = 'blog/b2-img/smilies';
and changed to
$smilies_directory = 'http://www.magiaontour.com/blog/b2-img/smilies'; |
That's it!
An incredible slash made me go nuts!  _________________ Magia on Tour |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 895 Location: Oslo, Norway
|
|
Back to top |
|
 |
|