Problem submtting form as registration

jabba 13 May, 2011
Hello, i'm running a joomla site (1.5.21) for a company (<!-- w --><a class="postlink" href="http://www.turbomass.it">www.turbomass.it</a><!-- w -->) and using chronoform as registration form. Everything whent fine for 2 years then something happened (don't know exactly what). When i register correctly (all filds are filled correctly, correct captcha, ec...) and press the send button the registration works fine (database is filled with the new user) but then firefox shows a blank page and Internet Explorer says "impossible to find the page".
This happens when i use the default redirect url (in administration) or the page i choose as landing page after registration (index.php?option=com_content&view=article&id=58&Itemid=70).
Thank you for your help
GreyHead 13 May, 2011
Hi jabba,

There's a 500 Internal Server error being returned. I don't know what is causing it though.

Try setting the site Error Reporting to Maximum temporarily to see if you get a more helpful PHP error message.

From your description it looks as though the problem is with the redirection. I don't see any SEF URLs, I wonder if there's a problem with a URL redirection through JoomFish?

Bob
jabba 13 May, 2011
thank you for the advice. With "Max display error" i got this message:


Notice: Use of undefined constant WPATH_CLASS - assumed 'WPATH_CLASS' in /home/turbomass/domains/turbomass.it/public_html/plugins/user/acasyncuser.php on line 39

Warning: include_once(WPATH_CLASSclass.jnewsletter.php) [function.include-once]: failed to open stream: No such file or directory in /home/turbomass/domains/turbomass.it/public_html/plugins/user/acasyncuser.php on line 39

Warning: include_once() [function.include]: Failed opening 'WPATH_CLASSclass.jnewsletter.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/turbomass/domains/turbomass.it/public_html/plugins/user/acasyncuser.php on line 39

Fatal error: Class 'subscribers' not found in /home/turbomass/domains/turbomass.it/public_html/plugins/user/acasyncuser.php on line 51


maybe a joomla problem?
jabba 13 May, 2011
to be honest it seems more a problem with jnews (newsletter component), i'll take a deeper look to the code and will tell you my findings. Thank you again


EDIT:

nope, i disabled jnews but still got the error. The url of the "broken" page is this one if this can help:

http://www.turbomass.it/index.php?option=com_chronocontact&task=send&chronoformname=registrazione


i'll check deeper in the meantime. Thanks again
jabba 14 May, 2011
Still getting the problem, i think i'll have to take a look to the code and manually remove any broken code. Can you please tell me what files are involved in joomla registration with chronoforms?
Thank you very much for your help.
Gianluca
GreyHead 14 May, 2011
Hi Jabba,

Looks to me as though the form is submitting OK but then there is an error in the post processing somewhere. The message I got was "500 - No valid database connection:".

The code that ChronoForms uses for the registration is all in the cf_joomla_registration.php file in the components/com_chronocontact/plugins folder - but I'm pretty certain that none of that needs to be changed.

Bob
jabba 14 May, 2011
Here again, sorry for bothering you. I've take a look to the apache error log and all i got is this one:

[Sat May 14 10:19:18 2011] [error] [client 86.214.1.175] File does not exist: /home/turbomass/domains/turbomass.it/public_html/components/com_chronocontact/css/plugin.css, referer: http://www.turbomass.it/index.php?option=com_chronocontact&task=send&chronoformname=registrazione


A missing CSS can really bring to a database connection error? Btw i've take a look and that file really don't exists... but that file don't exist in any of my sites running chronoform.. is that normal?

Thank you again very much
Gianluca
jabba 14 May, 2011

The code that ChronoForms uses for the registration is all in the cf_joomla_registration.php file in the administrator/components/com_chronocontact/plugins folder - but I'm pretty certain that none of that needs to be changed.




what if i don't have any "plugin" folder? :-)

http://imageshack.us/photo/my-images/852/immagine2t.jpg/

Thank you bob, i'll buy you a beer :-)
jabba 14 May, 2011
SOLVED!!!

don't know how but if in "configuration.php" i change this:

var $dbtype = 'mysql';


into this:

var $dbtype = 'mysqli';


everything works fine again.

I really don't know the technical difference between those two parameters but the most important thing is that everything is fine again :-)
thank you!
GreyHead 14 May, 2011
Hi Jabba,

Well found - MySQL & MySQLi are two different database engines that Joomla! can use.

Sorry about the path - I left an extra administator/ on the front by mistake :-( I fixed my original post.

Bob
This topic is locked and no more replies can be posted.