?
avatar sshcli
sshcli
1 May 2020

Steps to reproduce the issue

  1. Install Joomla 3.9.18 + PHP 7.4.5
  2. Visit your website and spend a few seconds navigating between pages
  3. Take a look to the error log file

Expected result

No errors

Actual result

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/username/public_html/libraries/vendor/leafo/lessphp/lessc.inc.php on line 749
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/username/public_html/libraries/vendor/leafo/lessphp/lessc.inc.php on line 1860
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/username/public_html/libraries/vendor/leafo/lessphp/lessc.inc.php on line 2519
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/username/public_html/libraries/vendor/leafo/lessphp/lessc.inc.php on line 2573

System information (as much as possible)

PHP 7.4.5
Joomla 3.9.18

Votes

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

avatar sshcli sshcli - open - 1 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 1 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 May 2020
avatar brianteeman
brianteeman - comment - 1 May 2020

Although the file is distributed with Joomla there is nothing in the core that uses it. It is probably being used by your template. It absolutely should not be enabled by default. You would only want to be using it when you have changed your template - and then only once.

avatar sshcli sshcli - change - 1 May 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-05-01 19:29:10
Closed_By sshcli
avatar sshcli sshcli - close - 1 May 2020
avatar sshcli
sshcli - comment - 1 May 2020

You are right @brianteeman

Thanks @brianteeman for point me into the right direction.

Thanks @810 for give me the solution.

I'm closing this issue now

avatar MrTobyDog
MrTobyDog - comment - 13 May 2020

I have just update to 3.9.18 and get the following (PHP 7.4.3):

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 2032

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 148

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 151

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 154


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

avatar zero-24
zero-24 - comment - 13 May 2020

Hi please open a new issue with that warnings so we can take a look into them.

avatar zero-24
zero-24 - comment - 15 May 2020

Just looked them up on 3.9.18 @MrTobyDog seems you are not running a real 3.9.18 please reinstall the core files from com_joomlaupdate and try again and check the content to up-to-date with 3.9.18 stable.

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 1956

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/joomla/database/driver.php#L1956

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line 2032

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/joomla/database/driver.php#L2032

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 148

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L148

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 151

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L151

Deprecated: Array and string offset access syntax with curly braces is deprecated in I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 154

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L154

avatar MrTobyDog
MrTobyDog - comment - 15 May 2020

Thank you - I had reached the same conclusion! I originally downloaded the
3.9.18 update files from the link on the update screen on my website and
they identified as such, but after I got this error I checked re-installed
that update and noticed it was 3.9.11 although the name was 3.9.18! I
downloaded the file again from the Joomla site and it was OK - so it seems
as though the link on the update screen MAY have been wrong?

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, 16 May 2020 at 04:44, Tobias Zulauf notifications@github.com
wrote:

Just looked them up on 3.9.18 @MrTobyDog https://github.com/MrTobyDog
seems you are not running a real 3.9.18 please reinstall the core files
from com_joomlaupdate and try again and check the content to up-to-date
with 3.9.18 stable.

Deprecated: Array and string offset access syntax with curly braces is
deprecated in
I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line
1956

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/joomla/database/driver.php#L1956

Deprecated: Array and string offset access syntax with curly braces is
deprecated in
I:\Users\Dave\WebSites\J3918\libraries\joomla\database\driver.php on line
2032

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/joomla/database/driver.php#L2032

Deprecated: Array and string offset access syntax with curly braces is
deprecated in
I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 148

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L148

Deprecated: Array and string offset access syntax with curly braces is
deprecated in
I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 151

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L151

Deprecated: Array and string offset access syntax with curly braces is
deprecated in
I:\Users\Dave\WebSites\J3918\libraries\src\Filesystem\Path.php on line 154

https://github.com/joomla/joomla-cms/blob/3.9.18/libraries/src/Filesystem/Path.php#L153


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#28900 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUEV53KVJAXXT3KIGU43YLRRWEP3ANCNFSM4MXG5QNQ
.

avatar zero-24
zero-24 - comment - 15 May 2020

That sounds interesting. Please send me a mail with the details to tobias.zulauf[at]community.joomla.org so i can take a look and make sure this is not a general problem. Thanks.

avatar sabassanchez
sabassanchez - comment - 18 Dec 2020

Not sure if there was a solution to this but I was able to search around and fix the issue by going to each line and replacing every

if ($query != '' && $query{0} != '#')
TO
if ($query != '' && $query[0] != '#')

Basically, replace the {} to [] on all the error lines

SOURCE:
https://joomdonation.com/forum/membership-pro-general-discussion/67120-array-and-string-offset-access-syntax-with-curly-braces-is-deprecated-in-php-7-4.html


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

avatar MrTobyDog
MrTobyDog - comment - 18 Dec 2020

Yes I did that. But fixed in latest release

On Sat, 19 Dec 2020 at 04:25, Sabas Sanchez notifications@github.com
wrote:

Not sure if there was a solution to this but I was able to search around
and fix the issue by going to each line and replacing every

if ($query != '' && $query{0} != '#')
TO
if ($query != '' && $query[0] != '#')

Basically, replace the {} to [] on all the error lines

SOURCE:

https://joomdonation.com/forum/membership-pro-general-discussion/67120-array-and-string-offset-access-syntax-with-curly-braces-is-deprecated-in-php-7-4.html

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at
issues.joomla.org/tracker/joomla-cms/28900.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#28900 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUEV55ALURWUYPTYHFUNZTSVOGBVANCNFSM4MXG5QNQ
.

Add a Comment

Login with GitHub to post a comment