Previous Thread
Next Thread
Print Thread
Rate Thread
#227416 11/06/2002 4:43 PM
Joined: May 2001
Posts: 77
JJS
Offline
Junior Member
Junior Member
Offline
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.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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
Offline
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
Offline
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
Offline
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
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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
Offline
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
JJS
Offline
Junior Member
Junior Member
Offline
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
Offline
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
JJS
Offline
Junior Member
Junior Member
Offline
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.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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
JJS
Offline
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 77
Dave:

I will send you a PM. Thanks.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
How did you get rated 6 stars when the ratings only go up to 5?

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
Offline
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)