Forums

Variable error

rowby 02 Feb, 2009
I'm getting the variable error in my module, using the latest 3.x version of Chrono engine.

It shows in the initial display of the chrono form module -- making the form "useless" until I can find a fix.

Hosting is: hostgator.

Looking forward to a fix🙂

Thanks

Rowby
Max_admin 02 Feb, 2009
Hi Rowby,

Please show me the error you get exactly!🙂

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 03 Feb, 2009
Hi Rowby,

Please go to the Global Configuration | Server tab in your site and set Error Reporting to 'System Default', 'Simple' or 'None'. There's a better than 95% chance that this will hide these message. If it doesn't then you may have to configure Error Reporting in your PHP.ini configuration file.

Bob
rowby 03 Feb, 2009
Hi Bob,

I tried both simple and default and the error still shows.

Do you have the code handy to change the php.ini file?

Thanks

Rowby
GreyHead 03 Feb, 2009
Hi Rowby,

Here's the link to the PHP Manual page a bit obscure I'm afraid. I think that your Joomal System Info | PHP Info page shoudl tell you what the current server settings are.

Bob
rowby 03 Feb, 2009
Thanks I'll run that link through a php thingie forum I subscribe to and they'll give me the info -- and I'll post it here for others.

BTW is this an error reporting bug that can be turned "off" within chronoengine -- should I report it as a bug?

Rowby
GreyHead 03 Feb, 2009
Hi Rowby,

It's a known problem with the coding if you have error reporting set too high. It's probably the most posted query on the forums here. Max has said that he will do his best to hunt them all down for the next release that he's working on now.

As I said, for 95% of users setting the Error Reporting down to a lower level hides the NOTICE & WARNING errors. If there's a PARSE error or a FATAL error they should probably show up.

Bob
Max_admin 03 Feb, 2009
Hi Rowby,

As Bob said, those are fixed in the coming update!

pay attention, the form is breaking your page layout, its wider than the module, I guess you already know this!

you can fix the 2 notices permanently by using the attached file :

cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rowby 03 Feb, 2009
Yup I'll fix the width.

And thanks for the fix files!
rowby 08 Feb, 2009
Hi

Where do I put the helper.php file? WHich folder. Or just in the web root?

Thanks

Rowby
GreyHead 08 Feb, 2009
Hi rowby,

I think it replaces root/modules/mod_chronocontact/helper.php

Bob
rowby 08 Feb, 2009
Hmmm...

I renamed the old helper.php file to helper-old.php and uploaded the new one -- but still get this error:

Notice: Undefined property: stdClass::$plugins in /home/crimesde/public_html/modules/mod_chronocontact/helper.php on line 304

http://crimesdefense.com/contact-us/category/

Take a look at the chrono form on the bottom right of the above page.

Maybe your zip file contained the old helper.php file by mistake?>??

I double check joomla's error reporting and it is set to "None".

Rowby
GreyHead 08 Feb, 2009
Hi rowby,

I'm a bit baffled . . . neither Max's file, nor yours (which appears identical) nor the original have a $plugins Object on line 304 (or anywhere else that I can see). I must be missing something there.

Anyhow, clearly the None setting isn't setting Error Reporting to None - please try 'Simple' and 'System Default' and see if either of these do the trick.

Bob
rowby 08 Feb, 2009
Hmmm... Tried those just now same error. I will try the same form on a different site on the same server. I'll see if that makes a difference.

Is there anything I can place in a php.ini file that might turn off these kinds of errors?

Rowby
rowby 08 Feb, 2009
I fixed it via creating a php.ini file with the following in it:

display_errors = Off
log_errors = On
error_log = "/var/log/php_error.log"

I uploaded it to the web root

Now the errors are gone.

NOTE: If anyone else is trying this, make sure you double check to see if you already have a php.ini file. You don't want to overwrite itl

Thanks all!

Rowby
GreyHead 08 Feb, 2009
Hi rowby,

Excellent, thank you for the info.

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