? ?
avatar Quark-Zimmerman
Quark-Zimmerman
4 Sep 2020

Steps to reproduce the issue

  1. Install 3.9.21
  2. Install PHP 7.4.10
  3. Install Kunena Forum 5.1.19
  4. Install "Blue Eagle 5" Kunena template and make it default
  5. Enable PHP error reporting
  6. Browse to Forum's index page

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 :)

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar Quark-Zimmerman Quark-Zimmerman - open - 4 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Sep 2020
avatar Quark-Zimmerman Quark-Zimmerman - change - 4 Sep 2020
The description was changed
avatar Quark-Zimmerman Quark-Zimmerman - edited - 4 Sep 2020
avatar Quark-Zimmerman
Quark-Zimmerman - comment - 4 Sep 2020

Attached the version of the file that fixes the issue.
Very simple , I just do not like doing core "hacking" , if this distributed with Joomla - everyone should get it as part of the install.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30569.

avatar Quark-Zimmerman
Quark-Zimmerman - comment - 4 Sep 2020

Attached the version of the file that fixes the issue.
Very simple , I just do not like doing core "hacking" , if this distributed with Joomla - everyone should get it as part of the install.

lessc.inc.php.txt
(just remove the .txt from extension)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30569.

avatar ReLater
ReLater - comment - 4 Sep 2020

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.)

avatar Quy
Quy - comment - 4 Sep 2020

See upstream PR leafo/lessphp#647

avatar alikon
alikon - comment - 4 Sep 2020

What's the point on submitting a pr on a upstream dead project ??
surely we should consider to fork this , if we really think we need to really support j.3 for 2 years after the release of j4 stable

avatar zero-24
zero-24 - comment - 4 Sep 2020

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

avatar alikon alikon - change - 4 Sep 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-09-04 19:01:29
Closed_By alikon
avatar alikon alikon - close - 4 Sep 2020
avatar alikon
alikon - comment - 4 Sep 2020

well then we can simply close this

avatar zero-24
zero-24 - comment - 4 Sep 2020

Why should we close this here? Has there been an decision made? It was just me that added that to the document.

avatar alikon alikon - change - 4 Sep 2020
Status Closed New
Closed_Date 2020-09-04 19:01:29
Closed_By alikon
avatar alikon alikon - reopen - 4 Sep 2020
avatar alikon
alikon - comment - 4 Sep 2020

No,
sorry for being in hurry then let this be reopened and waiting for Godot

avatar SharkyKZ
SharkyKZ - comment - 7 Sep 2020

This errors fatally on PHP 8.

avatar zero-24
zero-24 - comment - 8 Sep 2020

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.

avatar brianteeman
brianteeman - comment - 7 Oct 2020

As there hasnt been a published report from the department for 60 days is there any chance of an update here

avatar HLeithner HLeithner - change - 7 Oct 2020
Labels Added: ?
avatar HLeithner HLeithner - labeled - 7 Oct 2020
avatar HLeithner
HLeithner - comment - 7 Oct 2020

We will fork the repository and fix it for j3 packages. The meeting reports will come soon because of personal things they got delayed...

avatar brianteeman
brianteeman - comment - 7 Oct 2020

Thanks for the update

avatar Hackwar
Hackwar - comment - 7 Oct 2020

This is the repo where we will do the fixes: https://github.com/joomla-projects/lessphp
Help is appreciated.

avatar Quy
Quy - comment - 19 Nov 2020

@HLeithner OK to close per PR #31428?

avatar HLeithner
HLeithner - comment - 19 Nov 2020

Yes

avatar Quy Quy - change - 19 Nov 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-11-19 17:44:10
Closed_By Quy
avatar Quy Quy - close - 19 Nov 2020
avatar mattab
mattab - comment - 27 Nov 2020
avatar HLeithner
HLeithner - comment - 27 Nov 2020

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.

Add a Comment

Login with GitHub to post a comment