|
Joined: May 2001
Posts: 77
Junior Member
|
Junior Member
Joined: May 2001
Posts: 77 |
When attempting to access the "recommend us" feature on IIP users get the following error message:
Notice: Undefined variable: paction in C:\InetPub\wwwroot\Athenalink\forum\pals\recommenduspal.php on line 22
Notice: Undefined variable: paction in C:\InetPub\wwwroot\Athenalink\forum\pals\recommenduspal.php on line 74
Notice: Undefined variable: paction in C:\InetPub\wwwroot\Athenalink\forum\pals\recommenduspal.php on line 113
How can I correct this error?
Thanks.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I can't seem to recreate the error. Is anyone else having this error? 
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
Sounds like full warnings are turned on. Undefined variable would mean that a variable is trying to be referenced even though it hasn't been set. This error warning would only be displayed if full warnings are turned on.
UBB.threads Developer
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I don't think that's the case as there would be a ton more warnings... but not for long...  The form is posted back to the script and the undefined value is in the form's data: <form action="http://www.athenalink.com/forum/pals/recommenduspal.php" method="post" name="RecommendUs" id="RecommendUs"> <input type="hidden" name="Cat" value="" /> <input type="hidden" name="paction" value="rusend" /> Did you edit the recommenduspal.php script? The call for the globals may be missing in the function that sends the message out. Try uploading a clean copy of the script if you have modified anything and see if it works then. I'll cross my fingers as I can't seem to recreate it. (unless I turn full error reporting on...) 
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
Not trying to convolute (sp?) the subject, but actually you would get this on this particular script. Error reporting is cut down to only criticals in the ubbt.inc.php script. However, since that script only gets included when paction is set to "rusend" the error reporting never gets set because paction must be null. So, it goes by the php.ini default which is probably set to all warnings  Ok, I'll shut up now 
UBB.threads Developer
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
LoL ahhh ok... that made sense. Thanks Rick  JJS I'll update that script shortly and upload the zip to the main post. Give me a few and I should have it up. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I just updated the recommenduspal.php script in the 5.1.1 zip file attached to the main post for that version. What I did was check to see if $paction is set before seeing what value it may be. That should fix things. (crossing fingers) 
|
|
|
|
Joined: May 2001
Posts: 77
Junior Member
|
Junior Member
Joined: May 2001
Posts: 77 |
Thanks, Dave....
I'll download the new script and let you know.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Please do.  I'll be working on getting IIP 6.0 able to run with full error reporting once I can get my hands on .threads 6.2 and then this type of problem shouldn't be an issue in the future. 
|
|
|
|
Joined: May 2001
Posts: 77
Junior Member
|
Junior Member
Joined: May 2001
Posts: 77 |
Sorry, no luck with the new file.
I no longer get the error message but when I hit send it simply sends me off to a blank white screen.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I fixed it as far as if the error was as Rick said and being related to the fact that the variable is undefined so that's why you don't see the error statements. Would it be possible for me to access your account so I could do a few tests. I would like to see what's being passed to the script, if anything, when the post is made.
|
|
|
|
Joined: May 2001
Posts: 77
Junior Member
|
Junior Member
Joined: May 2001
Posts: 77 |
Dave:
I will send you a PM. Thanks.
|
|
|
|
Joined: Jun 2002
Posts: 670
Code Monkey
|
Code Monkey
Joined: Jun 2002
Posts: 670 |
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
[]How did you get rated 6 stars when the ratings only go up to 5? [/] a) Because he is Rick.... great god of all things Threads. We all just think so highly of him that 5 stars just didn't do it.  and b) A simple SQL command. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Actually, I did it to him. lol Wanted to show where a check was needed in the script. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Now if I only had the power to give you and allen 6 as well... I would. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|