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.6 Bugs/Fixes
Author Message
ardmhacha
Hangin' Around



Joined: Jan 26, 2004
Posts: 30
Location: Ireland

PostPosted: Sat Jun 04, 2005 2:54 am Reply with quote

I have upgraded from 6.9 to 7.6 patched and am experiencing a problem with unregistered users not being able to send feedback. I have searched various forums but no-one else seems to be having this problem. The message is "ERROR: Please enter your e-mail address!"

Registered members can send feedback OK. I have checked the module permissions and they are alright.

If I upload the unpatched file modules/Feedback/index.php then everything works fine. I am a complete novice at coding, and could be totally wrong here, but through a simple process of elimination, the problem would seem to be in this section of the patched file.

Quote:
include("header.php");
$cookie[0] = intval($cookie[0]);
if ($cookie[1] != "") {
$result = $db->sql_query("SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='".$cookie[0]."'");
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if ($row['name'] != "") {
$sender_name = $row['name'];
} else {
$sender_name = $row['username'];
}
$sender_email = $row['user_email'];
} else {
$sender_email = "";
}


This section in the unpatched version is

Quote:
include("header.php");
$cookie[0] = intval($cookie[0]);
if ($cookie[1] != "") {
$row = $db->sql_fetchrow($db->sql_query("SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'"));
if ($row['name'] != "") {
$sender_name = $row['name'];
} else {
$sender_name = $row['username'];
}
$sender_email = $row['user_email'];
}


I would appreciate some advice on this.

Thank you
 
View user's profile Send private message
Darrell3831
Worker
Worker



Joined: Feb 18, 2004
Posts: 244

PostPosted: Sat Jun 04, 2005 7:34 am Reply with quote

You and I have both had some unusual and hard to answer problems recently.

I am one to follow instructions to the letter. When I first installed nuke the instructions suggested that I create a mysql user especially for the purpose of accessing the nuke database only.

The instructions further suggested that this nuke user not be given drop or delete access to the database.

For normal operation this worked well for me. The day I started upgrading weird issues started cropping up.

The upgrade scripts were only able to partially work. They made additions, they made changes, but they could not drop or delete stuff from my database. I was not given any error messages because they are turned off in my nuke site for security.

If you are like me, read everything, and follow directions to the letter than it is possible that your upgrade scripts did not properly run either.

What helped me was to open the .sql file that came with my version of nuke. (7.5) and compare it table for table, record for record with my database, untill I started finding the discrepencies.

I backed up my database and started manually fixing the differences. Slowly over the course of several days many things started to work.

I'm down to two issues left, comments, and the gfx...

Besides checking your database to make sure it was updated with the update scripts there is one other thing to consider.

To upgrade your site you must upload the full version from FB up over top of your files. Then you must upload chatserv's patches over FBs full version. Then you can start running the upgrade scripts.

Jumping from 6.9 to 7.6 will leave some files in admin/ that need to be manually moved. There is a note about this somewhere on the forum.

If you simply uploaded Chatserv's patches you don't have a complete set of files on your server.

Sorry I don't know the solution for your problem, but at least you have something to look at now...

Darrell

_________________
http://www.psy-center.com 
View user's profile Send private message Visit poster's website
Manuel
Regular
Regular



Joined: May 28, 2005
Posts: 90

PostPosted: Sun Jun 05, 2005 6:04 am Reply with quote

you should look nukefixes.com forums

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Jun 05, 2005 7:46 am Reply with quote

ardmhacha, See these for possible solutions.

http://www.nukefixes.com/ftopict-1506-feedback.html
http://www.nukefixes.com/ftopict-1526-feedback.html
 
View user's profile Send private message
ardmhacha







PostPosted: Sun Jun 05, 2005 12:38 pm Reply with quote

Thanks very much Raven. I took your advice, applied the fixes suggested and it worked a treat. Much appreciated.
 
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.6 Bugs/Fixes

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 ©