Can’t Activate: Fatal Error ‘No file “src/init.php”‘.

[ad_1]

32	/**
33	 * Block Initializer.
34	 */
35	require_once plugin_dir_path( __FILE__ ) . 'src/init.php';

Line 35 within the file “wp-image-mask.php” throws the following error:

Plugin could not be activated because it triggered a fatal error.

Warning: require_once(/home/…/public_html/…/wp-content/plugins/wp-image-mask/src/init.php): failed to open stream: No such file or directory in /home/enthusia/public_html/control/wp-content/plugins/wp-image-mask/wp-image-mask.php on line 35

WP-Admin Dashboard

This error prevents the plugin from successfully activating after installation. There is no folder named ‘src’ within your plugin. There is no file ‘init.php’ within your plugin. What is your code referencing? Should there be a ‘src/init.php’ file? Why is it not included in the plugin?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer