image.php MySQLi errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MPI
    New Member
    • Nov 2011
    • 14
    • 4.1.x

    [Forum] image.php MySQLi errors

    fresh install....i'm not sure whats going on...how do i fix this? (exists with database error page)

    Code:
    [B]Warning[/B]: mysqli_real_escape_string(): Couldn't fetch mysqli in  [B][path]/includes/class_core.php[/B] on line  [B]1429[/B]
    
    [B]Warning[/B]:  mysqli_real_escape_string(): Couldn't fetch mysqli in  [B][path]/includes/class_core.php[/B] on line  [B]1429[/B]
    
    [B]Warning[/B]: mysqli_query(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1391[/B]
    
    [B]Warning[/B]: mysqli_error(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1025[/B]
    
    [B]Warning[/B]: mysqli_errno(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1043[/B]
    
    [B]Warning[/B]: mysqli_query(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1391[/B]
    
    [B]Warning[/B]: mysqli_error(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1025[/B]
    
    [B]Warning[/B]: mysqli_errno(): Couldn't  fetch mysqli in [B][path]/includes/class_core.php[/B] on line  [B]1043[/B]
    and just to clarify, the ^^ above ^^ is the EXACT error code...it logs as "[path]" and not the actual path....not sure if that's relevant

    Also, got this in the mail...i'm fairly certain it's relevant to the issue at hand:
    Code:
    Database error in vBulletin 4.1.7:
    
    Invalid SQL:
    
                SELECT text, languageid, special
                FROM phrase AS phrase
                LEFT JOIN phrasetype USING (fieldname)
                WHERE phrase.fieldname = ''
                    AND varname = '' AND languageid IN (-1, 0, 0);
    
    MySQL Error   : 
    Error Number  : 
    Request Date  : Saturday, November 5th 2011 @ 09:25:43 PM
    Error Date    : Saturday, November 5th 2011 @ 09:25:43 PM
    Script        : http:///
    Referrer      : 
    IP Address    : 
    Username      : 
    Classname     : vB_Database_MySQLi
    MySQL Version :
    other info: I have both gd AND imagemagick istalled

    please advise.
    Last edited by MPI; Sat 5 Nov '11, 5:52pm.
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Try editing your includes/config.php file and setting $config['Database']['dbtype'] to 'mysql' instead of 'mysqli'.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • MPI
      New Member
      • Nov 2011
      • 14
      • 4.1.x

      #3
      since this was a fresh install I compiled php only with MySQLi, thus, changing the config.php to "mysql" outputs:

      Fatal error: Call to undefined function mysql_connect() in /includes/class_core.php on line 314

      Comment

      • MPI
        New Member
        • Nov 2011
        • 14
        • 4.1.x

        #4
        okay....recompiled php with regular MySQL support and revised config.php appropriately.

        no more php warnings


        but i still want to use mysqli....how do I fix it?

        is this a bug?
        Last edited by MPI; Sun 6 Nov '11, 1:25am.

        Comment

        • MPI
          New Member
          • Nov 2011
          • 14
          • 4.1.x

          #5
          ...?

          Comment

          • BirdOPrey5
            Senior Member
            • Jul 2008
            • 9613
            • 5.6.3

            #6
            What page are you viewing causing the errors?

            What version on PHP are you using?
            Last edited by BirdOPrey5; Sun 6 Nov '11, 12:57pm.

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              I use mysqli on my 4.1.7 test site. However, I use mysql on another test site, so my php is compiled with support for both. I honestly can't say if that is necessary or not.

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools <- awesome site for html/css help

              Comment

              • MPI
                New Member
                • Nov 2011
                • 14
                • 4.1.x

                #8
                4.1.7 publishing suite

                Originally posted by BirdOPrey5
                What page are you viewing causing the errors?

                What version on PHP are you using?
                http://domain.com/forum/image.php (because captchas are not working)

                php 5.3.8


                Originally posted by Lynne
                I use mysqli on my 4.1.7 test site. However, I use mysql on another test site, so my php is compiled with support for both. I honestly can't say if that is necessary or not.
                I'm confused by your last reply, can you please elaborate?

                Comment

                • George L
                  Former vBulletin Support
                  • May 2000
                  • 32996
                  • 3.8.x

                  #9
                  Originally posted by MPI
                  okay....recompiled php with regular MySQL support and revised config.php appropriately.

                  no more php warnings


                  but i still want to use mysqli....how do I fix it?

                  is this a bug?
                  compile php with both mysql and mysqli support
                  :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                  :: Nginx SPDY SSL - World Flags Demo [video results]
                  :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                  Comment

                  • MPI
                    New Member
                    • Nov 2011
                    • 14
                    • 4.1.x

                    #10
                    Originally posted by eva2000
                    compile php with both mysql and mysqli support
                    BINGO!

                    Fix:
                    '--with-mysql' '--with-libdir=lib64' '--with-mysqli' '--with-libdir=lib64'
                    Thanks George.

                    Comment

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