Title: Fatal Error after saving the settings
Last modified: July 1, 2026

---

# Fatal Error after saving the settings

 *  Resolved [Mohsen Rabieai](https://wordpress.org/support/users/mohsenr1/)
 * (@mohsenr1)
 * [6 days, 5 hours ago](https://wordpress.org/support/topic/fatal-error-after-saving-the-settings/)
 * Hi, 
   Awesome plugin! In fact, the only Off loading plugin that works with external
   web hosts with FTP! Thanks for that. However, it uses to cause fatal errors when
   saving the settings for the first time:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Error: Undefined constant "FS_CONNECT_TIMEOUT" in .../wp-admin/includes/class-wp-filesystem-ftpext.php:89Stack trace:#0 .../public_html/wp-content/plugins/downloadyar-remote-media/src/Transfer/ConnectionManager.php(139): WP_Filesystem_FTPext->connect()#1 .../wp-content/plugins/downloadyar-remote-media/src/Transfer/ConnectionManager.php(99): DownloadConnector\Transfer\ConnectionManager::connect_ftp(false)#2 .../wp-content/plugins/downloadyar-remote-media/src/Transfer/ConnectionManager.php(59): DownloadConnector\Transfer\ConnectionManager::try_protocol('ftp')#3 .../wp-content/plugins/downloadyar-remote-media/src/Admin/Dashboard.php(310): DownloadConnector\Transfer\ConnectionManager::connect()#4 .../wp-content/plugins/downloadyar-remote-media/src/Admin/Dashboard.php(220): DownloadConnector\Admin\Dashboard::connection_status_card()#5 .../wp-includes/class-wp-hook.php(324): DownloadConnector\Admin\Dashboard::render('')#6 .../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)#7 .../wp-includes/plugin.php(517): WP_Hook->do_action(Array)#8 .../wp-admin/admin.php(260): do_action('toplevel_page_d...')#9 {main}  thrown in .../wp-admin/includes/class-wp-filesystem-ftpext.php on line 89
       ```
   
 * You need to ensure the constant is defined before using it.
 * Tip for those who face this error, until you resolve this:
 * Put this in the `wp-config.php` before `/** Sets up WordPress vars and included
   files. */`:
 *     ```wp-block-code
       define('FS_CONNECT_TIMEOUT' , '30');
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [danialpg](https://wordpress.org/support/users/danialpg/)
 * (@danialpg)
 * [6 days, 4 hours ago](https://wordpress.org/support/topic/fatal-error-after-saving-the-settings/#post-18953214)
 * Thanks so much for the detailed report and the temporary tip, that stack trace
   pinpointed it exactly.
 * The plugin was instantiating WordPress’s FTP filesystem class directly, and FS_CONNECT_TIMEOUT/
   FS_TIMEOUT are only defined inside core’s WP_Filesystem() helper, so on some 
   setups they were undefined at connect time.
 * Version 1.0.2 now defines them itself, so you can remove the wp-config.php line.
   Really appreciate the kind words about the FTP support!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-after-saving-the-settings%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/downloadyar-remote-media/assets/icon-256x256.png?rev=3575744)
 * [Downloadyar Remote Media](https://wordpress.org/plugins/downloadyar-remote-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/downloadyar-remote-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/downloadyar-remote-media/)
 * [Active Topics](https://wordpress.org/support/plugin/downloadyar-remote-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/downloadyar-remote-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/downloadyar-remote-media/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [danialpg](https://wordpress.org/support/users/danialpg/)
 * Last activity: [6 days, 4 hours ago](https://wordpress.org/support/topic/fatal-error-after-saving-the-settings/#post-18953214)
 * Status: resolved