Results 1 to 7 of 7

Thread: I got fatal Error when rating links..... Please Help

  1. #1
    Join Date
    Sep 2003
    Posts
    4

    Default I got fatal Error when rating links..... Please Help

    Hi,

    When I submit the rating form in detail.php, I got the fatal error code as follow:

    Fatal error: Call to a member function on a non-object in /home/virtual/site3/fst/var/www/html/lib/link.class.php on line 2454


    Can anyone help me to make it work please...

    Thanks

  2. #2
    Join Date
    Jul 2002
    Posts
    189

    Default

    Hi,

    did you change some code in detail.php or html template? If so, upload the old files again and check if there is still an error.

    Joerg
    --------- applying hacks require a knack ---------

  3. #3
    Join Date
    Sep 2003
    Posts
    4

    Default

    Hi,

    Thanks for reply!!!

    No, I didnt change the detail.php and html file. I install InDEXU 3.1 with patch plus the Chinese version pack...

    I still get error even I change back to default template file ( English Template ).... Error still there as follow:


    Fatal error: Call to a member function on a non-object in /home/virtual/site3/fst/var/www/html/lib/link.class.php on line 2454


    Anyone know this problem or experienced this before Please Help

    Thanks

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    the reason for a "Fatal error: Call to a member function on a non-object in ... /lib/link.class.php on line 2454" errors is that the program is trying to do something with the results of a "query"and there were no results ( or unexpected results ).

    for example, in the rating process, INDEXU does a TABLE INSERT to the votes table (a "query" ). If there is no table called votes, you will get the above "Fatal error:" or if the rating value passed to the RateLink function is not acceptable for some unknown reason, the query will fail and cause the error.

    in the RateLink function you could try inserting a print statement after the query statements to see the actual query

    Code:
    $query = "select ip from $this->votes_table_name where link_id = $id and ip = '$ip'";
    echo "<br>\$query= " . $query;
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Sep 2003
    Posts
    4

    Default

    I figure it out now. Thanks

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    tell us what you did to solve the problem
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Sep 2003
    Posts
    4

    Default

    I found that the whole database is empty when I first time
    installed it. I guess it did not create dabatase at all. So I upload the install.php and reinstall it. Now this time the script do create database and rate function works.

    I guess probably i put the wrong database name or something on first time installation cos I create database name first under phpMyadmin then put the DB name on the install.php.


    Thanks

Similar Threads

  1. Moving from G-T Links 2
    By esm in forum Pre-Sales Questions
    Replies: 14
    Last Post: 05-30-2005, 04:26 PM
  2. Replies: 6
    Last Post: 02-23-2004, 10:40 AM
  3. Delete 800 links one at a time ?
    By killipso in forum v5.x
    Replies: 2
    Last Post: 01-26-2004, 10:55 AM
  4. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 11:57 AM
  5. External rating for admin links ?
    By Frank71 in forum v5.x
    Replies: 2
    Last Post: 10-14-2002, 02:39 AM

Posting Permissions

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