An unexpected error was returned: 'Array passed to Insert Query'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mittac
    Member
    • Feb 2014
    • 93
    • 5.0.X

    An unexpected error was returned: 'Array passed to Insert Query'

    When creating a new theme and adding a photo - you get such an error

    Click image for larger version

Name:	tema.jpg
Views:	97
Size:	336.6 KB
ID:	4368411


  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    Does this happen in a default style using English as the language?
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • mittac
      Member
      • Feb 2014
      • 93
      • 5.0.X

      #3
      Originally posted by Mark.B
      Does this happen in a default style using English as the language?
      yes

      Click image for larger version

Name:	tt.jpg
Views:	105
Size:	12.3 KB
ID:	4368431

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        I'm confused because you said "when creating a new theme".

        What action are you actually trying to carry out please?
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • mittac
          Member
          • Feb 2014
          • 93
          • 5.0.X

          #5
          Create New Topic

          Upload Attachments

          Insert Medium

          Post

          Error



          Click image for larger version  Name:	error.jpg Views:	1 Size:	209.2 KB ID:	4368435
          Last edited by mittac; Mon 17 Apr '17, 1:02am.

          Comment

          • mittac
            Member
            • Feb 2014
            • 93
            • 5.0.X

            #6
            any ideas?

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 74111

              #7
              That isn't a default English language. Some of the text has been translated and can be the source of your problem. Please create a new Language in the AdminCP and name it English. If your translations were done properly, this new language will not contain any of them. Try again with that new language selected. Do you have any problems then?
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • mittac
                Member
                • Feb 2014
                • 93
                • 5.0.X

                #8
                Deleted language. Then he created a new language. Still an error.

                Click image for larger version

Name:	tt1.jpg
Views:	91
Size:	186.7 KB
ID:	4368468

                Comment

                • mittac
                  Member
                  • Feb 2014
                  • 93
                  • 5.0.X

                  #9
                  Can any module not be included in PHP?

                  Click image for larger version

Name:	php.jpg
Views:	96
Size:	196.0 KB
ID:	4368472

                  Comment


                  • Wayne Luke
                    Wayne Luke commented
                    Editing a comment
                    With this configuration, vBulletin wouldn't even run. You need cURL, iconv and mysqli enabled.
                • mittac
                  Member
                  • Feb 2014
                  • 93
                  • 5.0.X

                  #10
                  With did so
                  // throw new Exception ('Array passed to Insert Query');
                  in querybuilder.php

                  And the error was gone. I do not know if it's right

                  Comment


                  • Wayne Luke
                    Wayne Luke commented
                    Editing a comment
                    Well, of course, it is gone. You hide it and probably broke something else in the process.
                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 74111

                  #11
                  Please, enable debug mode on your site. Follow these instructions.

                  1. Open your /config.php file and find the following line:
                  Code:
                  $config['debug'] = false;
                  2. Change this line to:
                  Code:
                  $config['debug'] = true;
                  3. Save the file and upload it to your server.

                  4. Open the /core/includes/config.php file and find the following line:
                  Code:
                  // $config['Misc']['debug'] = true;
                  5. Change it to:
                  Code:
                  $config['Misc']['debug'] = true;
                  6. Save and upload the file to your server.


                  When you trigger the error, what is shown on the screen now?
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • mittac
                    Member
                    • Feb 2014
                    • 93
                    • 5.0.X

                    #12
                    vBulletin - Explain SQL Queries (317)

                    Duplicate Queries: (Exact textual duplicates, also included in the full listing of queries below)

                    Click image for larger version

Name:	db.jpg
Views:	94
Size:	104.8 KB
ID:	4368536

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74111

                      #13
                      That doesn't really help. If it was an error actually causing a problem, I would expect to see a stack trace and possibly the database error.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • mittac
                        Member
                        • Feb 2014
                        • 93
                        • 5.0.X

                        #14
                        The problem appeared after the update from 5.2.6 to 5.3.0

                        Comment

                        • glennrocksvb
                          Former vBulletin Developer
                          • Mar 2011
                          • 4021
                          • 5.7.X

                          #15
                          Instead of commenting out that throw statement, try temporarily replacing it with this line to get the actual values being evaluated.

                          PHP Code:
                          throw new Exception("key: $key, value: " print_r($valuetrue)); 
                          Then try reproducing the error again. Then post here what the error says.

                          Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                          Comment

                          Related Topics

                          Collapse

                          Working...