1
xoobaru
Bug Report: MyLinks Category Link in Random Links Block 404
  • 2013/2/1 2:43

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Hello, too may posts for one day, but:

There is a category link within the MyLinks "Random Link" block that when clicked gives a 404 not found error for category.php not found.

The error is valid. There is no category.php file in the module directory.

Edit:
I found that category links do work form the main interface, but they are calling viewcat.php instead (successfully). It looks like someone never changed this block code to call viewcat.php instead of category.php. I should have the fix posted tomorrow.

2
xoobaru
Solved -Re: Bug Report: MyLinks Category Link in Random Links Block 404
  • 2013/2/1 19:51

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


To fix the previouly mentioned bug

Go to line 50 of /mylinks/blocks/mylinks_rand.php

Replace this:
$block['content'] = "font-size12pxfont-weightboldbackground-color#ccc; padding: 4px; margin: 0;">{$categoryName}
";


With this:
$block['content'] = "font-size12pxfont-weightboldbackground-color#ccc; padding: 4px; margin: 0;">{$categoryName}
";


or just locate category.php text in line 50 and change to viewcat.php

Tested and it works as expected now.

3
Cesagonchu
Re: Solved -Re: Bug Report: MyLinks Category Link in Random Links Block 404

Thank you for your help

Login

Who's Online

310 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits