Warning: in_array() expects parameter 2 to be array

Discussion in 'Installation/Configuration' started by Steffan, Jan 19, 2017.

  1. Steffan

    Steffan Member

    I n the controlpanel my resellers see a error when editing a site:
    Warning: in_array() expects parameter 2 to be array, string given in /usr/local/ispconfig/interface/web/sites/web_vhost_domain_edit.php on line 342
    this is not by normal clients.
    How to fix?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just a guess, you are using PHP 7.1 (instead of php 5.x or 7.0) and PHP 7.1 is not compatible with ISPConfig. Check out the perfect server tutorials, they tell you in detail how to install ISPConfig and which PHP version must be used on which OS.
     
  3. Steffan

    Steffan Member

    PHP 5.6.29 as default
    And
    php70 from remi-safe
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the php version by placing a info.php file with:

    <?php
    phpinfo();
    ?>

    in /usr/local/ispconfig/interface/web/info.php

    and then open the file in your browser on the ispconfig port (normally 8080). Delete the file right after you checked it.
     
  5. Steffan

    Steffan Member

    upload_2017-1-19_10-33-3.png
    PHP Version 5.6.29
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, ok, and ISPConfig version is 3.1.1p1?
     
  7. Steffan

    Steffan Member

  8. Steffan

    Steffan Member

    after update to 3.1.2 the message is gone
     

Share This Page