I get this error when accessing my Gallery. The error didn't start showing up until just a while ago. I had gone through configuring the gallery and uploading a few files and never once saw this error until now. It is at the top of my test site when you enter Gallery.
http://www.fastacs.com/test/
Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /www/f/fastacs/htdocs/test/modules/gallery/classes/database/mysql/Database.php on line 35
I have searched this site thouroughly(at least I think I have) and I cannot find ANYTHING relative to this subject. Anyone have any ideas?
mikem
Posts: 120
I've visited your site and everything seems to be working find...
btw, nice site.
Posts: 7994
I checked it out also and didn't see the error. Does it only occur if you're logged in to the site?
Posts: 19
Ok I think I am going crazy!! Just as a goof, I re-uploaded the Database.php file that came with the Gallery and I am not getting that error anymore. Can I have a ice cream now? Oh the humanity!! :eek:
mikem
Posts: 19
AH-HA, I just duplicated by logging out of my site, however, whenn I log back in, the error persists. Then, if I uplaod the Database.php file again, no error, until I log out again...BAH...Definately related to logging in and out.
mikem
Posts: 19
Sorry I missed your compliment. Thank you.
mikem
Posts: 120
log in and out issue.... this is interesting .. i will try to replicate your issue to one of my test server later tonight.
I'll keep you posted.
Posts: 7994
Mikem -- you're running Gallery in phpBB2, right? That means that you applied the phpBB2 integration patch and so you're running a non-standard patch. *And*, the problem is happening in the user authentication code which was undoubtedly part of the patch. This means that we can't help you -- you need to talk to the guy who wrote the patch. I suggest you post a question in the "Gallery in Other Applications" forum and see if WebSnail has an answer for you.
-Bharat
Posts: 120
thanks bharat, you make my life easier ... I haven't encounter the error. I suppose to test this on my server... ignore it then.
Posts: 19
Ok UPDATE> I never figured out the SQL error message I was getting. I do know that it was due to some changes in the nuke_users table in version 6.0 of PHP-Nuke. I tried the Gallery on version 5.5 and 5.6 of PHP-Nuke as a Module and it works PERFECTLY!!!
Thanks to everyone.
Posts: 7994
Doh. I haven't kept up with PHP-Nuke .. guess I'll have to see if somebody can track this down and figure out what's changed.
-Bharat
Posts: 2
i am running php-nuke 6 and gallery 1.3.1
this error occurs when a normal phpnuke user tries to access the gallery section...
but phpnuke administrator does not get this error...
any advise that can possibly eliminate this error in my phpnuke Gallery section would be gladly appreciated...
thank you very much :smile:
http://lordhouse.tk
Posts: 7994
This is fixed in Gallery v1.3.3, available via CVS.
Posts: 2
thanks a lot man :smile:
Gallery rocks!!
Posts: 9
Not really fixed yet! I got the error as well when I moved the gallery (1.3.3) from root directory where it used to be and put it inside the html/modules directory so I can run it inside the PHPNuke 6.5-B6.
I ran the configuration after the moving, but I am still getting Databse.php error on line 35.
Any idea please on how to fix this one..
Thank you
Mark
Posts: 8194
You might want to post this in the Nuke forum -- there are more knowledgeable people there.
Posts: 3
I get the same error but only when using NS7 it works perfect in IE.
Posts: 8194
Weird...this error shouldn't be browser-dependent.
Posts: 1
These problems are more evident on PHP-Nuke 6.5, i use gallery on a nuke 6.0 site which has the bbtonuke port, i noticed a phpBB patch was mentioned, oddly enough i didn't know one existed so naturally i haven't applied it and my gallery seems to be working ok, as for nuke 6.5, six fields in the users table have changed:
uid is now user_id
uname is now username
email is now user_email
url is now user_website
user_intrest is now user_interests
and pass is now user_password
If i could be given some tips as to what files could need modifying i could put out a zip with the adapted files for users of nuke 6.5 beta 7, i've been looking at the code but so far could only find references to the users table in the gallery/classes/nuke5 folder, any comments?