Well it looks like it might be time to migrate hosts. in the meantime I think that it is up again. (I can get to it at least)
Printable View
Well it looks like it might be time to migrate hosts. in the meantime I think that it is up again. (I can get to it at least)
I've been trying every 10 mins for the past hour and still no luck.
ugh. I twas working last night. Kobra mentioned a different hosting solution that I might be better off with. It is definatly time to move.
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.
A little query to Google lead me to this thread...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
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...
I've also noticed two more errors (which I am attempting to fix at the moment).Code:// bof php5 fix - aclarke - 281206
$cInfo_array = array_merge((array)$link_categories->fields, (array)$links_count->fields);
// eof php5 fix - aclarke - 281206
1 - If no links categories exist and you view the links page (from your shop/catalog - not admin) the following error message is displayed.
2 - When trying to add links from admin this error message was displayed.Code:Fatal error: Class 'infoBox' not found in path\to\zencart\includes\templates\custom\templates\tpl_links_default.php on line 61
Without fixing these errors (mainly number 2) I am unable to add any links!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
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.
:)
Alex,
Thanks for the update.
I'll incorporate your php5 fix and do an upgrade.
I'm not sure about the other errors. mainly because if no categories exist then the link sidebox won't appear at all (or it shouldn't) and technically you wouldn't be able to navigate to the links page. You can if you type the url into the browser navigation bar.
to correct this just change line 61 in tpl_links_default.php to
I'll check the other error and see if I can find a fix.PHP Code:
<?php echo TEXT_NO_CATEGORIES; ?>
Alex,
Try as I might, I was unable to duplicate your #2 error when adding links from Admin.
Thanks for the quick reply.
The 'line 61 in tpl_links_default.php' fix worked great. I'm not using the links sidebox and infact link to the links page using a standard hyperlink (located in the footer of my site).
Maybe it would be helpful to others to include this 'fix' in the next release?
As for the other error (number 2) I'm using php 5.2.0 and I don't think (not tried yet) this error will occur with earlier versions of php.
If I get a moment I'll test it out and post my results.
Thanks again for your hard work with this contribution. :)
Alex,
I just put together an update with your php5 fix in admin/links_categories.php and the fix for tpl_links_default.php line 61.
The other error may well relate to php5. My host is using 4.4.2 and as I said, I couldn't reproduce the error (I added half a dozen links from admin).
Is there a way to arrange the links in a different order than the default? I would like for my links to show from latest to oldest with the lates being number 1 and so on. Does anybody know if that is possible?
Thanks in advance for your time
I can work on a sort order for the links and see what I can come up with. Right now the default order is all there is.