Title: fatal error when activating this plugin!
Last modified: August 29, 2019

---

# fatal error when activating this plugin!

 *  Resolved [elaxxl](https://wordpress.org/support/users/elaxxl/)
 * (@elaxxl)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/)
 * Hi there,
 * I have events manager pro, when i installed this plug-in and activated it, it
   gave a fatal error!!
 * Below is the error:
    Fatal error: Uncaught Mollie\Api\Exceptions\ApiException:
   Invalid API key: ”. An API key must start with ‘test_’ or ‘live_’ and must be
   at least 30 characters long. in /home/public/sites/www.elaxxl-development.nl/
   wp-content/plugins/stonehenge-em-mollie/vendor/mollie/mollie-api-php/src/MollieApiClient.
   php:339 Stack trace: #0 /home/public/sites/www.elaxxl-development.nl/wp-content/
   plugins/stonehenge-em-mollie/gateway/gateway.mollie.php(506): Mollie\Api\MollieApiClient-
   >setApiKey(”) #1 /home/public/sites/www.elaxxl-development.nl/wp-content/plugins/
   stonehenge-em-mollie/gateway/gateway.mollie.php(37): EM_Gateway_Mollie::start_mollie()#
   2 /home/public/sites/www.elaxxl-development.nl/wp-content/plugins/events-manager-
   pro/add-ons/gateways/gateways.php(85): EM_Gateway_Mollie->__construct() #3 /home/
   public/sites/www.elaxxl-development.nl/wp-content/plugins/stonehenge-em-mollie/
   gateway/gateway.mollie.php(642): EM_Gateways::register_gateway(‘mollie’, ‘EM_Gateway_Moll…’)#
   4 /home/public/sites/www.elaxxl-development.nl/wp-content/ in /home/public/sites/
   www.elaxxl-development.nl/wp-content/plugins/stonehenge-em-mollie/vendor/mollie/
   mollie-api-php/src/MollieApiClient.php on line 339
 * Since i havent even got a change to fill in the API key i have no idea what is
   wrong? Please help
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-activating-this-plugin-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11879614)
 * What version are you using? This issue should;d be resolved in the latest release.
 *  Thread Starter [elaxxl](https://wordpress.org/support/users/elaxxl/)
 * (@elaxxl)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11879680)
 * Thanx for the quick reply and solution! The version i had i downloaded not even
   a week ago haha but removing the old one through Filezilla and uploading the 
   new one made it work.
    Thanx again!
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11879695)
 * Glad to help. Enjoy the plugin! 🙂
 *  [GaryNrrs](https://wordpress.org/support/users/garynrrs/)
 * (@garynrrs)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11910904)
 * Hi Patrick,
    I am also getting this errorwith the 2.0.1 version: Mollie\Api\Exceptions\
   ApiException thrown Invalid API key: ‘sleutel-hier’. An API key must start with‘
   test_’ or ‘live_’ and must be at least 30 characters long. I had the problem 
   first with the old version of the plugin. Then I updated to 2.0.1 and this temporarily
   solved the problem, I could access the plugin settings. I (rather stupidly) typed
   something in the API key field as a placeholder for my customer to paste their
   API key, but now I can’t get rid of it. Is there a database field that can be
   emptied? I have tried re-uploading the plugin via FTP but no success. Any help
   is greatly appreciated. Thanks! Gary
 *  [GaryNrrs](https://wordpress.org/support/users/garynrrs/)
 * (@garynrrs)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11910910)
 * Oh never mind, I found the database field em_mollie_api_key and emptied it, problem
   solved 🙂
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11910987)
 * Or you just needed to download the latest version…

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

The topic ‘fatal error when activating this plugin!’ is closed to new replies.

 * ![](https://ps.w.org/stonehenge-em-mollie/assets/icon-256x256.jpg?rev=2143195)
 * [Events Manager Pro - Mollie Payments](https://wordpress.org/plugins/stonehenge-em-mollie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stonehenge-em-mollie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stonehenge-em-mollie/)
 * [Active Topics](https://wordpress.org/support/plugin/stonehenge-em-mollie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stonehenge-em-mollie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stonehenge-em-mollie/reviews/)

## Tags

 * [activating plugin](https://wordpress.org/support/topic-tag/activating-plugin/)
 * [api key](https://wordpress.org/support/topic-tag/api-key/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-this-plugin-3/#post-11910987)
 * Status: resolved