Title: Error after activating plugin
Last modified: August 30, 2016

---

# Error after activating plugin

 *  Resolved [sander_vds](https://wordpress.org/support/users/sander_vds/)
 * (@sander_vds)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/)
 * I just installed the Mollie plugin. After activating the plugin, i go to the 
   Woocommerce Settings page and i get this error:
 * Parse error: syntax error, unexpected ‘:’ in xx/wp-content/plugins/mollie-payments-
   for-woocommerce/includes/mollie/wc/gateway/abstract.php on line 165
 * [https://wordpress.org/plugins/mollie-payments-for-woocommerce/](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)

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

 *  Plugin Contributor [l.vangunst](https://wordpress.org/support/users/lvangunst/)
 * (@lvangunst)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6847797)
 * The error occurs on line 165-166: [https://github.com/mollie/WooCommerce/blob/master/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php#L165-L166](https://github.com/mollie/WooCommerce/blob/master/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php#L165-L166)
 * I think you probably have a (very) old PHP version (< PHP 5.3). You can temporarily
   fix this by editing the file wp-content/plugins/mollie-payments-for-woocommerce/
   includes/mollie/wc/gateway/abstract.php and edit the lines 165-166 to:
 * $this->min_amount = $mollie_method->getMinimumAmount() ? $mollie_method->getMinimumAmount():
   0;
    $this->max_amount = $mollie_method->getMaximumAmount() ? $mollie_method->
   getMaximumAmount() : 0;
 * I will try to fix this in the next release.
 *  Thread Starter [sander_vds](https://wordpress.org/support/users/sander_vds/)
 * (@sander_vds)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6847800)
 * Thank you very much for the quick help!
    The development environment has indeed
   an old php version.
 *  Plugin Contributor [l.vangunst](https://wordpress.org/support/users/lvangunst/)
 * (@lvangunst)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6847801)
 * I’m glad I was able to help!
 *  [servicehh](https://wordpress.org/support/users/tynus/)
 * (@tynus)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6848087)
 * moved to new post, sorry
 *  Plugin Contributor [l.vangunst](https://wordpress.org/support/users/lvangunst/)
 * (@lvangunst)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6848088)
 * Similar to [https://wordpress.org/support/topic/undefined-class-constant-%E2%80%98belfius%E2%80%99?replies=4](https://wordpress.org/support/topic/undefined-class-constant-%E2%80%98belfius%E2%80%99?replies=4)
 * If you can’t disable the old plugin because you have old orders pending you can
   fix this issue by updating the submodule mollie-api-php in the old plugin:
 * 1. Backup your wp-content/plugins/MPM directory
    2. Download latest mollie-api-
   php version from [https://github.com/mollie/mollie-api-php/releases](https://github.com/mollie/mollie-api-php/releases)
   3. Extract downloaded ZIP file 4. Copy the directory src to wp-content/plugins/
   MPM/lib/src
 * Let me know if this fixes your problem.

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

The topic ‘Error after activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [l.vangunst](https://wordpress.org/support/users/lvangunst/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-4/#post-6848088)
 * Status: resolved