You are here:  » Error log

Support Forum



Error log

Submitted by chrisst1 on Fri, 2011-07-15 12:55 in

Hi David

I have been setting up your latest version from fresh on a new site this week and are getting these notices in our log all referred by voucher_codes.php

PHP Notice: Undefined variable: m_default in /var/www/vhosts/OURSITE.com/httpdocs/compare-uk/pt/includes/widget.php on line 58

{code saved}

I do like the latest version which seems to accommodate most requirements, very much better and improved since the early days.

Chris

Submitted by support on Fri, 2011-07-15 13:42

Hello Chris,

Thanks for that, to remove the warnings, look for the following code at line 45 of includes/widget.php

    if ($default)
    {
      $d_default = @date("j",$default);
      $m_default = @date("n",$default);
      $y_default = @date("Y",$default);
    }

...and REPLACE with:

    if ($default)
    {
      $d_default = @date("j",$default);
      $m_default = @date("n",$default);
      $y_default = @date("Y",$default);
    }
    else
    {
      $d_default = "";
      $m_default = "";
      $y_default = "";
    }

Corrected in the distribution.

Cheers,
David.
--
PriceTapestry.com

Submitted by chrisst1 on Fri, 2011-07-15 13:53

Hi David

I've replaced above still getting error for line 15, 56, 65 and 75

Chris

Submitted by support on Fri, 2011-07-15 14:00

Hi Chris,

Could you email me your includes/widget.php and I'll check that out...

Cheers,
David.
--
PriceTapestry.com