Hi eveybody,
I'm new and I'm not very skilled with php programming...
I've inserted in the form the
but when I load the form page all the fields modified with this feature diplay this error:
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?
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?
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
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
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?
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?
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
good luck!
Max
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.๐
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.๐
Hi,
At the top of your form code please add this code inside php tags:
fixes it ?
At the top of your form code please add this code inside php tags:
error_reporting(0);
fixes it ?
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!)
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!)
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
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
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 ???
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 ???
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
into configuration.php
Unfortunately nothing's changed...๐
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...๐
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
Cheers
Max
This topic is locked and no more replies can be posted.
