Results 1 to 7 of 7

Functions.php Error

This is a discussion on Functions.php Error within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Fatal error: Call to undefined function: query_first() in /home/***/public_html/forums/includes/functions.php on line 938 PHP Code: $user  =  $DB_site -> query_first ( ...

  1. #1
    Senior Member
    Real Name
    Chris
    Join Date
    Aug 2005
    Location
    North Carolina
    Posts
    361
    Liked
    9 times

    Exclamation Functions.php Error

    Fatal error: Call to undefined function: query_first() in /home/***/public_html/forums/includes/functions.php on line 938

    PHP Code:
    $user $DB_site->query_first("
            SELECT " 
    .
            
    iif(($option 16), ' administrator.*, ') . "
            userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
            IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid" 
    .
            
    iif(($option 1) AND $vboptions['reputationenable'] == 1', level') .
            
    iif(($option 2) AND $vboptions['avatarenabled'], ', avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline').
            
    iif(($option 8), ', customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline') .
            
    iif(!isset($vbphrase), fetch_language_fields_sql(), '') . "
            FROM " 
    TABLE_PREFIX "user AS user
            LEFT JOIN " 
    TABLE_PREFIX "userfield AS userfield ON (user.userid = userfield.userid)
            LEFT JOIN " 
    TABLE_PREFIX "usertextfield AS usertextfield ON (usertextfield.userid = user.userid) " .
            
    iif(($option 1) AND $vboptions['reputationenable'] == 1"LEFT JOIN  " TABLE_PREFIX "reputationlevel AS reputationlevel ON (user.reputationlevelid = reputationlevel.reputationlevelid) ").
            
    iif(($option 2) AND $vboptions['avatarenabled'], "LEFT JOIN " TABLE_PREFIX "avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN " TABLE_PREFIX "customavatar AS customavatar ON (customavatar.userid = user.userid) ") .
            
    iif(($option 8), "LEFT JOIN " TABLE_PREFIX "customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid) ") .
            
    iif(($option 16), "LEFT JOIN " TABLE_PREFIX "administrator AS administrator ON (administrator.userid = user.userid) ") .
            
    iif(!isset($vbphrase), "INNER JOIN " TABLE_PREFIX "language AS language ON (language.languageid = IF(user.languageid = 0, " intval($vboptions['languageid']) . ", user.languageid)) ")."
            WHERE user.userid = 
    $userid
        "
    ); 

  2. #2
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    Hello,

    Could you please provide more details on your issue? functions.php is a vBulletin file.
    Last edited by Juan Muriente; 09-06-2005 at 03:25 AM.

  3. #3
    Senior Member
    Real Name
    Chris
    Join Date
    Aug 2005
    Location
    North Carolina
    Posts
    361
    Liked
    9 times
    I upload all the files. At first I didn't realize I had to put it in Binary form...then I edit the functions.php and upload ins ASCII form...and I get the error above.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hi,

    seems like it works correctly now (at www.gunandgame.com). Could you please let us know what was an issue ni this case?

  5. #5
    Senior Member
    Real Name
    Chris
    Join Date
    Aug 2005
    Location
    North Carolina
    Posts
    361
    Liked
    9 times
    actually...thats a SEO hack from someone else I had installed.

  6. #6
    Senior Member
    Real Name
    Chris
    Join Date
    Aug 2005
    Location
    North Carolina
    Posts
    361
    Liked
    9 times
    I completed this issue. I recommend start fresh...and then redo all templates

    Thanks to all those who helped.

  7. #7
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    Thanks for the update!

Similar Threads

  1. MySQL error: mailqueue
    By rj2 in forum Troubleshooting
    Replies: 1
    Last Post: 03-04-2006, 05:27 AM
  2. apache error logs
    By MentaL in forum Troubleshooting
    Replies: 2
    Last Post: 01-20-2006, 09:45 PM

Posting Permissions

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