Title: Fatal error while editing pages
Last modified: April 2, 2023

---

# Fatal error while editing pages

 *  Resolved [soji89](https://wordpress.org/support/users/soji89/)
 * (@soji89)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-while-editing-pages/)
 * The page editor is broken on the latest version of Bambora plugin. Please fix.

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

 *  [halvorsa](https://wordpress.org/support/users/halvorsa/)
 * (@halvorsa)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-while-editing-pages/#post-16619175)
 * I have the same problem, but also found a temporary workaround. I commented out
   lines 141-144 in bambora-online-checkout.php which seemed to active the problem
   code. It can be changed in the plugin file editor at your own risk. It did solve
   my problem and I couldn’t see any immediate bad effects of this. Here is the 
   change I did (adding /** and */):
 * 140                        if ( is_admin() ) {
   141   /**                     
   add_action( ‘add_meta_boxes’, array(142                                      
   $this,143                                        ‘bambora_online_checkout_meta_boxes’
   144                                ) ); */145                                
   add_action( ‘woocommerce_update_options_payment_gateways_’ . $this->id, array(
   146                                        $this,147                         ‘
   process_admin_options’148                                ) );
 * Here is the stack trace I received:
   Uncaught Exception: Invalid order. in /home/
   silverfishno/silverfish.no/public/wp-content/plugins/woocommerce/includes/data-
   stores/abstract-wc-order-data-store-cpt.php:120
 * Stack trace:
 * #0 /home/silverfishno/silverfish.no/public/wp-content/plugins/woocommerce/includes/
   class-wc-data-store.php(159): Abstract_WC_Order_Data_Store_CPT->read()
 * #1 /home/silverfishno/silverfish.no/public/wp-content/plugins/woocommerce/includes/
   abstracts/abstract-wc-order.php(128): WC_Data_Store->read()
 * #2 /home/silverfishno/silverfish.no/public/wp-content/plugins/bambora-online-
   checkout/bambora-online-checkout.php(1403): WC_Abstract_Order->__construct()
 * #3 /home/silverfishno/silverfish.no/public/wp-includes/class-wp-hook.php(310):
   Bambora_Online_Checkout->bambora_online_checkout_meta_boxes()
 * #4 /home/silverfishno/silverfish.no/public/wp-includes/class-wp-hook.php(332):
   WP_Hook->apply_filters()
 * #5 /home/silverfishno/silverfish.no/public/wp-includes/plugin.php(517): WP_Hook-
   >do_action() #6 /home/silverfishno/silverfish.no/public/wp-admin
 *  Thread Starter [soji89](https://wordpress.org/support/users/soji89/)
 * (@soji89)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-while-editing-pages/#post-16621845)
 * [@halvorsa](https://wordpress.org/support/users/halvorsa/) – Thank you, kindly.
   🙂 Yeah I noticed the issue being due to the metabox but I hope they fix this
   with an update. I will use your workaround for now. thank you.
 *  Plugin Author [Worldline Checkout Nordics](https://wordpress.org/support/users/bambora/)
 * (@bambora)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-while-editing-pages/#post-16668033)
 * There was an unfortunate bug in **5.1.**0 that is now fixed in **5.1.1**. So 
   please upgrade in case you haven’t already.

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

The topic ‘Fatal error while editing pages’ is closed to new replies.

 * ![](https://ps.w.org/bambora-online-checkout/assets/icon-256x256.png?rev=2609943)
 * [Worldline Online Checkout](https://wordpress.org/plugins/bambora-online-checkout/)
 * [Support Threads](https://wordpress.org/support/plugin/bambora-online-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/bambora-online-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bambora-online-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bambora-online-checkout/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Worldline Checkout Nordics](https://wordpress.org/support/users/bambora/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-while-editing-pages/#post-16668033)
 * Status: resolved