Title: MainWP and PHP 8.5
Last modified: June 3, 2026

---

# MainWP and PHP 8.5

 *  Resolved [wp800s](https://wordpress.org/support/users/wp800s/)
 * (@wp800s)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/)
 * Hello,
 * I wanted to ask if there are any issues when using this plugin with PHP 8.5.6
   at this time?
 * Yesterday, I got the server upgraded from PHP 8.4 to 8.5, and when I run the 
   sync from the main dashboard, the server gets stuck and websites irresponsive.
   Then I have to wait for timeouts to kick in, so all is back to normal. The server
   monitoring graphs show CPU load in the red zone, big time.
 * Here is one segment of the PHP log, that relates to this timeout:
 *     ```wp-block-code
       [03-Jun-2026 22:37:46 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /server-path/wp-includes/Requests/src/Transport/Curl.php on line 205Stack trace:#0 /server-path/wp-includes/Requests/src/Transport/Curl.php(205): curl_exec()#1 /server-path/wp-includes/Requests/src/Requests.php(469): WpOrg\Requests\Transport\Curl->request()#2 /server-path/wp-includes/Requests/src/Requests.php(809): WpOrg\Requests\Requests::request()#3 /server-path/wp-includes/Requests/src/Requests.php(473): WpOrg\Requests\Requests::parse_response()#4 /server-path/wp-includes/class-wp-http.php(416): WpOrg\Requests\Requests::request()#5 /server-path/wp-includes/class-wp-http.php(657): WP_Http->request()#6 /server-path/wp-includes/http.php(189): WP_Http->get()#7 /server-path/wp-content/plugins/mainwp/class/class-mainwp-premium-update.php(302): wp_remote_get()#8 /server-path/wp-content/plugins/mainwp/class/class-mainwp-premium-update.php(346): MainWP\Dashboard\MainWP_Premium_Update::redirect_request_site()#9 /server-path/wp-content/plugins/mainwp/class/class-mainwp-premium-update.php(184): MainWP\Dashboard\MainWP_Premium_Update::try_to_detect_premiums_update()#10 /server-path/wp-content/plugins/mainwp/class/class-mainwp-connect.php(1253): MainWP\Dashboard\MainWP_Premium_Update::maybe_request_premium_updates()#11 /server-path/wp-content/plugins/mainwp/class/class-mainwp-sync.php(282): MainWP\Dashboard\MainWP_Connect::fetch_url_authed()#12 /server-path/wp-content/plugins/mainwp/class/class-mainwp-sync.php(86): MainWP\Dashboard\MainWP_Sync::sync_site()#13 /server-path/wp-content/plugins/mainwp/class/class-mainwp-post-site-handler.php(422): MainWP\Dashboard\MainWP_Sync::sync_website()#14 /server-path/wp-includes/class-wp-hook.php(341): MainWP\Dashboard\MainWP_Post_Site_Handler->mainwp_syncsites()#15 /server-path/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()#16 /server-path/wp-includes/plugin.php(522): WP_Hook->do_action()#17 /server-path/wp-admin/admin-ajax.php(192): do_action()#18 {main}
       ```
   
 * The above does not mean it is all about MainWP, it could be anything at this 
   point, but I wanted to ask as this happens only when I run the sync. Outside 
   of this action, the server and websites work fine.
 * Thanks

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

 *  Plugin Support [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * (@bojankatusic)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928781)
 * Hey [@wp800s](https://wordpress.org/support/users/wp800s/)
 * Thanks for the report.
 * Based on the log, this looks like a timeout issue rather than a PHP 8.5 compatibility
   problem in MainWP.
 * Since the issue started right after switching from PHP 8.4 to PHP 8.5, please
   check whether your PHP 8.5 configuration has lower/default limits than your previous
   PHP 8.4 setup. PHP settings are often configured separately per PHP version, 
   so values like `max_execution_time` and `default_socket_timeout` / cURL Timeout
   may have reset during the upgrade.
 * Please increase those PHP 8.5 values, then retry the MainWP sync.
 *  Thread Starter [wp800s](https://wordpress.org/support/users/wp800s/)
 * (@wp800s)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928794)
 * Thanks for the reply.
 * Limits are the same. The time limit of 30 seconds works fine with PHP 8.4. We
   have reversed it back after experiencing this problem, and all is good again.
 * Regards
 *  Plugin Support [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * (@bojankatusic)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928961)
 * I tested sync on PHP 8.5.3 and was not able to reproduce the problem on my end.
   Since the same 30-second limit works on PHP 8.4 and the issue goes away after
   rolling back, this may be caused by something in the request stack running much
   slower or not behaving correctly under PHP 8.5.
 * If possible, can you test for a plugin conflict on the MainWP Dashboard site 
   by temporarily disabling all plugins except for the MainWP Dashboard?
 *  Thread Starter [wp800s](https://wordpress.org/support/users/wp800s/)
 * (@wp800s)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928969)
 * We manage 12 WP sites through MainWP. If I sync one by one, no problem. When 
   I hit Sync for all sites, it works for two to three sites or so, and then something
   gets the server busy, CPU goes into red, and all websites (non-WP as well) become
   irresponsive. The server is VPS with two cores and 4GB RAM. Once the time outs
   are over, the dashboard shows yellow exclamations signs near most of the sites,
   and some get disconnected. It could be some of the plugins, not sure.
 * The server is back to 8.4, so I cannot test, but I may try playing with it in
   the next few weeks. I could try running 8.5 for MainWP only first and start from
   there. Not sure at this time.
 *  Plugin Support [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * (@bojankatusic)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928996)
 * If you end up trying running 8.5 again soon, please test it out and let us know.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmainwp-and-php-8-5%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/mainwp/assets/icon-256x256.png?rev=2734946)
 * [MainWP Dashboard: Self-hosted WordPress Management for Agencies](https://wordpress.org/plugins/mainwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mainwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mainwp/)
 * [Active Topics](https://wordpress.org/support/plugin/mainwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mainwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mainwp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * Last activity: [1 week, 2 days ago](https://wordpress.org/support/topic/mainwp-and-php-8-5/#post-18928996)
 * Status: resolved