Page 1 of 2
FrontPage at Hypermart, gbook errors: session_sav path, etc.
Posted: Thu Aug 02, 2007 4:22 pm
by OldManRiggs
Script URL:
http://olgabaptist.com/gbook/gbook.php
Version of script:1.5
Hosting company:Hypermart
URL of phpinfo.php: I don't know
URL of session_test.php: I don't know
What terms did you try when SEARCHING for a solution: Have spent a couple of days following readme file instructions. Have set permissions to 666, have double checked for typos, have searched this forum, and have reviewed my error log (which is all Greek to me)
Write your message below: When attempting to post a comment after entering the displayed verification text, it appears to try to post, but returns me to gbook.php page and does not record the comment on the text page and does not e-mail me.
Here is a copy of my error log:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_cf9d26fa01ab6c9969cb56b31bef09ea, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'secimg.inc.php' (include_path='.:/usr/local/lib/php-4.4.7/lib/php') in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: main(secimg.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_40b5ea27d241207800983a4d1fcea826, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 46
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_40b5ea27d241207800983a4d1fcea826, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_d475f353cc8e006392bacd5f93b80db0, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 46
Posted: Thu Aug 02, 2007 10:55 pm
by Me59
sounds like the installation/file permissions are messed.
follow the installation procedure very carefully

Thanks, however
Posted: Thu Aug 02, 2007 11:19 pm
by OldManRiggs
Originally it was offered by Hypermart as software automatically installed thru their InstallCentral. They installed older version 1.4x which did the same thing (including not displaying the captcha image), so I downloaded and installed 1.5 and set permissions to 666 and changed variables including being careful to make sure the re-named entries.txt was the same per readme. Version 1.5 reacted the same way including not displaying captcha image)... so I set it to text validation mode. It still give me error message. I have tried uploading by using Hypermart File Manager, by publishing in Frontpage, etc. I have other PHP scripts (for shipping and handling, shopping cart, etc.) which I have uploaded using Frontpage and/or Hypermart file manager and they work.
I believe there may be something not set right with Hypermart... which I think is odd if they recommend and even install the gbook as part of their hosting package (but say I must get answers to why it doen't work from PHPJunkyard... which is why I am here to see if anybody can identify from the error codes what I or Hypermart has set wrong?).
Posted: Thu Aug 02, 2007 11:37 pm
by Me59
Did version 1.4 work flawlessly for you?
Have you deleted all 1.4 files before installing 1.5?
in general terms, if you follow the manual installation instructions it should work out of the box

I agree that in general it should work...must be not general
Posted: Fri Aug 03, 2007 1:05 am
by OldManRiggs
Thanks, but, as in my previous post, it did not work flawlessly when installed by Hypermart... it had the same errors when they installed it with the old version. I upgraded, deleted all files, and reinstalled carefully according to readme file... other than I published using FrontPage and set permissions using Hypermart's file manager. They show that permissions are set to 666 and they are all the new versions of the files.
This is why... when I get the same error messages when Hypermart performs the install on the server end as I get when I do the install independent of their autoinstall (manually), I get the same problems, then logically it shouldn't be the install, but should be something like the settings on the server's PHP and how they are reacting to the script... This is why I have posted the server's error log for the proble, so somebody can advise what is set wrong by Hypermart, so I can tell them what they need to do different.
I will do a 4th complete delete and reinstall for the record, but until someone answers if FrontPage upload or FileManger web upload is sufficient, then I may be wasting my time again.... but here goes.
Posted: Fri Aug 03, 2007 1:20 am
by Me59
file manager upload is ok or use a ftp client
Deleted all and used FTP this time to upload
Posted: Fri Aug 03, 2007 2:17 am
by OldManRiggs
Deleted all and used FTP this time to upload. Set permissions of the 2 text files to 666. I cleared my error code log on the server. Tried the guestbook. It duplicates the exact same problem as previous attempts.
Again, I repeat myself: If Hypermart installed it independent of me using their InstallCentral... and I have repeatedly deleted and installed and consistently get the same error message... even when I switch from old version to new 1.5 version... something is wrong besides uploading the files and setting permissions. Something has to be wrong besides the installation. I again suggest that is has to do with where Hypermart has their PHP files or how they have it set... sessions or whatever. I don't know PHP code, but if somebody does, they should be able to point out in the following server scripting error the problems with how Hypermart is processing the gbook.php file. Like session.save_path, no such file or directory, failed opening, line 0, line 46, etc.... Seems like a PHP expert could look at this code and figure out what is wrong... it must make sense to somebody.
Here is the most recent log generated from a single attempt to sign the gbook after completely deleting and FTPing the files back up to the server:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_d7408c4f55814400fb367ff1b6decadc, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'secimg.inc.php' (include_path='.:/usr/local/lib/php-4.4.7/lib/php') in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: main(secimg.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_45e7a7fc9159f9be09db296620355930, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 46
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_6ab2ebf7e8aa21214ea24f44c0e37889, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'secimg.inc.php' (include_path='.:/usr/local/lib/php-4.4.7/lib/php') in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: main(secimg.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 117
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_45e7a7fc9159f9be09db296620355930, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 46
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_45e7a7fc9159f9be09db296620355930, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_efbf92dbd9f23d24b9366630f6892543, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook/gbook.php on line 46
Okay... I give up.
Posted: Fri Aug 03, 2007 5:59 am
by OldManRiggs
http://olgabaptist.com/gbook143/gbook.php <--Old version works only when installed by Hypermart.
Manual installations
http://olgabaptist.com/gbook15/gbook.php <--new version does not work
Hypermart was not able to figure out what makes the 1.43x version work and the 1.5 version NOT work. They also cannot figure out why the graphic verification image does not appear on either version.
Version 1.43 doesn't have a text validation option and the graphic doesn't work, so I guess I am going to pass on the 1.43 until Hypermart can figure out how to make the captcha work... or until they get the 1.5 version set up for autoinstall for their customers.
I have been hours on the phone with their tech help and no answers yet.
Thanks for your suggestions and help.
Posted: Fri Aug 03, 2007 11:14 am
by jayceegee
I know from one of my recent posts that Klemen is very busy at the moment.
His normal suggestion with the problems you seem to be having, would be to upload to your site the following files, which would give the PHP guru’s the information that they need to answer your query.
http://www.phpjunkyard.com/extras/phpinfo.zip
http://www.phpjunkyard.com/extras/session_test.zip
You can see information on this by looking at the post which also has an .hta file link. Had you put in a search for session problems, you would have found these items quite easily.
viewtopic.php?t=1373&highlight=sessions+problems
Give this a try, and do not forget to post the links back to the forum for Klemen (or perhaps Henrie) to give further advice.
Thanks
Posted: Fri Aug 03, 2007 11:55 am
by OldManRiggs
I may give it a try and live with the version 1.43 in the meanwhile.
However, regarding searching for "session problems"... you are assuming that I knew enough to know that my problem was a even sessions related. There were lots of other words floating around in the error log (i.e. hermes, streaming, path not found, etc.). For me to have a clue to know to search for "session problems" is asking a lot for somebody who knows knothing about PHP other than to follow install and check readme instructions. At this point I don't even know what a session is, let alone that they can have problems.
From what I've read in the readme that came with gbook was that PHP Sessions should have only been part of the problem which related only to display of the captcha security graphic and not responsible for the entire functioning of the guestbook (i.e., its ability to post to entries.txt file, and other errors logged).
But I will supply this info to Hypermart if they want it. I haven't been successful in getting them to upgrade their InstallCentral to 1.5 yet... so I don't expect much.
P.S. .htaccess and deleting 2 lines both tried
Posted: Fri Aug 03, 2007 1:13 pm
by OldManRiggs
BTW
uploading .htaccess to gbook's directory and/or deleting the suggested 2 lines of code. have both been tried and neither worked.
.htaccess uploaded to my gbook's directory actually caused an internal network server error whether set to 0 or to 1... it crashed.
Upon deleting the .htaccess file, gbook no longer crashed, but still have the same original problems.
So I guess searching for "session problem" still would have left me asking the same questions.
But again... things for trying.
Also
Posted: Fri Aug 03, 2007 1:39 pm
by OldManRiggs
Also...
I uploaded the 2 session_test PHP files
Results of running test were.
session_test.php was loaded and ran fine.
session_test2.php result in:
$_SESSION['test'] is set to: FALSE
Posted: Fri Aug 03, 2007 2:47 pm
by jayceegee
If your ISP’s sessions were set correctly, it should have read $_SESSION['test'] is set to: TRUE, so you need to ask them to help you, as no one on the forum can, because it needs to be corrected from their end.
Inform them that you have conducted this test, and the problem lies with their setup.
Hope you are successful. NB. It would still be a good idea to post the two test on the forum as the first contains info on your PHP setup.
Posted: Fri Aug 03, 2007 3:14 pm
by OldManRiggs
Thanks... maybe this will get resolved on Hypermart's side eventually.
session_test.php results in browser display of:
Session started successfully!
CLICK HERE FOR PAGE 2
and added the following to the server's error log:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_363aba508b4e2e6e9c8283f74b436e63, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_363aba508b4e2e6e9c8283f74b436e63, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook15/session_test.php on line 4
session_test2.php results in browser display of:
$_SESSION['test'] is set to: FALSE
and added the following to the server's error log:
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_363aba508b4e2e6e9c8283f74b436e63, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_363aba508b4e2e6e9c8283f74b436e63, O_RDWR) failed: No such file or directory (2) in /hermes/web09/b245/hy.olgabaptist/gbook15/session_test2.php on line 4
Got lots to do this weekend... will get back onto Hypermart later... or next week. Thanks again.
Posted: Mon Aug 06, 2007 7:15 pm
by Klemen
Definitely problem with sessions. Make sure the folder "/var/php_sessions/" exists and is writable by scripts. Ask your host to check PHP sessions if not sure.