Announcement

Collapse
No announcement yet.

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

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

  • 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:	14
Size:	336.6 KB
ID:	4368411



  • #2
    Does this happen in a default style using English as the language?
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


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

      Click image for larger version

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

      Comment


      • #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

        TalkNewsUK - My vBulletin 5.5.6 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • #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 17th Apr '17, 2:02am.

          Comment


          • #6
            any ideas?

            Comment


            • #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 - Full / Mobile
              Vote for your favorite feature requests and the bugs you want to see fixed.

              Comment


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

                Click image for larger version

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

                Comment


                • #9
                  Can any module not be included in PHP?

                  Click image for larger version

Name:	php.jpg
Views:	14
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.

                • #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.

                • #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 - Full / Mobile
                  Vote for your favorite feature requests and the bugs you want to see fixed.

                  Comment


                  • #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:	22
Size:	104.8 KB
ID:	4368536

                    Comment


                    • #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 - Full / Mobile
                      Vote for your favorite feature requests and the bugs you want to see fixed.

                      Comment


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

                        Comment


                        • #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.

                          GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X