Problem with "keep form data" method

Shows some Tutorials

Problem with "keep form data" method

Postby duffboozer on Wed Apr 30, 2008 4:04 pm

Hi eveybody,
I'm new and I'm not very skilled with php programming...
I've inserted in the form the
Code: Select all
. . . 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/o ... Itemid,38/
but when I load the form page all the fields modified with this feature diplay this error:
Code: Select all
<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. :S

Anyone can please help me?
duffboozer
Fresh Boarder
 
Posts: 5
Joined: Wed Apr 30, 2008 8:32 am

Re:Problem with "keep form data" method

Postby GreyHead on Wed Apr 30, 2008 4:35 pm

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3429
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Problem with "keep form data" method

Postby duffboozer on Wed Apr 30, 2008 4:49 pm

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?
duffboozer
Fresh Boarder
 
Posts: 5
Joined: Wed Apr 30, 2008 8:32 am

Re:Problem with "keep form data" method

Postby admin on Thu May 01, 2008 5:35 am

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3204
Joined: Mon Aug 14, 2006 5:29 am

Re:Problem with "keep form data" method

Postby duffboozer on Tue May 06, 2008 9:33 am

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. :(
duffboozer
Fresh Boarder
 
Posts: 5
Joined: Wed Apr 30, 2008 8:32 am

Re:Problem with "keep form data" method

Postby admin on Tue May 06, 2008 10:54 am

Hi,

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

Code: Select all
error_reporting(0);


fixes it ?
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3204
Joined: Mon Aug 14, 2006 5:29 am

Re:Problem with "keep form data" method

Postby duffboozer on Wed May 07, 2008 9:05 pm

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!)
duffboozer
Fresh Boarder
 
Posts: 5
Joined: Wed Apr 30, 2008 8:32 am

Re:Problem with "keep form data" method

Postby GreyHead on Thu May 08, 2008 10:38 am

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3429
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Problem with "keep form data" method

Postby liefstepa on Thu May 08, 2008 11:02 am

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 ???
liefstepa
Fresh Boarder
 
Posts: 3
Joined: Thu May 08, 2008 10:11 am

Re:Problem with "keep form data" method

Postby duffboozer on Thu May 08, 2008 11:14 am

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
Code: Select all
var $error_reporting = '0';

into configuration.php


Unfortunately nothing's changed... :(
duffboozer
Fresh Boarder
 
Posts: 5
Joined: Wed Apr 30, 2008 8:32 am

Re:Problem with "keep form data" method

Postby GreyHead on Thu May 08, 2008 11:15 am

Hi liefstepa,

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

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3429
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Problem with "keep form data" method

Postby admin on Tue May 13, 2008 3:03 pm

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3204
Joined: Mon Aug 14, 2006 5:29 am

Re:Problem with "keep form data" method

Postby webmuse on Mon Jul 07, 2008 6:36 am

Thanks!

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

I am very grateful!!!
webmuse
Fresh Boarder
 
Posts: 3
Joined: Wed Jun 25, 2008 7:54 pm


Return to ChronoForms How To

Who is online

Users browsing this forum: No registered users and 2 guests