Announcement

Collapse
No announcement yet.

Fatal error: Call to a member function query_first_slave() [ how to solve it .. ? ]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fatal error: Call to a member function query_first_slave() [ how to solve it .. ? ]

    Hi All ;
    Eid Mubarak
    My forum shows this message , for three days .. And I cant solve it or do any thing , and i cant to log to admin cp
    the message is :
    Fatal error: Call to a member function query_first_slave() on a non-object in /home5/*****/public_html/vb/includes/functions.php on line 1945

    could any one help me ?
    REGARDs

  • #2
    up please ..
    any body help me .. it's complex problem ..
    REGARDS

    Comment


    • #3
      That is from a modification or bad file.

      To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

      Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

      [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

      Next, disable all plugins.

      Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

      define('DISABLE_HOOKS', true);

      Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it.

      Do you have the same problem?
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        Steve Machol
        hi sir,
        happy to see you in my thread
        but after reuploading the files
        the problem still exists and i can't log to admincp or any directory in the forum !
        still needing a help ..
        REGARDS

        Comment


        • #5
          NOTE :
          the version of forum is : 3.7.4

          Comment


          • #6
            Before this happened, did you edit your styles, did you remove your main style for example?
            Try uploading tools.php into admincp and load tools.php from the browser. Re-import the style and rebuild bitfields. Reset your cookie values (even if they are already set ok)
            Then close the tab, remove your cookies. Close browser, open browser again and try logging in again.
            Maybe now it can find the styleid and the object it's missing due to it, and complete setting the cookie.
            If not, check your database with phpmyadmin and see if the table prefix is still matching what you set in config.php

            Comment


            • #7
              Originally posted by Floris View Post
              Before this happened, did you edit your styles, did you remove your main style for example?
              Try uploading tools.php into admincp and load tools.php from the browser. Re-import the style and rebuild bitfields. Reset your cookie values (even if they are already set ok)
              Then close the tab, remove your cookies. Close browser, open browser again and try logging in again.
              Maybe now it can find the styleid and the object it's missing due to it, and complete setting the cookie.
              If not, check your database with phpmyadmin and see if the table prefix is still matching what you set in config.php



              in tools.php
              after uploading


              Warning: require_once(./install/init.php) [function.require]: failed to open stream: No such file or directory in /home5/**/public_html/vb/**/tools.php on line 43

              Fatal error: require_once() [function.require]: Failed opening required './install/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home5/**/public_html/vb/**/tools.php on line 43

              Comment


              • #8
                after upload the file install
                the header of tools.php content

                Warning: Cannot modify header information - headers already sent by (output started at /home5/**/public_html/cgi-bin/incladd.php:1) in /home5/***/public_html/vb/install/tools.php on line 65

                Comment


                • #9
                  There is no incladd.php file in vB. That is from a modification.
                  Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                  Change CKEditor Colors to Match Style (for 4.1.4 and above)

                  Steve Machol Photography


                  Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  X