Title: Fatal Error on wp-background-processing library
Last modified: May 16, 2024

---

# Fatal Error on wp-background-processing library

 *  Resolved [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/)
 * Hi,
 * We are seeing a fatal error on our website when using Starter Templates plugin
   and [https://wordpress.org/plugins/ghostkit/](https://wordpress.org/plugins/ghostkit/)
   in the same site.
 * I wrote to Ghoskit support team to see if the problem was in their side and they
   mentioned the issue could be related to an outdated version of wp-background-
   processing library in Starter Templates. Can you check it please?
   The Ghoskit
   Support ticket is [https://wordpress.org/support/topic/fatal-error-4680/#post-17759390](https://wordpress.org/support/topic/fatal-error-4680/#post-17759390)
 * Thanks!

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

 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17765170)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * I am able to replicate the issue on my dev site. Thank you for bringing this 
   to our attention and sorry for the inconvenience. I am bringing this to our team.
 * I will keep you updated on this thread.
 * Kind regards,
    Herman 😊
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17781334)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * At the moment I wrote down my response above, I was able to replicate the issue
   on my dev site. However, once I deactivated the Ghost Kit plugin and reactivated
   it again, the issue was no more. And until now, I am not able to reproduce the
   issue.
 * Could you share with us the exact steps to replicate this?
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17782224)
 * Hi [@bsfherman](https://wordpress.org/support/users/bsfherman/) ! Thanks for 
   looking into this.
 * The steps to reproduce it are:
   – Install a new WordPress site– Install and activate
   Starter Templates plugin [https://wordpress.org/plugins/astra-sites/](https://wordpress.org/plugins/astra-sites/)–
   Install and activate Ghostkit plugin [https://wordpress.org/plugins/ghostkit/](https://wordpress.org/plugins/ghostkit/)–
   And you will see the fatal errorWARNING: child 49 said into stderr: “NOTICE: 
   PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: 
   string * int in /www/wp-content/plugins/astra-sites/inc/lib/starter-templates-
   importer/importer/helpers/wp-background-process.php:442”
 * I also tried the other way, installing and activating Ghoskit first and then 
   Starter Templates and same error was displayed.
 * Thanks!
   Guillermo
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17783105)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * Thanks for sharing the steps to replicate the issue. However, I was unable to
   reproduce it. Refer to this [video](https://d.pr/v/Zs7i4h), please. What did 
   I miss?
 * Kind regards,
    Herman 😊
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17807073)
 * Thanks Herman, looks like email notification was treat as spam for some reason.
   I watched the video and it is very weird that you don’t see the same issue.
 * I will check the environment and see if it could be related to the hosting configuration.
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17807174)
 * Hey [@bsfherman](https://wordpress.org/support/users/bsfherman/)
 * You don’t see the issue because the zipwp tool creates the environment using 
   PHP 7.4, my site is using PHP 8.2, and there is where i see the error.
 * I created a new site in my server using PHP 7.4 and it works. So, definitely 
   the problem is in newer PHP versions.
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17813668)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * I did another test and now is using PHP 8.2, however I still unable replicate
   the issue. Here’s a [video](https://d.pr/v/U2VYEg).
 * Please let me know if I am missing something.
 * Kind regards,
    Herman 😊
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17813896)
 * Hey [@bsfherman](https://wordpress.org/support/users/bsfherman/)
 * As I saw in your video the site is working in PHP 8.2 like in my test, so, i 
   was looking for possible differences and i found that after adding `define('DISABLE_WP_CRON',
   true);` to my wp-config file, the error is not displayed anymore. So i think 
   that zipwp is creating environments with WP Cron disabled.
 * Can you check if zipwp has CRONs enabled, if not, if they have a way to enable
   CRON? or if you can try in another environment tool where you have CRONs enabled?
 * Thanks!
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17832513)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * I just heard from our concerned team (FYI, ZipWP is part of us) that cron is 
   not disabled on ZipWP.
 * Do you have another thought on this?
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17837345)
 * Hey [@bsfherman](https://wordpress.org/support/users/bsfherman/)
 * Thanks for reviewing, i was trying to identify the issue so i went to create 
   other tests in different hosting providers, below are the results.
 * I tested it in 2 more hosting providers, and in all of them i’m seeing the error,
   for example:
    1. GetFlywheel PHP 8.2
       The error i posted here, it is showing the error as soon
       as i activate the plugins.
    2. WPEngine PHP 8.2
       Plugin activation and front end is working but if i go to the
       Tools -> SiteHealth (/wp-admin/site-health.php) it fires the error:_PHP Fatal
       error: Uncaught TypeError: Unsupported operand types: string * int in /nas/content/
       live/startertempla4/wp-content/plugins/astra-sites/inc/lib/starter-templates-
       importer/importer/helpers/wp-background-process.php:442\nStack trace:\n#0 /nas/
       content/live/startertempla4/wp-includes/class-wp-hook.php(324): WP\_Background\
       _Process->schedule\_cron\_healthcheck(Array)\n#1 /nas/content/live/startertempla4/
       wp-includes/plugin.php(205): WP\_Hook->apply\_filters(Array, Array)\n#2 /nas/
       content/live/startertempla4/wp-includes/cron.php(1115): apply\_filters(‘cron\
       _schedules’, Array)\n#3 /nas/content/live/startertempla4/wp-admin/includes/class-
       wp-site-health.php(2931): wp\_get\_schedules()\n#4 /nas/content/live/startertempla4/
       wp-admin/includes/class-wp-site-health.php(1762): WP\_Site\_Health->wp\_schedule\
       _test\_init()\n#5 /nas/content/live/startertempla4/wp-admin/includes/class-wp-
       site-health.php(194): WP\_Site\_Health->get\_test\_scheduled\_events()\n#6 /
       nas/content/live/startertempla4/wp-admin/includes/class-wp-site-health.php(139):
       WP\_Site\_Health->perform\_test(Array)\n#7 /nas/content/live/startertempla4/
       wp-includes/class-wp-hook.php(324): WP\_Site\_Health->enqueue\_scripts(‘site-
       health.php’)\n#8 /nas/content/live/startertempla4/wp-includes/class-wp-hook.
       php(348): WP\_Hook->apply\_filters(NULL, Array)\n#9 /nas/content/live/startertempla4/
       wp-includes/plugin.php(517): WP\_Hook->do\_action(Array)\n#10 /nas/content/live/
       startertempla4/wp-admin/admin-header.php(118): do\_action(‘admin\_enqueue\_s…’,‘
       site-health.php’)\n#11 /nas/content/live/startertempla4/wp-admin/site-health.
       php(96): require\_once(‘/nas/content/li…’)\n#12 {main}\n thrown in /nas/content/
       live/startertempla4/wp-content/plugins/astra-sites/inc/lib/starter-templates-
       importer/importer/helpers/wp-background-process.php on line 442_
    3. In Pantheon using PHP 8.1 same issue as WP Engine, Plugin activation and front
       end is working but if i go to the Tools -> SiteHealth (/wp-admin/site-health.
       php) it fires the error:
       _Fatal error: Uncaught TypeError: Unsupported operand
       types: string * int in /code/wp-content/plugins/astra-sites/inc/lib/starter-
       templates-importer/importer/helpers/wp-background-process.php:442 Stack trace:#
       0 /code/wp-includes/class-wp-hook.php(324): WP\_Background\_Process->schedule\
       _cron\_healthcheck(Array) #1 /code/wp-includes/plugin.php(205): WP\_Hook->apply\
       _filters(Array, Array) #2 /code/wp-includes/cron.php(1115): apply\_filters(‘
       cron\_schedules’, Array) #3 /code/wp-admin/includes/class-wp-site-health.php(
       2931): wp\_get\_schedules() #4 /code/wp-admin/includes/class-wp-site-health.
       php(1762): WP\_Site\_Health->wp\_schedule\_test\_init() #5 /code/wp-admin/includes/
       class-wp-site-health.php(194): WP\_Site\_Health->get\_test\_scheduled\_events()#
       6 /code/wp-admin/includes/class-wp-site-health.php(139): WP\_Site\_Health->perform\
       _test(Array) #7 /code/wp-includes/class-wp-hook.php(324): WP\_Site\_Health->
       enqueue\_scripts(‘site-health.php’) #8 /code/wp-includes/class-wp-hook.php(348):
       WP\_Hook->apply\_filters(NULL, Array) #9 /code/wp-includes/plugin.php(517): 
       WP\_Hook->do\_action(Array) #10 /code/wp-admin/admin-header.php(118): do\_action(‘
       admin\_enqueue\_s…’, ‘site-health.php’) #11 /code/wp-admin/site-health.php(96):
       require\_once(‘/code/wp-admin/…’) #12 {main} thrown in /code/wp-content/plugins/
       astra-sites/inc/lib/starter-templates-importer/importer/helpers/wp-background-
       process.php on line 442_
 * So, as you can see it is failing in 3 different hosting providers.
 * It is not a server (hosting) issue, not sure why zipWP is not showing that error,
   but it is not an error in only 1 hosting.
 * I know that maybe this is not a priority because the issue is only when you have
   GhostKit active.
 * But if you can take a look at that i will thank you because I need to go and 
   apply a workaround every time a new update is available in Starter Templates 
   plugin.
 * In case it helps, this is what i’m doing in the plugin code:
 * I’m adding this validation:
   `if( is_numeric( $interval ) ) {`
 * Before this line:
 * `// Adds every 5 minutes to the existing schedules. $schedules[ $this->identifier.'
   _cron_interval' ] = array( 'interval' => MINUTE_IN_SECONDS * $interval, /* translators:%
   d are the minutes. */ 'display' => sprintf( __( 'Every %d Minutes', 'astra-sites'),
   $interval ), );`
 * Thanks
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17851181)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * I am bringing this to our team and there are internal discussions regarding this.
   If we find anything that needs to be fixed/improved from our side, we will certainly
   do.
 * Thanks for bringing this to our attention and sorry for the inconvenience.
 * We really appreciate your effort and support!
 * Kind regards,
    Herman 😊
 *  Thread Starter [Memo](https://wordpress.org/support/users/gtenaschuk/)
 * (@gtenaschuk)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17900974)
 * Hey [@bsfherman](https://wordpress.org/support/users/bsfherman/) thanks for this.
 * Just want to know if you had the chance to review this with the team and see 
   if there is a possible workaround for it?
 * I think that if you are including the wp-background-processing file in your plugin
   it will be good to have some kind of validation in the line I mentioned to avoid
   fatal errors that could break sites.
 * Just let me know if I can help you proposing a code to validate that and shows
   an admin message if there are plugins modifying that Constant with Non Integer
   values so it will be easy for you to identify possible unexpected behaviors in
   Starter Template. Also i can help with testing if necessary.
 * Thanks!
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17910089)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * I shall update this thread to keep you in the loop. Sorry 🤦‍♂️
 * Our team, finally, was able to replicate this and are still working on the fix.
   I will update this thread again, once we release the fix.
 * Kind regards,
    Herman 😊
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17916473)
 * Hi [@gtenaschuk](https://wordpress.org/support/users/gtenaschuk/),
 * We have fixed the issue in the latest update we released a couple of days ago.
   Could you please check it on your end and confirm?
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17950140)
 * Hi there,
 * Since we have fixed the issue, I am marking this thread as `Resolved`. However,
   if you still face the issue, please let us know by responding to this thread.
 * Kind regards,
    Herman 😊

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

The topic ‘Fatal Error on wp-background-processing library’ is closed to new replies.

 * ![](https://ps.w.org/astra-sites/assets/icon-256x256.gif?rev=3060571)
 * [Starter Templates – AI-Powered Templates for Elementor & Gutenberg](https://wordpress.org/plugins/astra-sites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/astra-sites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/astra-sites/)
 * [Active Topics](https://wordpress.org/support/plugin/astra-sites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/astra-sites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/astra-sites/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/fatal-error-on-wp-background-processing-library/#post-17950140)
 * Status: resolved