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

if ($_Itemid == null) {
// Search in blog categories
    $_Itemid = $menuhandler->getIDByTypeCid ('content_blog_category', $catid);
}

sehingga akan menjadi

if ($_Itemid == null) {
    // Search in blog categories
    $_Itemid = $menuhandler->getIDByTypeCid ('content_blog_category', $catid);
}
if ($_Itemid == null) {
    // Search in categories
    $_Itemid = $menuhandler->getIDByTypeCid ('content_category', $catid);
}

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

About Adi Setiawan

web developer, @startupbali initiator, ubuntu user, proud father. Living in-between space

01. June 2007 by Adi Setiawan
Categories: Mambo CMS | 2 comments

Leave a Reply

Required fields are marked *

*