Title: Error while activating plugin
Last modified: May 26, 2024

---

# Error while activating plugin

 *  Resolved [blinkito](https://wordpress.org/support/users/blinkito/)
 * (@blinkito)
 * [2 years ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/)
 * Hi, I’ve installed the Starter Templates plugin on a fresh wordpress install 
   and while activating it gives this error:
 * **Deprecated**: Creation of dynamic property AiBuilder\Inc\Ajax\AjaxInit::$AiBuilder\
   Inc\Ajax\Importer is deprecated in **/websites/myweb/wp-content/plugins/astra-
   sites/inc/lib/ai-builder/inc/ajax/ajax-init.php** on line **57**
 * **Deprecated**: Creation of dynamic property AiBuilder\Inc\Ajax\AjaxInit::$AiBuilder\
   Inc\Ajax\Plugin is deprecated in **/websites/myweb/wp-content/plugins/astra-sites/
   inc/lib/ai-builder/inc/ajax/ajax-init.php** on line **57**
 * **Fatal error**: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of
   type FTP\Connection, null given in /websites/myweb/wp-admin/includes/class-wp-
   filesystem-ftpext.php:212 Stack trace: #0 /websites/myweb/wp-admin/includes/class-
   wp-filesystem-ftpext.php(212): ftp_fput() #1 /websites/myweb/wp-content/plugins/
   astra-sites/inc/classes/class-astra-sites-importer-log.php(75): WP_Filesystem_FTPext-
   >put_contents() #2 /websites/myweb/wp-includes/class-wp-hook.php(324): Astra_Sites_Importer_Log-
   >has_file_read_write() #3 /websites/myweb/wp-includes/class-wp-hook.php(348):
   WP_Hook->apply_filters() #4 /websites/myweb/wp-includes/plugin.php(517): WP_Hook-
   >do_action() #5 /websites/myweb/wp-admin/admin.php(175): do_action() #6 /websites/
   myweb/wp-admin/themes.php(10): require_once(‘…’) #7 {main} thrown in **/websites/
   myweb/wp-admin/includes/class-wp-filesystem-ftpext.php** on line **212**
 * Any help would be great.
 * Thank you!
    -  This topic was modified 2 years ago by [blinkito](https://wordpress.org/support/users/blinkito/).

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

 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17789134)
 * Hi [@blinkito](https://wordpress.org/support/users/blinkito/),
 * Do you have the latest version of this plugin, which currently is 4.2.6? Also,
   what version of PHP do you have?
 * I look forward to hearing from you.
 * Kind regards,
    Herman 😊
 *  [siberiafalcon](https://wordpress.org/support/users/siberiafalcon/)
 * (@siberiafalcon)
 * [2 years ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17792958)
 *     ```wp-block-code
       Hi,
       I have installed a local web server.
       XAMPP for Linux 8.2.12-0
       I work in http://localhost/
   
       My website is on WordPress, it works through XAMPP in http://localhost /, on my computer.
   
       May 30, 2024.
   
       I have installed the plugin.
       Starter Templates — Elementor, WordPress & Beaver Builder Templates.
       Version 4.2.6.
   
       I have a wordpress error.
   
       After removing all plugins. I have installed and activated the Starter Templates plugin. WordPress throws an error.
   
       in the plugins folder. after deleting the Starter Templates plugin.. By deleting the folder with all the Starter Templates files..
   
       Wordpress is working.
   
       The error is in the same file, in the same line.
   
       wp-content/plugins/astra-sites/inc/lib/ai-builder/inc/ajax/ajax-init.php on line 57
   
       Deprecated: Creation of dynamic property AiBuilder\Inc\Ajax\AjaxInit::$AiBuilder\Inc\Ajax\Importer is deprecated in /opt/lampp/htdocs/vorotadelay/wp-content/plugins/astra-sites/inc/lib/ai-builder/inc/ajax/ajax-init.php on line 57
   
       Deprecated: Creation of dynamic property AiBuilder\Inc\Ajax\AjaxInit::$AiBuilder\Inc\Ajax\Plugin is deprecated in /opt/lampp/htdocs/vorotadelay/wp-content/plugins/astra-sites/inc/lib/ai-builder/inc/ajax/ajax-init.php on line 57
   
       Fatal error: Uncaught TypeError: ftp_fput(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /opt/lampp/htdocs/vorotadelay/wp-admin/includes/class-wp-filesystem-ftpext.php:212 Stack trace: #0 /opt/lampp/htdocs/vorotadelay/wp-admin/includes/class-wp-filesystem-ftpext.php(212): ftp_fput(NULL, '/opt/lampp/htdo…', Resource id #1257, 2) #1 /opt/lampp/htdocs/vorotadelay/wp-content/plugins/astra-sites/inc/classes/class-astra-sites-importer-log.php(75): WP_Filesystem_FTPext->put_contents('/opt/lampp/htdo…', '') #2 /opt/lampp/htdocs/vorotadelay/wp-includes/class-wp-hook.php(324): Astra_Sites_Importer_Log->has_file_read_write('') #3 /opt/lampp/htdocs/vorotadelay/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /opt/lampp/htdocs/vorotadelay/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /opt/lampp/htdocs/vorotadelay/wp-admin/admin.php(175): do_action('admin_init') #6 /opt/lampp/htdocs/vorotadelay/wp-admin/post.php(12): require_once('/opt/lampp/htdo…') #7 {main} thrown in /opt/lampp/htdocs/vorotadelay/wp-admin/includes/class-wp-filesystem-ftpext.php on line 212
       ```
   
 * once is an accident, two is a coincidence, three is a pattern.
    -  This reply was modified 2 years ago by [siberiafalcon](https://wordpress.org/support/users/siberiafalcon/).
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17799289)
 * Hi [@siberiafalcon](https://wordpress.org/support/users/siberiafalcon/),
 * Please try the same scenario on a live site environment. You can try a free service
   like [ZipWP](https://zipwp.com/) and see if you are still facing the same issue.
 * Anyway, as per the [forum guidelines](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too),
   please start your own topic. You are welcome to cross-link it to this thread,
   so we are aware of both.
 * Kind regards,
    Herman 😊
 *  Thread Starter [blinkito](https://wordpress.org/support/users/blinkito/)
 * (@blinkito)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17809571)
 * Hi, sorry I had no time to answer until now.
   I had the latest version. Otherwise,
   I’ve checked there was an update for the plugin so I updated to version 4.3.1
   and the issue is still happening.I am running another wordpress website on the
   server and tried to install and activate the Starter Templates plugin there, 
   but I got the same issue.
 * Both WordPress sites are running WordPress at version 6.5.4 and Starter Templates
   Plugin at 4.3.1
 * Any help would be appreciate.
 *  Thread Starter [blinkito](https://wordpress.org/support/users/blinkito/)
 * (@blinkito)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17811257)
 * Hi, for future readers, I found a solution googleing around. It was just as simple
   as adding this line to the wp-config.php file:
 * `if ( ! defined( 'FS_METHOD' ) ) define( 'FS_METHOD', 'direct' );`
 * Thanks for your time.
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17813619)
 * Hi [@blinkito](https://wordpress.org/support/users/blinkito/),
 * Very pleased to know that you have solved it. Thanks for sharing the way you 
   fix it too.
 * Kind regards,
    Herman 😊

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

The topic ‘Error while activating plugin’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/error-while-activating-plugin-7/#post-17813619)
 * Status: resolved