Page 1 of 1

Trouble with the $settings['autosubmit']

Posted: Tue Nov 21, 2006 12:43 pm
by JFW Consultants
Script URL: www.claygatescouts.org/guestbook
Version of script: 143
Hosting company: Freeola
URL of phpinfo.php: www.claygatescouts.org/guestbook
URL of session_test.php: www.claygatescouts.org/guestbook
What terms did you try when SEARCHING for a solution:

Write your message below:

The latest version of the Guestbook Script - version 143.

I have had trouble with the $settings['autosubmit'] because the settings of 1 and 2 don't appear to work. Setting 1 does not allow the visual viewing of the graphic number and although setting 2 shows the text number it creates an error when trying to post the entries, as follows:
"Warning: main(SecImg.inc.php): failed to open stream: No such file or directory in /freeola/users/5/8/sr0182885/htdocs/guestbook/gbook.php on line 105

Fatal error: main(): Failed opening required 'SecImg.inc.php' (include_path='.:/usr/local/share/pear') in /freeola/users/5/8/sr0182885/htdocs/guestbook/gbook.php on line 105"
In the "settings.php" file it only shows the options as 1 or 0! '0' (Zero) setting works but of course this is the setting that shows / requires no Pass Code that has to be entered by the user.

The gd_test.php file shows that the GD library is installed ok as the Red 'WORKS' shows ok. I assume therefore that the problem lies with Sessions.
The sessions_2.php results in the response: "$_SESSION['test'] is set to: FALSE" and session_1.php does not work at all.

I assume that the Session Test should show as set to TRUE. If so, how do I approach the ISP to get this changed please?

The Guestbook I am proposing to use is at: www.claygatescouts.org/guestbook. I have had your previous version running there for a couple of years but had suspended it because of the spamming experience. I am though still running the previous version on another web site at www.sawbridgeworthfirebrigade.co.uk/leavemeamessage/ and want to upgrade it sometime.

Your observations / help on this would be appreciated.

Posted: Tue Nov 21, 2006 12:55 pm
by Klemen
Hi,

The problem is your file name. Note that the file name is "SecImg.inc.php", the file on your server is named "secimg.ic.php". Pay attention, CaSe MaTtErS!

In the archive you download the file is named "SecImg.inc.php", make sure you don't have your Zip or FTP program set to force names in lower case.

Simply renaming file "secimg.inc.php" to "SecImg.inc.php" should do the trick.

Regards,

Trouble with the $settings['autosubmit']

Posted: Tue Nov 21, 2006 3:11 pm
by JFW Consultants
Many thanks for finding the error causing my problem. It was my FTP software that I had forgot was set to make all filenames Lower Case. Everything working as it should now.