You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 48 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Gallery+MySQL erro [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
khan
Sergeant
Sergeant


Joined: Mar 26, 2003
Posts: 89


PostPosted: Sun Apr 20, 2003 2:46 pm Reply with quoteBack to top

hello once agine
last night i have installed Gallery.
now it works fine and everything is good except one errror.
on top of my nuke pages i have got this line of error

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/nuke/www/www/english/modules/Gallery/classes/database/mysql/Database.php on line 35
and everytime i click on Gallery link this error appears on the verey top of the theme or page.
when i am trying to post a comment for a page, the winwod opens and it posts the comment and everything but it has that error on it
any ideas?
plz help
Find all posts by khanView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Apr 20, 2003 2:51 pm Reply with quoteBack to top

find that line in that file, and change sql_fetch_row to sql_fetchrow

AI
Find all posts by ArtificialIntelView user's profileSend private message
khan
Sergeant
Sergeant


Joined: Mar 26, 2003
Posts: 89


PostPosted: Sun Apr 20, 2003 3:24 pm Reply with quoteBack to top

thank you
works
Find all posts by khanView user's profileSend private message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Fri May 02, 2003 10:00 am Reply with quoteBack to top

ArtificialIntel wrote:
find that line in that file, and change sql_fetch_row to sql_fetchrow
AI


If I do that I get another errormessage:
Error: fetch_row() should be overridden by a subclass!

My Database.php code (without the correction)
Code:
?>
<?php
class MySQL_Database extends Abstract_Database {
   var $link;

   function MySQL_Database($host, $uname, $pass, $dbname) {
      $this->link = mysql_connect($host, $uname, $pass);
      mysql_select_db($dbname, $this->link);
   }

   function query($sql) {
      return mysql_query($sql, $this->link);
   }

   function fetch_row($results) {
      $row = mysql_fetch_row($results);
      return $row;
   }
}
?>

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri May 02, 2003 10:51 am Reply with quoteBack to top

wrong file. Turn on SQL debug mode, and see what page / file is actually causing the error. that message itself is just where the errors being noticed.

AI
Find all posts by ArtificialIntelView user's profileSend private message
JallaBalla
Captain
Captain


Joined: May 01, 2003
Posts: 310

Location: Oslo, Norway

PostPosted: Fri May 02, 2003 10:59 am Reply with quoteBack to top

I upgraded to 1.3.4 and it solved the problem. Thx.
FYI: http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=5719&24631

Thanx!

_________________
JallaBalla
...a Paying customer of PHP-Nuke
8.0 / 2.20
Find all posts by JallaBallaView user's profileSend private messageICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.355 Seconds - 279 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::