Notice: undefined variable?

badutahboy 20 Feb, 2009
Hello... I just started trying to use chronoforms/chronocontact, and I'm getting the following "error" message on my page:

Notice: Undefined variable: posted in /home/revoluv0/public_html/utahrevolution/plugins/content/chronocontact.php on line 135

Being the good little forum poster I am, I searched first, and found another post with the same problem, where the solution was to turn off error reporting in global config.. I've done that, yet the warning persists.. I'm pretty sure it's not a browser cache issue, because I've checked it using 2 different browsers on 2 different computers (4 browsers total)


Any help for me?

My site is located at <!-- w --><a class="postlink" href="http://www.Utahrevolution.com">www.Utahrevolution.com</a><!-- w --> if you want to see what I'm speaking of.
Max_admin 20 Feb, 2009
Hi badutahboy,

Which Chronoforms version do you have installed and which Chronoforms plugin did you use ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
badutahboy 20 Feb, 2009
I'm using V3.1 RC2 and mambot V 0.8 CFV 3.0 stable
badutahboy 21 Feb, 2009
FWIW, I downgraded to chronoforms 3.0 and still get the error.
Max_admin 21 Feb, 2009
Hi badutahboy,

Please don't downgrade, the problem is because of the mambot, V0.8 is not compatible yet with V3.1 RC2, I will release a new mambot version tomorrow or the next day hopefully!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
badutahboy 22 Feb, 2009
Heh, too late ... haha

I'll re-upgrade though... I like all the added wizard funcationality of 3.1..
badutahboy 26 Feb, 2009
Bumping... I upgraded the mambot to 0.9 (still using 3.1 RC2 component) , and still have the problems.. Instead of undefined variable, I've got

Notice: Undefined property: stdClass::$theme in /home/revoluv0/public_html/utahrevolution/plugins/content/chronocontact.php on line 56

and

Notice: Undefined property: stdClass::$plugins in /home/revoluv0/public_html/utahrevolution/plugins/content/chronocontact.php on line 359

Again, error reporting is turned off... so I have no idea why they're showing up. Any idea how to get rid of them?
Max_admin 26 Feb, 2009
Hi, try to open the form and save it again in the admin area ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
badutahboy 27 Feb, 2009
I don't follow what you're asking me to do...

If you're thinking it's as simple as opening the form to edit and re-saving, it's not... I've opened and saved ad nauseum, and the form I've got displayed on my site now is a brand new one I built today...

Or did I miss something obvious here?
GreyHead 27 Feb, 2009
Hi baduthaboy,

Please see this post and apply the same fix at line 55/56 of plugins/content/chronocontact/php I think that this should fix the first Notice.

To fix the second go find these lines around line 42
	$paramsvalues = $registry->toObject( );
	if(trim($paramsvalues->imagever) == 'Yes'){
and add these new lines between them
	$paramsvalues = $registry->toObject( );
	if( !isset($paramsvalues->theme) ) { $paramsvalues->theme = ""; } //add this line
	if( !isset($paramsvalues->plugins) ) { $paramsvalues->plugins = ""; }  //and this line
	if(trim($paramsvalues->imagever) == 'Yes'){

Bob

PS Clearly Error Reporting *isn't* set to off or you wouldn't see these Notices. You have a PHP Configuration setting that is over-riding the site setting.
badutahboy 27 Feb, 2009
Thanks Bob, that solved the errors...

I appreciate the help.. You guys are fantastic. I'll make sure to give you two thumbs up on the extensions directory, and i'll probably buy a license from you in the next few days.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger