Forums

Local development computer error

BradC 19 Apr, 2009
Have searched the forum and other posts regarding similar errors, but none of the suggested solutions have helped.

On the production server everything works fine, just not my local development computer (Windows 7, iis7 and fastCGI).

This is the error:

PHP Notice: Undefined variable: posted in D:\Websites\Joomla\Golf\plugins\content\chronocontact.php on line 135


This is line 135:
<?php if (($posted)&&($paramsvalues->captcha_dataload)){ ?>


I have config files set as below:

Global Configuration
Error Reporting: none

php.ini
display_errors = Off
GreyHead 19 Apr, 2009
Hi BradC,

Which version CF of the Plugin/Mambot are you using? As far as I can see the latest release for RC4.11 shouldn't show this error.

You can probably fix it by amending the line in your version to
<?php if ( isset($posted) && ($posted) && ($paramsvalues->captcha_dataload) ) { ?>
but this may just push the Warning further down the code.
Bob
BradC 19 Apr, 2009
Hi Bob

Plugin chronocontact 0.8/V3.0 Stable
Component Chrono Contact 3.1 RC4.11

I'll try your fix, and let you know
BradC 19 Apr, 2009
That fixed it on my local development computer thanks Bob 😀
Will it have any adverse effect if I leave it that way for the live production server?
GreyHead 19 Apr, 2009
Hi BradC,

No, it might add a fraction of a millisecond to the response time. It just checks if $posted exists before checking if it's empty.

Bob
BradC 19 Apr, 2009
Great - makes life easier

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