Support » Plugin: PPOM for WooCommerce » Existing Product Meta: Fatal error after the update

  • 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 6 months, 2 weeks ago by  cakesmash.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

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

    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

    Plugin Author N-Media

    (@nmedia)

    Thanks for update.

    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

    Plugin Author N-Media

    (@nmedia)

    Hi @cakesmash,

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

    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.

    Plugin Author N-Media

    (@nmedia)

    Hi,

    did you updated to version 17.3?

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

    Plugin Author N-Media

    (@nmedia)

    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.

    Not working

    Plugin Author N-Media

    (@nmedia)

    Well, all is now I can ask to you share your site logins if possible via sales@najeebmedia.com

    cakesmash

    (@cakesmash)

    Check ur mail. I sent credentials

    Plugin Author N-Media

    (@nmedia)

    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.