Support » Plugin: Booster for WooCommerce » Plugin could not be activated because it triggered a fatal error.

  • Resolved georgemainaone

    (@georgemainaone)


    I have tested with Storefront theme and woocommerce only activated.

    Parse error: syntax error, unexpected ‘)’ in /home/xxxx/public_html/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-price-by-user-role.php on line 417

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

    (@ronyp)

    Hello @georgemainaone,

    Sorry to hear that. Could you please share a list of active modules?
    I have activated all the modules and given them a try but could not replicate any such error.

    Kind Regards,
    Rony P – Support Team

    Thread Starter georgemainaone

    (@georgemainaone)

    Hello Rony,

    I actually can’t get the list of active modules because as I mentioned, the plugin could not be activated because it triggered a fatal error.

    Regards,
    George.

    Plugin Author ronyp

    (@ronyp)

    Hello @georgemainaone,

    It seems you are using the PHP 8.0+ version.
    Could you please make below small changes and give them a try?

    /wp-content/plugins/woocommerce-jetpack/includes/class-wcj-price-by-user-role.php

    On-Line No. 416, Just remove the comma and save the file.

    
    			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 georgemainaone

    (@georgemainaone)

    Hi Rony,

    I removed the comma and that resolved the issue. Unbelievable that we had not noticed that earlier.

    Thanks for the quick turnaround Rony. I Really appreciate it. Cheers!

    Regards,
    George.

    Plugin Author ronyp

    (@ronyp)

    Hello @georgemainaone,

    Thank you for your support. We are constantly working on finding the errors related to the recent release with security vulnerability fixes.

    If required we will release a quick version asap.

    Kind Regards,
    RonyP – Support Team

    Thread Starter georgemainaone

    (@georgemainaone)

    Hi Rony,

    I will keep an eye open for the next update. Keep up the good work.

    Regards,
    George.

    Plugin Author ronyp

    (@ronyp)

    Hello @georgemainaone,

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

    Kind Regards,
    RonyP – Support Team

    Thread Starter georgemainaone

    (@georgemainaone)

    Hi Rony,

    I updated to the new version. Everything seems to be working fine except now the “customer payment page” does not function as expected. It says order is invalid. I believe this is caused by the “Order Numbers”. Do I need to start a new thread for thsi?

    Regards,
    George M.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error.’ is closed to new replies.