Okay
  Public Ticket #1987879
Error on pages
Closed

Comments

  • Erica Gir started the conversation

    im getting an error on all the products pages. 


    Warning: array_map(): Argument #2 should be an array in /home/ilgiardi/public_html/wp-content/themes/cesis/admin/redux-extensions/extensions/metaboxes/extension_metaboxes.phpon line 881

    Please check the reply from my support team



    It appears that this is a coding issue with the theme that you are using.

    I reviewed the file:

    Code:

    ~/public_html/wp-content/themes/cesis/admin/redux-extensions/extensions/metaboxes/extension_metaboxes.php


    on line 881 and commented on the directive there:

    Code:

    #$new_value = array_map( 'maybe_unserialize', $value );


    This resolved the issue and the error is no longer visible.

    As far as I understand the issue may be related to the PHP version, however, upon changing the version, more errors appear, therefore I left the original version 7.1 and edited the theme file.


    Plus
    Last week I got an other error that makes the site crash and they suggested to keep the php Version not updated with a htaccess modification


    Please advise if this problems will be handled in different way

    Thanks

  •  895
    TheFox replied

    Hello Erica,

    Can you please tell us :

    php version used ( also the one used when you get the error )

    theme verison

    WordPress version

    Current active plugins and their version.

    Also if you could try to deactivate custom plugins that are not included in the theme it would help to understand what is the problem.

    Our theme should be fully compatible to php 7.2 without any problems so that's really strange.

    Kind regards

  • Erica Gir replied

    hallo

    Before I've also tried to deactivate all the WP plugins as many of the problem was 

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/ilgiardi/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php on line 806

    but i still have 3 problems

    Warning: array_merge(): Argument #2 is not an array in /home/ilgiardi/public_html/wp-includes/load.php on line 66

    Warning: Cannot modify header information - headers already sent by (output started at /home/ilgiardi/public_html/wp-includes/load.php:66) in /home/ilgiardi/public_html/wp-includes/pluggable.php on line 1251

    Warning: Cannot modify header information - headers already sent by (output started at /home/ilgiardi/public_html/wp-includes/load.php:66) in /home/ilgiardi/public_html/wp-includes/pluggable.php on line 1254

    This with No plugin active and:

    I cesis_cp 1.3
    I contact-form-7 5.1.1
    I duplicate-post 3.2.2
    I duplicator 1.3.10
    I enable-media-replace 3.2.9
    I envato-market 2.0.1
    UI google-analytics-for-wordpress 7.5.0
    I heartbeat-control 1.2.5
    I LayerSlider 6.7.6
    I wpml-mailchimp-for-wp 0.0.3
    UI redirection 4.1.1
    I simple-membership 3.7.8
    I revslider 5.4.8.2
    I the-grid 2.6.60
    UI woocommerce 3.5.7
    I woocommerce-multilingual 4.5.0
    I wordfence 7.2.4
    I js_composer 5.7
    I wpml-cms-nav 1.5.0
    I wpml-media-translation 2.5.0
    I sitepress-multilingual-cms 4.2.0
    I wpml-string-translation 2.10.0
    I wpml-translation-management 2.8.0
    UI wordpress-seo 10.1.2

    So the hosting support suggested To switch to PHP 5.6
    And now it is fix.

    But I wonder what to do in long term.


  •  895
    TheFox replied

    Hello Erica,

    I don't know for sure but it is probably a problem due to the duplicate plugins you used.

    WPML and our theme are totally compatible and also 7.2 compatible.

    What you could try if your hosting let you install multiple installation is to create a new wordpress with php 7.x and try to install the theme and plugins to see if it generates the same error but I think it is related to the wordpress installation you have currently.

    Kind regards