[BUG] 5.0.5

Martin

2009-07-04 17:40:09

I'm currently looking through the 5.0.5 code with a view to upgrading my 4.0.7 store sometime today (hopefully)... along the way though I'm finding bugs.



This post/thread will be updated with any I find along with fixes (if available).



admin/includes/whitelabel.php

Bug: Missing the closing PHP tag...

[Fix] Find:$GLOBALS['ISC_CFG']['BuiltInGateway'] = 'interspiremerchant';

After, Add:
?>

Martin

2009-07-04 17:55:00

config/config.php



Use of array key "2" twice in $GLOBLS['ISC_CFG']['ReturnReasons']


$GLOBALS['ISC_CFG']['ReturnReasons'] = array (
0 => 'Received Wrong Product',
1 => 'Wrong Product Ordered',
2 => 'Not Satisfied With The Product',
2 => 'There Was A Problem With The Product',
);


Possible fix:

Replace above code with:
$GLOBALS['ISC_CFG']['ReturnReasons'] = array (
0 => 'Received Wrong Product',
1 => 'Wrong Product Ordered',
2 => 'Not Satisfied With The Product',
3 => 'There Was A Problem With The Product',
);

Martin

2009-07-04 18:13:35

\modules\shipping\royalmail\data\royalmail.csv



This file is STILL out of date with 2008 - April 5th 2009 pricing.

Martin

2009-07-05 00:11:10

5 hours and counting... {deity} this is a seriously unnecessary long process!



I've discovered that the Exam Diff Pro system can create a false "no change" when comparing "ini" files... This little nugget cost me an hour of head scratching before I started manually opening files!

Martin

2009-07-05 12:48:15

... and another one.



File: /admin/includes/classes/class.settings.php



Find:
if (isset($_POST['converterproviders'])) {
$converterproviders = implode(",", $_POST['converterproviders']);
}
$enabledStack = $_POST['converterproviders'];


Replace with:
if (isset($_POST['converterproviders'])) {
$converterproviders = implode(",", $_POST['converterproviders']);
// MOD to remove warning.
$enabledStack = $_POST['converterproviders'];
}
else {
$enabledStack = array();
}
// $enabledStack = $_POST['converterproviders'];
// MOD END


This fix stops you getting notice & warning long entries in your log whenever you save your currency settings with no services setup.
[error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /home/[account]/public_html/admin/includes/classes/class.settings.php on line 2248, referer: http://www.domain.tld/admin/index.php?ToDo=viewCurrencySettings

[error] [client 127.0.0.1] PHP Notice: Undefined index: converterproviders in /home/[account]/public_html/admin/includes/classes/class.settings.php on line 2240, referer: http://www.domain.tld/admin/index.php?ToDo=viewCurrencySettings


It's not vitally important but as a rule I prefer an empty log of anything other than success messages.

gaz

2009-07-07 15:24:44

Found another,



the geoip functions aren't working again so currency isn't automatically selected based on ip.



That and IP address is still not shown for orders!

Martin

2009-07-08 11:32:37

Any records that display time/date using the nicedate() function that return "yesterday" with a time won't return the time due to typo in the common.ini file.



Fix below.



Open: /language/en/admin/common.ini



Find:
YesterdayAt = "Yesterday at %"
Replace with:
YesterdayAt = "Yesterday at %s"

gaz

2009-07-14 08:52:14

Another incorrect var in the notification email.



ANo





"for %numItems items(s) totalling £45.00."



Apart from "totaling" being spelt wrong that is.

Martin

2009-07-14 10:44:11

Another incorrect var in the notification email.



ANo





"for %numItems items(s) totalling £45.00."



Apart from "totaling" being spelt wrong that is.

Hi Gaz... any chance you could provide a bit more detail as to where this error is... ie: the filename... I can't find it anywhere.

gaz

2009-07-14 12:53:49

Thats from the email sent to me when I receive an order.



The only place I can see that var being used is in modules\notification\email\module.email.php

I cant seem to find the template for that email

Martin

2009-07-14 13:34:56

Thats from the email sent to me when I receive an order.



The only place I can see that var being used is in modules\notification\email\module.email.php

I cant seem to find the template for that email

EDIT: Problem was located by exabytes18 on Interspire Forums...



Open: /modules/notification/email/lang/en/language.ini



Find:
NEmailMessageBody = ":testBanner*** This is an automatically generated email, please do not reply ***<br /><br />You have received a new order on :shopName for %numItems items(s) totalling :orderTotal. Follow the link below to view complete details of the order:<br /><br /><a href=':shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId'>:shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId</a><br /><br />"

Replace with:
NEmailMessageBody = ":testBanner*** This is an automatically generated email, please do not reply ***<br /><br />You have received a new order on :shopName for :numItems items(s) totalling :orderTotal. Follow the link below to view complete details of the order:<br /><br /><a href=':shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId'>:shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId</a><br /><br />"

Martin

2009-07-18 23:02:48

Non-visible categories being shown in sitemap.php



FIX:

Open: /sitemap.php



Find:
$query = "
SELECT categoryid, catname
FROM [|PREFIX|]categories
WHERE categoryid != catparentid
LIMIT ".$GLOBALS['ISC_CLASS_DB']->Quote((int)$limit)
;


Replace, with:
$query = "
SELECT categoryid, catname
FROM [|PREFIX|]categories
WHERE categoryid != catparentid AND catvisible=1
LIMIT ".$GLOBALS['ISC_CLASS_DB']->Quote((int)$limit)
;

gaz

2009-07-20 11:57:52

cheers for this martin

Martin

2009-07-20 12:02:30

cheers for this martin
NP... :)