Problem with "keep form data" method

duffboozer 30 Apr, 2008
Hi eveybody,
I'm new and I'm not very skilled with php programming...
I've inserted in the form the
. . . name="field_name" value="<?php echo $_POST['field_name']; ?> />" . . . 
to keep form data in case of unsuccessful image verification as explained here: http://www.chronoengine.com/component/option,com_easyfaq/task,view/id,35/Itemid,38/
but when I load the form page all the fields modified with this feature diplay this error:

<br />
<b>Notice</b>:  Undefined index:  firstname in <b>D:\....\components\com_chronocontact\chronocontact.html.php(83) : eval()'d code</b> on line <b>63</b><br />


The site resides on a windows hosting, I tried uploading on a linux hosting and this error message does not appear.face-meh-blank

Anyone can please help me?
GreyHead 30 Apr, 2008
Hi duffboozer,

The message is a PHP 'notice' that it helpfully puts out when it spots something that might be a problem (but isn't here). This detailed level of reporting is appropriate for a development site but not for a production site.

You can probably remove this message by setting 'Error Reporting' to 'System Default' in our site global configuration.

If this doesn't work then you will need to change the system default in your php.ini file (or some other php configuration file).

If you **really, really must** have this level of error reporting on a production site then you need to add code to the
beginning to declare all the possible indexes before they are used.

Bob
duffboozer 30 Apr, 2008
Thanks Bob for quick reply!
anyway I've set Error reporting to NONE in Joomla's configuration but I still get the same message. I looked into configuration.php and found: var $error_reporting = '0';
Maybe it's caused by a setting of the hosting provider?
Max_admin 01 May, 2008
yes, you can contact them or you can first try the .htaccess file method to override their values, google "override php.ini with .htaccess" or just search it here on the forums, its somewhere๐Ÿ™‚

good luck!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
duffboozer 06 May, 2008
Hi,
I contacted my hosting provider, they say they're ok with their settings and that the problem is due to the code of the form.
The hosting is on a windows server... tried many settings but still get the same problem.๐Ÿ˜Ÿ
Max_admin 06 May, 2008
Hi,

At the top of your form code please add this code inside php tags:

error_reporting(0); 


fixes it ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
duffboozer 07 May, 2008
Well,
thanks a lot for the help, this fixed the problem in the form fields... a step ahead! ๐Ÿ™‚
Anyway now after submitting the form there are these notifications of errors:

Notice: Undefined variable: omittedlist in D:\......\components\com_chronocontact\chronocontact.php on line 388

Notice: Undefined property: nome in D:\.......\components\com_chronocontact\chronocontact.php on line 399

Notice: Undefined property: cognome in D:\.....\components\com_chronocontact\chronocontact.php on line 399

[...]
and so on with any other form field.
The message anyway has been submitted and I can receive it in email but the visitors cannot know this and think something has got wrong.

any ideas? (thanks again!)
GreyHead 08 May, 2008
Hi duffboozer,

You have PHP Error reporting set at a 'debug' level. Try setting to 'System Default' in your Site Global Configuration | Server tab. If this doesn't work than you may need to change your php configuration file. There are a couple of fixes in the forums here.

Bob
liefstepa 08 May, 2008
Same problem windows server iis joomla 1.53

Notice: Undefined variable: omittedlist in C:\Inetpub\vhosts\??.be\httpdocs\components\com_chronocontact\chronocontact.php on line 378

Notice: Undefined property: stdClass::$but in C:\Inetpub\vhosts\??.be\httpdocs\components\com_chronocontact\chronocontact.php on line 389

fixed it

in configuration.php i changed
var $error_reporting = '6143';
into
var $error_reporting = '0';

question :
is it a problem when i leave this to 0
When there are really important errors i can't see them now ???
duffboozer 08 May, 2008
Hi Bob!
I've set Error reporting at first to System Default and then tryed to set NONE in Joomla's configuration.
I've also changed
var $error_reporting = '0';

into configuration.php


Unfortunately nothing's changed...๐Ÿ˜Ÿ
GreyHead 08 May, 2008
Hi liefstepa,

See here for the full range of php error reporting settings.

Bob
Max_admin 13 May, 2008
Look at the Page posted by Bob and see if you can set the PHP error level at the top of your form code!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webmuse 07 Jul, 2008
Thanks!

Something I did caused this problem and also another error message. Your suggestion corrected both problems (with multiple updates).

I am very grateful!!!
This topic is locked and no more replies can be posted.