Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • b4nite Friend
    #126666

    Just fixed a problem with “JA NEWS” module that I found in the Joomla 1.0x installer.

    Problem: I get an error like “JFactory class” when publish the JA_NEWS module

    file: helper.php

    change the last function to:

    function getAllCatIds ($catorsec) {
    global $database;
    // $db =& JFactory::getDBO();
    if($catorsec){
    $query = “SELECT id FROM #__categories WHERE published = 1;”;
    }
    else{
    $query = “SELECT id FROM #__sections WHERE published = 1;”;
    }
    // $db->setQuery($query);
    $database->setQuery($query);
    $c = $database->loadObjectList();
    $catids = array();
    foreach($c as $_c) $catids[] = $_c->id;
    return $catids;
    }

    This will fix it…

    Hope this helps others…

    Maybe update in the “install” file from the beginning…

    Best regards,

    André

    bigrk Friend
    #242426

    Thanks for posting your solution b4nite!

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  bigrk 16 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum