Mambo 4.6.2 bug di blog category Itemid

Beberapa user di forum mengalami masalah ketika mengupgrade mambo-nya ke versi 4.6.2. detail thread bisa diliat di

http://forum.mambo-foundation.org/showthread.php?p=25997

Intinya, jika content item yang berada di blog category di klik utk melihat detail, akan terdapat pesan not authorized. Hal ini karena Itemid yang salah. Solusi nya sebenernya simpel, di components/com_content/content.class.php di line 430 tambahkan baris berikut

PHP:
  1. if ($_Itemid == null) {
  2. // Search in blog categories
  3.     $_Itemid = $menuhandler->getIDByTypeCid ('content_blog_category', $catid);
  4. }

sehingga akan menjadi

PHP:
  1. if ($_Itemid == null) {
  2.     // Search in blog categories
  3.     $_Itemid = $menuhandler->getIDByTypeCid ('content_blog_category', $catid);
  4. }
  5. if ($_Itemid == null) {
  6.     // Search in categories
  7.     $_Itemid = $menuhandler->getIDByTypeCid ('content_category', $catid);
  8. }

kode diatas akan mencari itemid di menu yg bertipe blog category.

2 Responses to “Mambo 4.6.2 bug di blog category Itemid”


  1. 1 dental

    alrite, god speak! :P

  2. 2 adisetiawan

    [quote comment="428"]alrite, god speak! :P[/quote]
    hus..hus..

Leave a Reply




It seems you're using an unsafe, out-of-date browser. Click here to upgrade to Firefox for free. X