Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Fatal error upon activation #73

Closed
aaronjorbin opened this issue Aug 31, 2017 · 2 comments
Closed

Fatal error upon activation #73

aaronjorbin opened this issue Aug 31, 2017 · 2 comments

Comments

@aaronjorbin
Copy link
Member

I cloned this into wp-content/plugins. When I activated the plugin, my site stopped working.
Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/srv/www/wordpress-develop/public_html/src/wp-content/plugins/better-code-editing/wp-includes/js/codemirror): failed to open dir: No such file or directory in /srv/www/wordpress-develop/public_html/src/wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php:197 Stack trace: #0 /srv/www/wordpress-develop/public_html/src/wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php(197): RecursiveDirectoryIterator->__construct('/srv/www/wordpr...') #1 /srv/www/wordpress-develop/public_html/src/wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php(127): _better_code_editing_report_asset_errors(Object(WP_Scripts)) #2 /srv/www/wordpress-develop/public_html/src/wp-includes/class-wp-hook.php(286): _better_code_editing_default_scripts(Object(WP_Scripts)) #3 /srv/www/wordpress-develop/public_html/src/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /srv/www/ in /srv/www/wordpress-develop/public_html/src/wp-content/plugins/better-code-editing/wp-includes/script-loader-addendum.php on line 197

@westonruter
Copy link
Member

westonruter commented Aug 31, 2017

@aaronjorbin please use a release build either on WordPress.org or among releases on GitHub: https://github.com/WordPress/better-code-editing/releases

To install the plugin from source, follow the instructions here: https://github.com/WordPress/better-code-editing/blob/master/contributing.md#getting-started

@westonruter
Copy link
Member

That being said, the plugin could check if wp-includes/js/codemirror exists and if not, prompt the user to run npm install.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants