Conversation
supportMy site auto-upgraded to 1.9, had a compile error with the plugin, and went down as a result. It’s hosted with WordPress.com so I can’t imagine the hosting or ops setup is an issue. Error also doesn’t look to be an interaction with any plugin or theme, since the error seems to be contained to the wp-less folder – but I could totally be wrong there. Current theme: Stack Child (version 10.5.21) Current plugin: WP LESS (version 1.9.0) PHP version 7.3.30 Error Details ============= An error of type E_COMPILE_ERROR was caused in line 50 of the file /srv/htdocs/wp-content/plugins/wp-less/lib/Plugin.class.php. Error message: require(): Failed opening required '/srv/htdocs/wp-content/plugins/wp-less/lib/../vendor/wikimedia/less.php/lessc.inc.php' (include_path='/:.')
Oops, sorry for the troubles. I’m on it.
Version 1.9.3-2 should fix the issue.
Other people confirms the latest version fixes this problem.
Yeah I just tried upgrading to 3-3 and am still getting a critical site error – perhaps because the error is cached? I’ll be reverting for now.
Yeah I can again confirm that this is NOT fixed in the latest version. Fatal error: Uncaught Exception: load error: failed to find /srv/htdocs/wp-content/https://recital.software/wp-content/themes/stack/style/css/theme.less in /srv/htdocs/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lessc.inc.php:144 Clearing my cache did not work. Neither did upgrading PHP.
It’s also pretty obvious from the error that the path is being constructed wrong and that’s the problem. Unfortunately there’s too much indirection in the plugin source for me to debug it quickly.
The $lessfile_in_theme variable is not working properly in /wp-content/plugins/wp-less/lib/Stylesheet.class.php on line 88 (I am using version 1.9.3-3 of the plugin) I temporarily fixed this by adding the path directly to the plugin file (at least to get it working until the plugin is fixed). 1. Comment out line 89: $this->source_path = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . $lessfile_in_theme; 2. Add a new line with the correct path to this filename: $this->source_path = ‘/www/wp-content/themes/yourthemename/style/css/theme.less’; This will work until the plugin is updated and the file is overwritten, but hopefully at that point the variable will be fixed and working properly.
Oops, sorry for the troubles. I’m on it.
Version 1.9.3-2 should fix the issue.
Other people confirms the latest version fixes this problem.
Yeah I just tried upgrading to 3-3 and am still getting a critical site error – perhaps because the error is cached? I’ll be reverting for now.
Yeah I can again confirm that this is NOT fixed in the latest version. Fatal error: Uncaught Exception: load error: failed to find /srv/htdocs/wp-content/https://recital.software/wp-content/themes/stack/style/css/theme.less in /srv/htdocs/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lessc.inc.php:144 Clearing my cache did not work. Neither did upgrading PHP.
It’s also pretty obvious from the error that the path is being constructed wrong and that’s the problem. Unfortunately there’s too much indirection in the plugin source for me to debug it quickly.
The $lessfile_in_theme variable is not working properly in /wp-content/plugins/wp-less/lib/Stylesheet.class.php on line 88 (I am using version 1.9.3-3 of the plugin) I temporarily fixed this by adding the path directly to the plugin file (at least to get it working until the plugin is fixed). 1. Comment out line 89: $this->source_path = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . $lessfile_in_theme; 2. Add a new line with the correct path to this filename: $this->source_path = ‘/www/wp-content/themes/yourthemename/style/css/theme.less’; This will work until the plugin is updated and the file is overwritten, but hopefully at that point the variable will be fixed and working properly.