+ Reply to Thread
Results 1 to 8 of 8

Thread: Fatal error: ?

  1. Join Date
    Jun 2007
    Posts
    4

    Fatal error: ?

    I get this error when i run the script on my home page:

    Fatal error: Call to a member function on a non-object in /home/content/s/h/a/shadyhero/html/forum-news/news.php on line 383

    could it be my absolute path is wrong?

  2. Join Date
    Aug 2004
    Posts
    781

    Re: Fatal error: ?

    It looks like either someone modified your script or something is screwed up with your copy.

    Line 383 contains an error line that is calling an error object. The error object is initialized in the constructor... so something with your script has been modified.

    1. Delete the script.
    2. Download the script from http://www.ep-dev.com
    3. Upload a fresh UNMODIFIED version of the script.
    4. Visit /admin panel and configure your script.

  3. Join Date
    Jun 2007
    Posts
    4

    Re: Fatal error: ?

    New errors.

    Warning: Invalid argument supplied for foreach() in /home/content/s/h/a/shadyhero/html/EP_Dev_Forum_News/news.php on line 243
    ERROR: Invalid forum id(s) specified.

    and now i have this error

    Fatal error: Call to a member function on a non-object in /home/content/s/h/a/shadyhero/html/EP_Dev_Forum_News/news.php on line 424

    and i'm doing everything the readme says to, so could it just be something in the script settings or news sources?

  4. Join Date
    Aug 2004
    Posts
    781

    Re: Fatal error: ?

    You are using the admin panel, correct?

    Do not attempt to use the advanced manual configuration (where you are manually editing configuration files). Use the admin panel on a fresh install.

  5. Join Date
    Jun 2007
    Posts
    4

    Re: Fatal error: ?

    Well I re-installed it. Using the Admin CP I filled out everything I needed to and still get this error:

    Fatal error: Call to a member function on a non-object in /home/content/s/h/a/shadyhero/html/EP_Dev_Forum_News/news.php on line 424

    What could I be doing wrong?

  6. Join Date
    Aug 2004
    Posts
    781

    Re: Fatal error: ?

    Time for more information then:
    1. What is the generated code that you are using (the one you copied from the admin panel)?
    2. What is the forum you are using?
    3. Is your news source enabled in the admin panel?

    You can provide those. Also, if you like, I can probably resolve this quickly if you provide me access to your EP-Dev Forum News admin panel / FTP (simply message me the info using these forums). If not, then I can make an educated guess based on what you provide above.

  7. Join Date
    Jun 2007
    Posts
    4

    Re: Fatal error: ?

    The generated code im using is

    <?php include_once("/home/content/s/h/a/shadyhero/html/EP_Dev_Forum_News/news.php");
    $forum_obj = new EP_Dev_Forum_News();
    $forum_obj->display_News("10", "1,", "0", "0"); ?>

    I am using IP.Board 2.3.0

    And yes the news source is enabled.

    I'll message you shortly.

  8. Join Date
    Aug 2004
    Posts
    781

    Re: Fatal error: ?

    Well, your category ID is definitely wrong. It is "1," ... that is wrong because for two reasons:
    1. Your forum does not even have a category with the id of "1" (your news sub forum is "2"... this is clear from the link to your news forum).
    2. Your have a trailing comma... this is clearly wrong. I provide examples for a reason: so that you do not enter incorrect input.

    Your forum was also wrong. You had it set to use the IPB 1.3 class instead of the latest one, again as instructed in the script ("If your forum version isn't supported, try selecting an earlier version." <-- this is literally right next to the forum selection dropbox), of 2.1.

    I do not have any trust that you have any of it correctly configured now. I doubt your database information is correct, especially since you provided me an incorrectly cased password (passwords are typically CaSe SeNsItIve).

    You are attempting to use the script with IPB 2.3.0 ... which the script may or may not support. I have corrected the obvious problems in your script and I tried visiting the standard test file, but either you have modified this file or the script is not working for some other reason.

    If you want me to attempt to fix the problem, I will need FTP information. I cannot rely on your ability to correctly configure the script. It is clear that the script has been misconfigured so far and as such I will need FTP information to double check configuration settings or construct a class compatible with 2.3.0 if that is the problem.

+ 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