Title: PHP error
Last modified: August 23, 2019

---

# PHP error

 *  [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/)
 * I am seeing this PHP error in my logs:
 *  Class ‘OceanWP_EDD_Addon_Migration’ not found in public_html/wp-content/plugins/
   ocean-modal-window/ocean-modal-window.php
 * I think it’s happening when wp-cron.php is running.

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

 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11859097)
 * Same problem with Ocean Sticky Header and Ocean Woo Popup.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11859118)
 * I see wp-content/plugins/ocean-extra/includes/client-migration/edd.php has the
   following near the top:
 *     ```
           if ( defined( 'DOING_CRON' ) ) {
               return;
           }
       ```
   
 * so OceanWP_EDD_Addon_Migration will not be loaded when wp-cron.php runs.
 *  Plugin Author [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11863616)
 * Hello,
 * Sorry for the trouble. We are working on it to fix the issue.
 *  [tashwani](https://wordpress.org/support/users/tashwani/)
 * (@tashwani)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11865172)
 * Getting error on home page karockstar.com
 * Fatal error: Can’t use method return value in write context in
    /public_html/
   wp-content/plugins/ocean-extra/includes/client-migration/edd.php on line 470
 *  [urosavalonking](https://wordpress.org/support/users/urosavalonking/)
 * (@urosavalonking)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11866500)
 * Having the same issue as the thread starter… definitely happening when cron is
   running and possible issues with certain operations dependant on cron since this
   started. Waiting for a resolution from oceanwp.
 *  [Peter](https://wordpress.org/support/users/tothpa/)
 * (@tothpa)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11871296)
 * this issue makes Scheduled Actions unable to run! which is a huge problem!
    waiting
   for the fix!
 *  [urosavalonking](https://wordpress.org/support/users/urosavalonking/)
 * (@urosavalonking)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11872192)
 * Yeah I can confirm as well, all scheduled actions, upsell funnel closures etc
   etc do not work at the moment. Waiting for the fix, hopefully soon.
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11872218)
 * If you have access to the plugin code, you can add the DOING_CRON if statement
   below at the top of the files:
 *     ```
       if ( ! defined( 'ABSPATH' ) ) {
         exit;
       }
   
       if ( defined( 'DOING_CRON' ) ) { // do not load when running cron
         return;
       }
       ```
   
 * For instance, this would go in:
    • wp-content/plugins/ocean-sticky-header/ocean-
   sticky-header.php • wp-content/plugins/ocean-modal-window/ocean-modal-window.
   php • wp-content/plugins/ocean-woo-popup/ocean-woo-popup.php
 * Hope this helps until the OceanWP fixes the issue. I saw an update to Ocean Extra,
   not sure if it addresses the problem. Most plugins don’t need to be loaded when
   running cron anyway.
    -  This reply was modified 6 years, 9 months ago by [therealgilles](https://wordpress.org/support/users/chamois_blanc/).
 *  [urosavalonking](https://wordpress.org/support/users/urosavalonking/)
 * (@urosavalonking)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11878934)
 * [@chamois_blanc](https://wordpress.org/support/users/chamois_blanc/) this definitely
   works as a fix, no issues it seems after implementation, thanks. Hopefully, ocean
   fixes this soon…
 *  Plugin Author [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-error-342/#post-11880381)
 * Hello,
 * We just released a new version with a patch that should fix the cron jobs issue.
   
   Could you please update Ocean Extra to 1.5.15 and let us know if the issue was
   resolved?
 * Thank you
 *  [vixgalo](https://wordpress.org/support/users/vixgalo/)
 * (@vixgalo)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-342/#post-11945796)
 * Hi,
 * I try to go on my website (fr.phoenixco.ca) or wp-admin and get the following
   message:
 * /home/phoenixco/fr.phoenixco.ca/wp-content/plugins/ocean-extra/includes/client-
   migration/edd.php on line 470
 * anyone know why this may be and how can I fix it?
 *  Plugin Author [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-342/#post-11951345)
 * [@vixgalo](https://wordpress.org/support/users/vixgalo/) I replied to your original
   thread. Please check that.

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

The topic ‘PHP error’ is closed to new replies.

 * ![](https://ps.w.org/ocean-modal-window/assets/icon.svg?rev=2814946)
 * [Ocean Modal Window](https://wordpress.org/plugins/ocean-modal-window/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ocean-modal-window/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ocean-modal-window/)
 * [Active Topics](https://wordpress.org/support/plugin/ocean-modal-window/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ocean-modal-window/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ocean-modal-window/reviews/)

 * 12 replies
 * 6 participants
 * Last reply from: [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-342/#post-11951345)
 * Status: not resolved