Announcement

Collapse
No announcement yet.

Warning: array_key_exists() expects parameter 2 to be array, null given in ..

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

  • [Resolved] Warning: array_key_exists() expects parameter 2 to be array, null given in ..

    Forum version: vBulletin 5.3.0 Connect
    PHP version: 5.6
    1. The forum was working absolutely fine till last night (IST). Now after 8 hours I visited the forum and got a couple of warnings right up the top of the forum related to disk quota exceeding (feel bad that I did not take a screenshot of the warnings).
    2. Cleared system cache through forum administration panel. Those couple of warnings did not go away.
    3. Optimized and repaired tables through forum administration panel and all went wrong.



    Right now the forum is not loading (Forum: IndianVapers.com)

    Coming up with this error ...

    Code:
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: Cannot modify header information - headers already sent by (output started at .../vb/vb.php:1133) in /home/indiana/public_html/includes/vb5/applicationabstract.php on line 432  A System Error has occured.
    
    
    The software is experiencing a systems error.
    
    You should attempt to repeat your last action. If this error occurs again, please contact the site administrator.
    Enabled debug in config.php and this is the error it shows ..

    Code:
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: Cannot modify header information - headers already sent by (output started at .../vb/vb.php:1133) in /home/indiana/public_html/includes/vb5/applicationabstract.php on line 432 Error :API Error
    Error: php_error_x
    Args:  
     array (   0 => 'Fatal error: The requested language does not exist, reset via tools.php. in .../vb/session.php on line 786 ', ) on line 1165 in /home/indiana/public_html/core/vb/vb.php
    I was suggested to upload tools.php file to /core/admincp/
    I also uploaded the tools.php to /core/install

    Tried from both the folders but when I try to load tools.php file from this location, it comes up with this error ...

    Code:
    API Error
    Error: php_error_x
    Args:  
     array (   0 => 'Fatal error: The requested language does not exist, reset via tools.php. in .../vb/session.php on line 786 ', )
    Any ideas what could have gone wrong? What can I do to fix this problem?

    Would appreciate any lead into solving this issue. I googled for this error but the errors take me back to 2010 with vB4. Don't see any similar posts for vB5 Connect.

    Regards.

    ======================================

    Fix for the problem:

    1. Through PHPMyAdmin .. Optimize all tables. It came up with showing a few tables corrupt.
    2. Through PHPMyAdmin .. Repair all tables. On most tables it said OK but on a few the message was a bit different ..

    The forum is working and everything seems to be intact. Don't see any data missing so far.

    Hoping this helps others who run into this problem. Read the discussion below for full details ..
    Last edited by adkaush; Wed 26 Jul '17, 7:28pm.

  • #2
    What vB version are you using?

    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


    • #3
      Hi Glenn,

      Thanks for the reply!

      It is VB 5 Connect 5.3.0
      PHP version is 5.6

      I was supposed to update to 5.3.1 but couldn't find enough time to do so. And this happened in the meantime.

      Read some articles and enabled the debug mode in config.php and this is what I get when I try to access the forum from the front end ..

      Code:
      Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: array_key_exists() expects parameter 2 to be array, null given in .../vb/permissioncontext.php on line 358 Warning: Cannot modify header information - headers already sent by (output started at .../vb/vb.php:1133) in /home/indiana/public_html/includes/vb5/applicationabstract.php on line 432 Error :API Error
      Error: php_error_x
      Args:  
       array (   0 => 'Fatal error: The requested language does not exist, reset via tools.php. in .../vb/session.php on line 786 ', ) on line 1165 in /home/indiana/public_html/core/vb/vb.php
      Last edited by adkaush; Wed 26 Jul '17, 5:50am.

      Comment


      • #4
        The error message has a suggestion. It says the requested language does not exist, reset via tools.php.

        Upload the tools.php from the do_not_upload folder of the 5.3.0 package to the /core/admincp folder. Also upload the /upload/core/install folder to the /core folder of your vB root folder. Then run this in the browser: <your forum base url>/admincp/tools.php.

        After you're done, delete all the files/folder you uploaded.

        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


        • #5
          Hi Glenn,

          Thanks for the reply.

          I just followed the steps you mentioned.

          Uploaded the tools.php to /core/admincp folder
          Uploaded the install folder to /core/
          Tried opening the tools.php file .. indianvapers.com/core/admincp/tools.php

          But same error coming up ..

          Code:
          API Error
          Error: php_error_x
          Args:  
           array (   0 => 'Fatal error: The requested language does not exist, reset via tools.php. in .../vb/session.php on line 786 ', )

          Comment


          • #6
            Hello,

            Please advise what should I try doing.

            Not too sure if it has anything to do with /home/indiana/public_html/includes/vb5/applicationabstract.php on line 432 Error

            Line 432 shows ..




            It looks to be a problem with charset or something. Do you think that could be the problem?

            Sorry, I'm just going nuts with looking into different things. Don't wish to make any changes without guidance, I'll end up creating further issues.

            Thanks for any help.

            Regards,
            Andy.

            Comment


            • #7
              Is the problem with some files or is the problem with the database? Please give me some clues that I can work on ..

              Thanks.

              Comment


              • #8
                Something off I noticed .. When I go through PHPMyAdmin and check my database structure .. it shows some of the tables "in use". Doesn't look normal ..



                Is there any co-relation between the problem I am facing with the forum and those "in use" tables?

                And all collations are showing latin1_swedish_ci ... is this normal? I don't think I ever did anything to select that.

                Comment


                • #9
                  Whoa! The forum just came back to life ...

                  All I did ..

                  1. Through PHPMyAdmin .. Optimize all tables. It came up with showing a few tables corrupt.
                  2. Through PHPMyAdmin .. Repair all tables. On most tables it said OK but on a few the message was a bit different ..



                  For heaven's sake, don't know what will work and what will not work on the forum. I hope I did not lose any data ..sigh.

                  Will report back if I lost anything on the forum.

                  Comment


                  • #10
                    The message about the storage engine is completely normal.

                    You may have had a crashed table.
                    MARK.B | vBULLETIN SUPPORT

                    TalkNewsUK - My vBulletin 5.6.3 Demo
                    AdminAmmo - My Cloud Demo

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X