Page 1 of 2

Wrong security number

Posted: Thu May 18, 2006 9:18 pm
by chejose
Script URL: http://www.edicionescc.com/public_html/guest/gbook.php
Version of script: 1.4
Version of PHP: ?
Hosting company: www.towebs.com
Have you searched THIS FORUM for your problem:
(if not please do before posting)

If so, what terms did you try: I went through the listing, but did not find anything that I could recognize as a solution. There were two tests suggested (php) but I have no idea how to use them

Write your message below:

I used the version 1.3 with no problems, until the spam got too heavy. So downloaded 1.4.

I first did some translation (Spanish) and tried it, but no go. So this time I did a clean instalation without touching gbook

In both Firefox and MS Explorer I can get as far as the security check, and consistently get "Wrong security number".

Experience tells me that there is some detail that I missed... but can't see it yet.

Thanks for suggestions

Posted: Sun Jun 11, 2006 9:51 pm
by ionmuniz2
I Brazil we say: "you ain't supposed to look at the teeth of a horse you recieved as a gift. " but...

The same has been hapening to me!
I uploaded it, and tried it. It worked jus' fine, but now it keeps telling me the number is wrong.

I did the settings again, uploaded, and now if I wanna post i get this:

Internal script error. Wrong session parameters!

I had a previous version running, could that be s problem? I'm asking this because even though I didn't do no css or translation tricks, the thing still speeks Portuguese...

What's worse, going through the hassle of deleting them spams(may the Lord have mercy on them) or frying my brains trying to get this really good looking gbook to function?

Heeeeelp!!

Ion

It's Ion again...

Posted: Sun Jun 11, 2006 9:54 pm
by ionmuniz2
I forgot to mention my platform; Mac, G4 750mhz 128+512 GB Ram.

Posted: Mon Jun 12, 2006 4:56 pm
by Klemen
I never ran any of my scripts on a Mac so I don't know for sure wether they work or not, but if you get the "wrong session parameters" error you are probably having problems with your PHP installation. Can you get the session test file working?
http://www.phpjunkyard.com/extras/session_test.zip
Also what version of PHP are you running?

Wrong Security Number here, too!

Posted: Sat Aug 05, 2006 5:30 am
by Photoshopmama
I just uploaded gbook 1.43 to my webserver on Powweb.
I checked the graphic test and saw the red box "works"
but when I went to the actual guestbook the graphic had a broken link.
I kept all assets in the same folder, so it's not due to rearranging anything.
So, then I changed the parameter to just generat text, not the graphic and no matter what number it generates, when I type it in correctly, it responds "Wrong Security Number."
I'm on Windows XP Pro, my web server supports PHP, so I don't have a clue how to get this to work properly. I've view all the posts here regarding this issue, but have found no solution. Help! The CHMOD for the renamed entries page is set to 666 with all read/write permissions on.

here's the URL:
http://www.photoshopmama.net/gbook143/gbook.php


Shan

Posted: Sat Aug 05, 2006 8:55 am
by Henrie
Hello Shan,

Have you tried the session test as mentioned in the previous post by Klemen?
And what PHP version are you running on?

It seems like you are having problems with sessions, please upload this file to your server (the php files inside the zip files) and post a link to them here, might give some clues: http://www.phpjunkyard.com/extras/phpinfo.zip

And also this one:
http://www.phpjunkyard.com/extras/session_test.zip

Greetings,
Henrie

Posted: Sat Aug 05, 2006 11:48 am
by Klemen
Yes, you are having problems with sessions, I can see that because the security number disappears when you get the "Wrong security number" error meaning it was not transferred over session.

Upload the two files Henrie gave you, but the best thing to do would be to contact your hosting company and ask them to check if PHP sessions work ok.

Posted: Sat Aug 05, 2006 4:34 pm
by Photoshopmama
Ok, I'll do that and let you know! Thanks!

Mama Shan

Posted: Sat Aug 05, 2006 4:55 pm
by Photoshopmama
Ok, should I place these files for the sessions test and the php info inside of my gbook143 folder on my side and then upload or do they go someplace else?

And, I also noticed on the server side that powweb has a folder called "php sessions" it is next to but not inside the "htdocs" folder. The htdocs folder on the server is what contains all my web pages and assets including my gbook143 folder. Help, again? Hope I'm not too bothersome, but I am totally clueless about php, but appreciate your generosity and efforts of offering what appears to be a great tool!

Thanks!
Mama Shan

Posted: Sat Aug 05, 2006 5:59 pm
by Klemen
Those file can go inside gbook folder

Posted: Sat Aug 05, 2006 6:12 pm
by Henrie
Hello there,

The folder names "php sessions" and "htdocs" next to another sounded familiar so i did a search on this forum.
I found the following thread which came from a user who also had problems with sessions on powweb.
viewtopic.php?t=941

Greetings,
Henrie

Posted: Sat Aug 05, 2006 8:26 pm
by Photoshopmama
Well I called Powweb but the agent couldn't fix it. He said everything looked okay. We did, however, place the php sessions folder inside of the htdocs folder...but that still didn't change anything.
I went to their php.ini file, but I don't have a clue what where when to change anything. I've copied the file and here it is:

[Removed by Klemen]

Posted: Sat Aug 05, 2006 8:32 pm
by Photoshopmama
And here's what is said about PHP Scripting on the front end of my powweb server interface:
And I pray that I'm not jeopordizing my security by putting all this info out there, but hope that if I am that Klemin will discreetly delete this post! Thanks!


PHP Scripting

How PHP works at PowWeb

PowWeb's PowerPack allows you to write scripts using PHP. To ensure that your PHP scripts work smoothly, please refer to the following information before you get started:

* Path to your Web document root: /home/users/web/b71/pow.shancan/htdocs
This is important, as most of your scripts will need to specify this location. For example, this is required if you'd like your PHP script to upload files.

* Current Default version of PHP: 4.4.2
This is the default version of PHP that your site is currently using. Note that you can always choose between PHP4 and PHP5 for individual files by naming them with the corresponding extension. For example, script1.php4 and script2.php5 would use PHP 4 and 5, respectively, regardless of your default version setting. The default choice, below, is used only for files named with the generic .php extension.

* If you choose to edit your php.ini files, please pay careful attention to which version of PHP you are using. Some configuration options that work in PHP 4 will not work in PHP 5, and vice versa. PowWeb lets you create separate php.ini files for each major version — one for PHP 4, and one for PHP 5 — to give you maximum flexibility in fine-tuning PHP's behavior. This may mean that certain types of configuration changes may need to be made in both files separately.

Posted: Sun Aug 06, 2006 1:28 pm
by Klemen
You need to set your session save path to the correct sessions folder. Try changing

Code: Select all

session.save_path = /var/php_sessions
to the path to your php sessions folder. Not sure if this is it, but try:

Code: Select all

session.save_path = /home/users/web/b71/pow.shancan/php_sessions

Powweb hosting guestbook glitch fixed!

Posted: Sun Aug 06, 2006 2:56 pm
by Photoshopmama
Thanks Klemen,
The IT department from powweb emailed me this morning, too and they fixed it. Here's what they said.

"The difficulty you were having in operating the gurestbook on your account related to the system being unable to save the session variables required.


We have corrected the session.save_path entry in the php.ini (the option is found in OPS, Main, CGI Management, PHP Scripting, Edit your php.ini file for PHP 4.4.2). We have directed the session variable to /home/users/web/b71/pow.shancan/phpsessions which is a writeable area on your account.


You may delete the test entries you have created; PHP applications should now be able to create required session vaeiables on your account and operate normally."

Which is exactly what you said above....but I'm glad they interceded and did it on their end!

Thanks so much to you and Henri for stickin with me!
And again thanks for the help.

I'm going to redo my forum, too. I think I have an older version of your script for that but I'm going to take it down and upload a newer one.

Mama Shan