• Resolved Stanislavzxc

    (@stanislavzxc)


    After plugin update (not sure from what version) I’ve got this in error log:
    PHP Fatal error: Cannot redeclare recurse() (previously declared in wp-content/plugins/addthis/addthis_settings_functions.php:476) in wp-content/plugins/addthis/addthis_settings_functions.php on line 476

    <br />
    if (!function_exists('array_replace_recursive')) {<br />
      function array_replace_recursive($array, $array1) {<br />
        function recurse($array, $array1) {<br />
    ...<br />

    Seems like array_replace_recursive() calls more than once and it causes redeclaration of recurse() function.

    I don’t call it in template or anywhere in code. Just set it up in admin panel.

    Could you help me with it?
    Thank you.

    https://ww.wp.xz.cn/plugins/addthis/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Stanislav.

    We have a fix in testing now, and are planning on releasing it imminently with 5.1.1.

    Thanks,
    Julka

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Stanislav,

    5.1.1 was released moments ago and I believe it fixes this issue. Please let us know if you’re still having problems after upgrading.

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

The topic ‘PHP Fatal error: Cannot redeclare recurse()’ is closed to new replies.