• I get an PHP error, when I activate the plugin v 2.0.6

    PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /var/www/www.beerwalk.dk/www/wp-content/plugins/etranslation-multilingual/includes/class-settings.php:440

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Morten Ellegaard Larsen

    (@ellegaarddk)

    I can run v 2.0.3 without errors.

    Plugin Author EC WEB-T

    (@ecwebt)

    Hello Morten,

    The error indicates that the second argument passed to the array_merge() function is a string instead of an array. Specifically, the call to get_option(‘etm_advanced_settings’, $default_etm_advanced_settings) is returning a string, suggesting that the option_value for etm_advanced_settings in the wp_options table is incorrectly stored as a string.

    Workaround:
    To resolve this, delete the problematic row from the database:

    DELETE FROM wp_options WHERE option_name = 'etm_advanced_settings';

    After this, the plugin should activate successfully.

    The root cause may be an outdated version of the plugin saving malformed data, or manual edits to the wp_options table. We’ve reported the issue and will include a fix in the next plugin release to handle such scenarios more gracefully.

    Thread Starter Morten Ellegaard Larsen

    (@ellegaarddk)

    That fixed it, thx. Upgraded now to 2.0.6 without problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error when activated’ is closed to new replies.