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
Hi David
I've replaced above still getting error for line 15, 56, 65 and 75
Chris
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