-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.9.21 and PHP 7.4.x compatibility issues with built in LESS compiler #30569
Comments
Attached the version of the file that fixes the issue. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30569. |
Attached the version of the file that fixes the issue. lessc.inc.php.txt This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30569. |
The issue has been "discussed" already here: #30452 The only reliable solution (because it's a vendor library) would be to use another, still maintained less-php repo or provide a maintained one as replacement for the current one. BTW: As far as I know less has been removed from Joomla 4 (?). (I used my custom system plugin in the past to load my fixed less library very early instead of the joomla less library. But that was a "very individual solution", not appropriate for Joomla core.) |
See upstream PR leafo/lessphp#647 |
What's the point on submitting a pr on a upstream dead project ?? |
An topic for this issue (backporting combat fixes for dead projects) has been added to the production department meeting agenda to be held on 08.09.2020 |
well then we can simply close this |
Why should we close this here? Has there been an decision made? It was just me that added that to the document. |
No, |
This errors fatally on PHP 8. |
To foreshadow the meeting report to be published this is an acknowledged issue where it seems we got an agreement on how we want to backport the changes. Details will follow once that thing is finalized. |
As there hasnt been a published report from the department for 60 days is there any chance of an update here |
We will fork the repository and fix it for j3 packages. The meeting reports will come soon because of personal things they got delayed... |
Thanks for the update |
This is the repo where we will do the fixes: https://github.com/joomla-projects/lessphp |
@HLeithner OK to close per PR #31428? |
Yes |
fyi wikimedia maintains a fork at https://github.com/wikimedia/less.php#transitioning-from-leafolessphp |
Thanks for the info @mattab we will look into it, latest versions seems to require php 7.2.9 and in case of j3 we have minimum requirement of 5.3.10. So 1.8.1 is the only option. For j4 we don't include a less compiler. |
Steps to reproduce the issue
Expected result
Forum displayed without problems
Actual result
Got following errors:
Deprecated: Array and string offset access syntax with curly braces is deprecated in <site_path>\libraries\vendor\leafo\lessphp\lessc.inc.php on line 749
Deprecated: Array and string offset access syntax with curly braces is deprecated in <site_path>\libraries\vendor\leafo\lessphp\lessc.inc.php on line 1860
Deprecated: Array and string offset access syntax with curly braces is deprecated in <site_path>\libraries\vendor\leafo\lessphp\lessc.inc.php on line 2519
Deprecated: Array and string offset access syntax with curly braces is deprecated in <site_path>\libraries\vendor\leafo\lessphp\lessc.inc.php on line 2573
System information (as much as possible)
Additional comments
Basically the problem is with "lessc.inc.php" that uses old/deprectaed syntax like "$subProp[1]{0}" to address arry elements instead of "$subProp[1][0]".
Not the major issue by far, but since this LESS compiler is distributed with Joomla and Joomla recommends to upgrade to 7.4 ... looks bad :)
The text was updated successfully, but these errors were encountered: