Great work Clyde! :)
However, I've found a few problems when running under php 5.2.0.
I was receiving the following error messages when trying to add link categories from the admin.
Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\server\xampp\htdocs\beyondeuphoria\748596\link_categories.php on line 110
Warning: reset() [function.reset]: Passed variable is not an array or object in D:\server\xampp\htdocs\beyondeuphoria\748596\includes\classes\object_info.php on line 29
Warning: Variable passed to each() is not an array or object in D:\server\xampp\htdocs\beyondeuphoria\748596\includes\classes\object_info.php on line 30
A little query to Google lead me to this thread...
http://drupal.org/node/90345
So I hacked your code a little (with only a rough idea of what I was doing) and came up with this edit to admin/link_categories.php. I simply replaced the code on line 109 with the following...
Code:
// bof php5 fix - aclarke - 281206
$cInfo_array = array_merge((array)$link_categories->fields, (array)$links_count->fields);
// eof php5 fix - aclarke - 281206
I've also noticed two more errors (which I am attempting to fix at the moment).
1 - If no links categories exist and you view the links page (from your shop/catalog - not admin) the following error message is displayed.
Code:
Fatal error: Class 'infoBox' not found in path\to\zencart\includes\templates\custom\templates\tpl_links_default.php on line 61
2 - When trying to add links from admin this error message was displayed.
Code:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in path\to\zencart\admin\includes\functions\html_output.php on line 333
Without fixing these errors (mainly number 2) I am unable to add any links!
Anyway... as previously mentioned I'm working on a fix for these.
Thanks again for creating a great contribution and I'll post back with my solutions/results asap.
:)
Bookmarks