PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

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...
View user's profile Send private message Visit poster's website
Lateron
Worker
Worker


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

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

I redid your fix and now EVERYTHING is working. Smile

Thank you very, very much.

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Another satisfied customer - You're welcome!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

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.......
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Search for all occurrences of
Code:
$db->sql_fetchrow($result
in admin/modules.stories.php and replace with
Code:
$db->sql_fetchrow($result, $dbi);
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

This is my line 1038:

Quote:
$row = $db->$db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='4'"));
View user's profile Send private message Visit poster's website
Lateron
Worker
Worker


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

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

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?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Yes
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

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...
View user's profile Send private message Visit poster's website
Lateron
Worker
Worker


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

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

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.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum