1. New Zenner
Join Date
Dec 2006
Posts
16
Plugin Contributions
0

## Re: Link Manager 3.0 release

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)

2. ## Re: Link Manager 3.0 release

I've been trying every 10 mins for the past hour and still no luck.

3. New Zenner
Join Date
Dec 2006
Posts
16
Plugin Contributions
0

## Re: Link Manager 3.0 release

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.

4. Totally Zenned
Join Date
Mar 2006
Posts
921
Plugin Contributions
2

## Re: Link Manager 3.0 release

Great work Clyde! :)

However, I've found a few problems when running under php 5.2.0.

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...

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

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.

:)

5. ## Re: Link Manager 3.0 release

Alex,

Thanks for the update.

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
PHP Code:
 <?php echo TEXT_NO_CATEGORIES; ?> 
I'll check the other error and see if I can find a fix.

6. ## Re: Link Manager 3.0 release

Alex,

7. Totally Zenned
Join Date
Mar 2006
Posts
921
Plugin Contributions
2

## Re: Link Manager 3.0 release

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. :)

8. ## Re: Link Manager 3.0 release

Alex,

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).

9. ## Re: Link Manager 3.0 release

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?

10. ## Re: Link Manager 3.0 release

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.

Page 3 of 193 First 123451353103 ... Last

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•