Title: Uncaught exception
Last modified: August 21, 2016

---

# Uncaught exception

 *  Resolved [Nanura](https://wordpress.org/support/users/nanura/)
 * (@nanura)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/uncaught-exception-1/)
 * Hi Netvlies,
 * I moved my site to another domain. [http://www.mooivaneenvoud.nl](http://www.mooivaneenvoud.nl).
   I installed the latest version of the bol.com plugin. Copied the API acces and
   secret key. The connection test says: succesfull.
 * But when I try to add a productlink I get this message:
 * Fatal error: Uncaught exception ‘Exception’ with message ‘DateTime::__construct():
   Failed to parse time string (17/03/2014) at position 0 (1): Unexpected character’
   in /var/customers/webs/gerry/mooivaneenvoud.nl/wp-content/plugins/bolcom-partnerprogramma-
   wordpress-plugin/src/ajax/popup/includes/add.inc.php:88 Stack trace: #0 /var/
   customers/webs/gerry/mooivaneenvoud.nl/wp-content/plugins/bolcom-partnerprogramma-
   wordpress-plugin/src/ajax/popup/includes/add.inc.php(88): DateTime->__construct(’
   17/03/2014′) #1 /var/customers/webs/gerry/mooivaneenvoud.nl/wp-content/plugins/
   bolcom-partnerprogramma-wordpress-plugin/src/ajax/popup/product-link.php(41):
   include(‘/var/customers/…’) #2 {main} thrown in /var/customers/webs/gerry/mooivaneenvoud.
   nl/wp-content/plugins/bolcom-partnerprogramma-wordpress-plugin/src/ajax/popup/
   includes/add.inc.php on line 88
 * What’s causing this problem?
 * [https://wordpress.org/plugins/bolcom-partnerprogramma-wordpress-plugin/](https://wordpress.org/plugins/bolcom-partnerprogramma-wordpress-plugin/)

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

 *  [mschuchhard](https://wordpress.org/support/users/mschuchhard/)
 * (@mschuchhard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695768)
 * I have been experiencing the exact same error as described by Nanura since Monday.
   It was working just fine before that time, I did not make any technical changes
   to my website or to the API or access key.
    I hope a solution for this problem
   will be available soon.
 *  Plugin Author [Bol.com](https://wordpress.org/support/users/netvlies/)
 * (@netvlies)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695803)
 * Thank you for reporting this error. We found the problem and are working on a
   solution. We will keep you informed.
 * For other users when you have the following behavior you may have the same problem.
 * Expected behavior when you have this problem:
    When you try to insert a productlink,
   bestseller list or search widget the pop-up/overlay does open. For each type 
   is now described what you see due to this bug
 * – product link pop-up/overlay:
    You see the options to search for a product, 
   but when you click on the search button nothing happens
 * – bestseller list pop-up/overlay:
    An empty screen
 * – search widget pop-up/overlay:
    An empty screen
 *  Plugin Author [Bol.com](https://wordpress.org/support/users/netvlies/)
 * (@netvlies)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695823)
 * If you can’t wait for the official solution you can modify the code yourself 
   by hand. Edit the following file:
 * src/ajax/popup/includes/add.inc.php
 * Search for these code lines (see line: 87 and 88):
    $startDate = new DateTime(
   $add->Startdatum); $endDate = new DateTime($add->Einddatum);
 * Replace this lines with:
 * try {
    $startDate = new DateTime($add->Startdatum); } catch (Exception $e) { 
   $startDate = null; }
 * try {
    $endDate = new DateTime($add->Einddatum); } catch (Exception $e) { $endDate
   = null; }
 * Now you should be able to insert widgets again. It is possible you still won’t
   see any promotions. We are working on that problem.
 *  [mschuchhard](https://wordpress.org/support/users/mschuchhard/)
 * (@mschuchhard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695827)
 * Thanks very much, that did the trick
 *  Plugin Author [Bol.com](https://wordpress.org/support/users/netvlies/)
 * (@netvlies)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695907)
 * The problem should be resolved by now.

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

The topic ‘Uncaught exception’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bolcom-partnerprogramma-wordpress-
   plugin_91b2c3.svg)
 * [Bol.com Partner Program Plugin](https://wordpress.org/plugins/bolcom-partnerprogramma-wordpress-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bolcom-partnerprogramma-wordpress-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bolcom-partnerprogramma-wordpress-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/bolcom-partnerprogramma-wordpress-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bolcom-partnerprogramma-wordpress-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bolcom-partnerprogramma-wordpress-plugin/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Bol.com](https://wordpress.org/support/users/netvlies/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/uncaught-exception-1/#post-4695907)
 * Status: resolved