• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t Activate: Fatal Error ‘No file “src/init.php”‘.’ is closed to new replies.