Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
Lateron
Worker
Worker



Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.

PostPosted: Wed Jan 14, 2004 5:33 pm Reply with quote

When a member submits a news article everything seems to work.

However, when I go into admin mode to approve the submission I get the following message:

Quote:
Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/sitename.com/httpdocs/admin/modules/stories.php on line 1038


Now the article still gets published on the home page but the 'Waiting Contents Submission' count does not reset to 0.

I haven't been able to find any report of this error and I am wondering if anyone else has experienced it and has a solution.

Thanks,
Ron....
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 14, 2004 9:01 pm Reply with quote

Check on or about line 1182 of admin/modules/stories.php for this line of code
Code:
list($counter, $radminarticle, $radminsuper) = $db->sql_fetchrow($result);
It should be
Code:
list($counter, $radminarticle, $radminsuper) = $db->sql_fetchrow($result, $dbi);
 
View user's profile Send private message
Lateron







PostPosted: Wed Jan 14, 2004 9:24 pm Reply with quote

Thank you, Raven, that fix allowed me to approve the test article and it reset 'Waiting Contents Submission' count to 0. Very Happy

Because it was just a test article I want to delete it and I am getting exactly the same message when I use the RemoveStory function in the Admin Panel Sad

Ron...
 
Lateron







PostPosted: Wed Jan 14, 2004 9:30 pm Reply with quote

I redid your fix and now EVERYTHING is working. Smile

Thank you very, very much.

Ron...
 
Raven







PostPosted: Wed Jan 14, 2004 9:33 pm Reply with quote

Another satisfied customer - You're welcome!
 
Lateron







PostPosted: Wed Jan 14, 2004 9:38 pm Reply with quote

I am sorry to be a pest, Raven, but I just went to do another test submission and I have exactly the same error as at the start of this thread.

Ahhhhh.......
 
Raven







PostPosted: Wed Jan 14, 2004 9:42 pm Reply with quote

Search for all occurrences of
Code:
$db->sql_fetchrow($result
in admin/modules.stories.php and replace with
Code:
$db->sql_fetchrow($result, $dbi);
 
Lateron







PostPosted: Wed Jan 14, 2004 9:45 pm Reply with quote

This is my line 1038:

Quote:
$row = $db->$db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='4'"));
 
Lateron







PostPosted: Wed Jan 14, 2004 9:58 pm Reply with quote

Raven wrote:
Search for all occurrences of
Code:
$db->sql_fetchrow($result
in admin/modules.stories.php and replace with
Code:
$db->sql_fetchrow($result, $dbi);


I have done that and am still getting the error. There was 1 $resultm and a few $result2 . Should I have changed them as well?
 
Raven







PostPosted: Wed Jan 14, 2004 10:02 pm Reply with quote

Yes
 
Lateron







PostPosted: Wed Jan 14, 2004 10:15 pm Reply with quote

I hate to say this but still the same problem.

I am downloading Nuke 7 again from here in case there was a glitch somewhere because I don't understand why I am getting this error. Surely I am not the only V7 using 'Submit News'?

I will let you know how I go.

Thanks for all your time and energy to this point.

Ron...
 
Lateron







PostPosted: Wed Jan 14, 2004 11:20 pm Reply with quote

All fixed now, Raven.

The error was here:

admin/modules/stories.php line 1038: Code:
$row = $db->$db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='4'"));


Changed to: Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='4'"));

It was double layered (I thought I had downloaded V7 from here but it came from another site where SQL layering had been added).

Thank you once again for your time and help.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©