what does this mean, I didnt edit any php files at all so why would....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xelation
    Senior Member
    • Jan 2002
    • 229
    • 3.0.0 Beta 5

    what does this mean, I didnt edit any php files at all so why would....

    what does this mean, I didnt edit any php files at all so why would I be getting this...


    Warning: Offset 0 is invalid for MySQL result index 25 in /home/daxio/public_html/forum/admin/db_mysql.php on line 187

    Warning: Offset 0 is invalid for MySQL result index 25 in /home/daxio/public_html/forum/admin/db_mysql.php on line 187

    Warning: Offset 0 is invalid for MySQL result index 25 in /home/daxio/public_html/forum/admin/db_mysql.php on line 187

    Warning: Offset 0 is invalid for MySQL result index 25 in /home/daxio/public_html/forum/admin/db_mysql.php on line 187


    I hope someone can help me
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Did you make any templates changes, particularly to phpinclude?
    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

    • Xelation
      Senior Member
      • Jan 2002
      • 229
      • 3.0.0 Beta 5

      #3
      yes, one sec I'll show you my php include template

      Comment

      • Xelation
        Senior Member
        • Jan 2002
        • 229
        • 3.0.0 Beta 5

        #4
        // This code is PHP4 only:
        // ob_start();
        // require("yourheader.html");
        // $header = ob_get_contents();
        // ob_end_clean();
        $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
        $numbermembers=number_format($numbersmembers['users']);

        // get newest member
        $getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
        $newusername=$getnewestusers['username'];
        $newuserid=$getnewestusers['userid'];

        // get total posts
        $countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
        $totalposts=number_format($countposts['posts']);

        $countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
        $totalthreads=number_format($countthreads['threads']);

        // if user is know, then welcome
        if ($bbuserinfo['userid']!=0) {
        $username=$bbuserinfo['username'];
        eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
        eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
        eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");

        } else {
        $welcometext = "";
        eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
        eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
        }

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          What did you add? Does the error disappear when you remove it?
          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

          • Xelation
            Senior Member
            • Jan 2002
            • 229
            • 3.0.0 Beta 5

            #6
            first off, the things I added to the template are the $logincode and this...

            Welcome back, Xelation
            Welcome to our newest Member, Xelation!
            Members: 2, Threads: 2, Posts: 17

            its so I can put it into the header without editing the php files... now second, I reverted the phpinclude template back to normal and it still does the same thing. :\

            Comment

            • Steve Machol
              Former Customer Support Manager
              • Jul 2000
              • 154488

              #7
              Well these things don't happen without something changing. Unfortunately I suspect you have many hacks otherwise I would suggest you fuill out a support request. Other than reuploading all the original vB file I don't know what else to suggest. Clearly one or more scripts are causing this problem.

              What exactly are you doing when you get this error? And what is the URL that generates it?
              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

              • Xelation
                Senior Member
                • Jan 2002
                • 229
                • 3.0.0 Beta 5

                #8
                I havnt added any hacks at all, thats the problem... so how could it be the templates....

                it only happens when a thread recieves more than one page of posts.

                Comment

                • Steve Machol
                  Former Customer Support Manager
                  • Jul 2000
                  • 154488

                  #9
                  The only way I could see this happening is with a php script, and that means either the vB php files or something added to phpinclude.

                  Also once again - What is the URL that generates this error?
                  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

                  • Xelation
                    Senior Member
                    • Jan 2002
                    • 229
                    • 3.0.0 Beta 5

                    #10
                    Last edited by Xelation; Thu 29 Aug '02, 7:56pm.

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #11
                      Thanks. Have you tried the obvious yet - i.e., reupload all the original php files? Make sure you upload in ASCII and overwrite the files on the server.
                      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

                      • Xelation
                        Senior Member
                        • Jan 2002
                        • 229
                        • 3.0.0 Beta 5

                        #12
                        I did that, I will do it again though

                        Comment

                        • Steve Machol
                          Former Customer Support Manager
                          • Jul 2000
                          • 154488

                          #13
                          FWIW here's line 187 in db_mysql.php:

                          PHP Code:
                             return mysql_data_seek($this->query_id$pos); 
                          Did you changes servers or did the server change PHP versions by any chance?
                          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

                          • Xelation
                            Senior Member
                            • Jan 2002
                            • 229
                            • 3.0.0 Beta 5

                            #14
                            nothing but fresh php files and still the same thing, the only thing I can think of would be the config.php file... thats the only thing thats edited.

                            Comment

                            • Xelation
                              Senior Member
                              • Jan 2002
                              • 229
                              • 3.0.0 Beta 5

                              #15
                              hmm very well could be the version of php... I'll check it out and let you know

                              Comment

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