• Resolved iconMatrix

    (@chevyfixr)


    I had to disable the plugin due to this error after an automatic update today

    “An error of type E_PARSE was caused in line 417 of the file /home/teamnjsoftball/public_html/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-price-by-user-role.php. Error message: syntax error, unexpected ‘)'”

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ronyp

    (@ronyp)

    Hello @chevyfixr,

    Could you make a simple code change and give it a try?
    On the same file please remove a comma on Line No. 416.

    // Maybe disable for regular price hooks.
    			if ( $this->disable_for_regular_price && in_array(
    				$_current_filter,
    				array(
    					WCJ_PRODUCT_GET_REGULAR_PRICE_FILTER,
    					'woocommerce_variation_prices_regular_price',
    					'woocommerce_product_variation_get_regular_price',
    				)
    			) ) {
    				return $price;
    			}

    Kind Regards,
    RonyP – Support Team

    Thread Starter iconMatrix

    (@chevyfixr)

    Yes! that fixed it!

    Thank you,
    Steve aka (chevyfixr)

    @ronyp I’m getting this same error. I’ll update the file as well but I’m also assuming this will be updated in the next release?

    Thanks,
    ~ Bryan

    Plugin Author ronyp

    (@ronyp)

    Hello,

    We have fixed the above and released a new version. Kindly please upgrade and let me know.

    Kind Regards,
    RonyP – Support Team

    Thread Starter iconMatrix

    (@chevyfixr)

    Yes! Thank you, all is well

    Steve (aka Chevyfixr)

    Thread Starter iconMatrix

    (@chevyfixr)

    After this morning’s auto update the plugin again failed giving me a Critical Error but this time I don’t know where the error is. I disabled the Booster plugin for now.

    Steve

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘An error of type E_PARSE was caused in line 417’ is closed to new replies.