WPIntell

Source evidence

Version 1.9 Compile Error

WP-LESS · support · 2021-09-03T10:31:00+00:00

mixedsentiment
highseverity
0.88relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 23 rows with source links

30.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bmulhollandrecital resolved
My 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.

Comments

7 shown
thom4 2021-09-03T12:30:00+00:00

Oops, sorry for the troubles. I’m on it.

thom4 2021-09-03T12:57:00+00:00

Version 1.9.3-2 should fix the issue.

thom4 2021-09-03T13:52:00+00:00

Other people confirms the latest version fixes this problem.

bmulhollandrecital 2021-09-03T15:05:00+00:00

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.

bmulhollandrecital 2021-09-14T15:30:00+00:00

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.

bmulhollandrecital 2021-09-14T15:32:00+00:00

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.

Kari Sharp 2021-10-02T15:23:00+00:00

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.