Error Activation – logs creation?
-
When trying to activate this plugin in a Bedrock based install I get this error:
Fatal error: Uncaught TypeError: ftp_mkdir(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /app/web/wp/wp-admin/includes/class-wp-filesystem-ftpext.php:580 Stack trace: #0 /app/web/wp/wp-admin/includes/class-wp-filesystem-ftpext.php(580): ftp_mkdir() #1 /app/web/app/plugins/image-regenerate-select-crop/inc/debug.php(362): WP_Filesystem_FTPext->mkdir() #2 /app/web/app/plugins/image-regenerate-select-crop/inc/debug.php(41): SIRSC\Debug\ensure_index() #3 /app/web/app/plugins/image-regenerate-select-crop/image-regenerate-select-crop.php(323): SIRSC\Debug\check_log_prefix() #4 /app/web/wp/wp-includes/class-wp-hook.php(310): SIRSC_Image_Regenerate_Select_Crop::activate_plugin() #5 /app/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #6 /app/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /app/web/wp/wp-admin/plugins.php(194): do_action() #8 {main} thrown in /app/web/wp/wp-admin/includes/class-wp-filesystem-ftpext.php on line 580
I assume this is likely because of file modifications are not turned on in this type of install? Typically there is no problem doing file stuff in uploads but when i look in the code its trying to make a logs directory inside the plugin folder?
Is there a way I can just prevent logging? or move it to the /uploads/ folder with a filter / config?
The topic ‘Error Activation – logs creation?’ is closed to new replies.