+ Reply to Thread
Results 1 to 8 of 8

Thread: Problem, script not working

  1. Join Date
    Oct 2006
    Posts
    3

    Problem, script not working

    Hello, i just installed the script and tried to run the following code on a test site:
    Code:
    <?php include_once("/home/sites/zeus-gaming.net/public_html/news/news.php");
    $forum_obj = new EP_Dev_Forum_News();
    $forum_obj->display_News("1", "1", "0", "0"); ?>
    But all i get is:
    Fatal error: Call to a member function on a non-object in /home/sites/zeus-gaming.net/public_html/news/news.php on line 424

  2. Join Date
    Aug 2004
    Posts
    781

    Re: Problem, script not working

    Is the forum enabled in the news script?

    Go to the settings page and make sure that the first news source is enabled.

  3. Join Date
    Oct 2006
    Posts
    3

    Re: Problem, script not working

    it is enabled

  4. Join Date
    Aug 2004
    Posts
    781

    Re: Problem, script not working

    This is definitely a bug. However, at the moment you can get around the bug by ensuring that new source #8 is disabled (in fact, make sure all other sources are disabled). I think the script was accidentally released the other day with #8 enabled.

    I will fix the bug and release another update quickly as well.

  5. Join Date
    Aug 2004
    Posts
    781

    Re: Problem, script not working

    As promised, here is the actual bug fix:
    Open news.php :
    find:
    Code:
    for($i=0, $connect_success=true; $i<count($this->FORUM) && $connect_success; $i++)
    and Replace with:
    Code:
    for($i=0, $connect_success=true; $i<count($this->FORUM) && $connect_success; $i++)
    There should be only one replacement on line 422.

    I will also be releasing an updated version of the script.

    EDIT: I have released v 2.24 which fixes this bug (or you can apply the fix above).

  6. Join Date
    Oct 2006
    Posts
    3

    Re: Problem, script not working

    Thanks, is working now... But i was wondering. If there is a image in the topic is there any possible way to set a max width on it on the news?

  7. Join Date
    Aug 2004
    Posts
    781

    Re: Problem, script not working

    There is no built in mechanism for the script to resize images.

    Images and the interaction with them greatly depends on the forum. Most people who use forums which do not provide good image functionality for posts end up using the [ img ] bbcode tags to display a manually created thumbnail of the image that links to the larger image.

  8. Join Date
    Oct 2006
    Posts
    1

    Re: Problem, script not working

    I upgraded to 2.24 and now I get this error. Only happened after the upgrade from 2.21



    Fatal error: Call to undefined function: initialize() in /home/venomx1/public_html/revoked/forum-news/news.php on line 424

    UPDATE : Found the problem. Apparently my FTP program didn't overwrite the old files.

+ Reply to Thread

Posting Permissions

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