Forums

Form Errors out "Fatal error"

phreak 03 Nov, 2007
Hi all,

I recently upgraded from 2.0.0 to 2.3.5 on Joomla 1.0.12.
I did the upgrade via the backend installer of Joomla, my
old forms were deleted so everything seems clean.

I then started to create a new form. It gets displayed and
all the fields and the imageverification is looking good.

Just when i hit the "Send Form" Button a blank page appears
with following text.

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /www/htdocs/mySite/components/com_chronocontact/chronocontact.php on line 189

Does anybody know how to resolve this. Maybe i forgot something within the form-creation or does it have to d with the upgrade ?

Thanx for help.
phreak
GreyHead 03 Nov, 2007
Hi phreak,

I think that the session handling for imageverification has changed. Try turning imageverification off and the error should disappear - that will pin it down but isn't a fix.

Max has posted here that the Joomla session handler should be set to 'None' (and not to 'database'). Could this be the problem?

Bob
Max_admin 03 Nov, 2007
Hi,

Please replace lines 184 to 198 at file : chronocontact.php with this code and please let me know if it will solve it :


if ( trim($paramsvalues->imagever) == 'Yes' ) {
		session_start();
		$chrono_verification = strtolower($_POST['chrono_verification']);
		if ( md5($chrono_verification ) != $_SESSION['chrono_verification'] ) {
			showErrorMessage('Sorry, You have entered a wrong verification code');
			showform($_POST);
			return;
        }else{
			unset($_SESSION['chrono_verification']);
		}
    }
<br><br>Post edited by: admin, at: 2007/11/03 13:09
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
phreak 03 Nov, 2007
Hey Bob, hey Admin,

I've tried the Codeexample and it seems to work. But now the message
"Sorry, you have entered a wrong verification code." comes up when
Imageverification is on.

It works when it's turned off, but actually a script is attacking my site
sending spam trough the forms so i can't take it off.

I looked at this 2 solutions but they seem not to fit with my problem.
Multiple problems?
[Resolved] Image Verification not working

Any other suggestions ?

Thanx a lot
phreak
Max_admin 03 Nov, 2007
Hi phreak,

Please remove this line of code at chrono_verification.php, its the first uncommented :

session_name(md5('chrono'));
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
phreak 07 Nov, 2007
Thanx a lot, every code you posted worked out perfectly.😉

Thats nice.

phreak
pecus 09 Feb, 2008
i tried and applied this code on Joomla 1.5 stable with sessions set to none, but I still can't pass image verification.

I checked the FAQs and the forum, but I'm stuck: the session used within chrono_verification.php is different than the one used in chronocontact.php, thus image verification always fails.

legacy mode is on.
Max_admin 09 Feb, 2008
Hi Pecus,

Without doing the hack, I mean with the original ChronoForms 2.5 RC1 files, what was you getting ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pecus 10 Feb, 2008
I reinstalled it and I am now getting the correct behaviour.
So I can confirm that 2.5RC1 on Joomla stable 1.5 works correctly.
GreyHead 10 Feb, 2008
Hi pecus,

Great, thanks for letting us know that a reinstall fixed the problem for you.

Bob<br><br>Post edited by: GreyHead, at: 2008/02/10 14:19
This topic is locked and no more replies can be posted.