• Resolved cakesmash

    (@cakesmash)


    Hello.

    I just updated the plugin to version

    And then, not too sure is that related to the plugin, but when I wanted to edit the options, I got the Fatal Error message.

    Fatal error: Can’t use function return value in write context in /home/snflodnw/public_html/cakesmash.in/wp-content/plugins/woocommerce-product-addon/inc/functions.php on line 1214

    • This topic was modified 5 years, 7 months ago by cakesmash.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi,

    can you please share more about this bug? You mean you edit PPOM fields?

    Thread Starter cakesmash

    (@cakesmash)

    actually updated WordPress 5.1.1 version. after that Woocommerce PPOM plugin installed. But when I try to activate plugin, got fatal error. Plugin is not activated

    Thanks for update.

    Thread Starter cakesmash

    (@cakesmash)

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Can’t use function return value in write context in /home/snflodnw/public_html/cakesmash.in/wp-content/plugins/woocommerce-product-addon/inc/functions.php on line 1214

    Hi @cakesmash,

    we have fixed this issue in version 17.3 and just released, it will be available to update in few minutes.

    Thread Starter cakesmash

    (@cakesmash)

    I’m Using WordPress 5.0.4 running Shopper theme. and child theme using WordPress 5.1.1 running Shopper theme.

    Still now ….I got same error.

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Can’t use function return value in write context in /home/snflodnw/public_html/demo/wp-content/plugins/woocommerce-product-addon/inc/functions.php on line 1214

    Please resolve as soon as poosible.

    Hi,

    did you updated to version 17.3?

    Thread Starter cakesmash

    (@cakesmash)

    Yes. I tried update version 17.3 . still same error.

    ok can you please make following change in your inc/functions.php on line 1214

    replace

    $role_matched = !empty(array_intersect($allowed_roles, $user_roles));
    			
    			if( $role_matched ) {
    				$is_visible = true;
    			}

    with

    if( !empty(array_intersect($allowed_roles, $user_roles)) ) {
    				$is_visible = true;
    			}

    and let me know if it fixed or not.

    Thread Starter cakesmash

    (@cakesmash)

    Not working

    Well, all is now I can ask to you share your site logins if possible via [email protected]

    Thread Starter cakesmash

    (@cakesmash)

    Check ur mail. I sent credentials

    It is fixed on your site and in our plugin as well.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Existing Product Meta: Fatal error after the update’ is closed to new replies.