Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 3 months 2 days ago #30859

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
I'm on the latest joomla/php/mysql I got an update to jem and it said as per subject, I fixed it previously and fixed it again. will I need to keep fixing it at update. No big deal just asking as I have to keep altering the language to english uk style instead of american (zip/postcode state/county) whenever there's an update.

Please Log in or Create an account to join the conversation.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 3 months 2 days ago #30861

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192
Hi gnarly, thanks for reporting.

Did I get you right:
Because of the deprecated notation of strings, the language setting is not preserved correctly on update and you have to set it again manually?

Could you tell us more precicely, where the deprecated notation is (there are quite some left, but we are on the way to update them step by step)

Please Log in or Create an account to join the conversation.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 3 months 1 day ago #30867

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
Sorry I was being lazy and copied the deprecated message into the subject which cut it short.
as its a notification it's not important but it's on line 277 of /classes/
JemHelper::addLogEntry("User ${userid} is not permritted to remove attachment " . $res->object, __METHOD__);
${userid} should be {$userid} it's the same on line 282 and I've only just noticed permritted should be permitted.

The language file en-GB should use County instead of STATE and ZIP should be Postcode.
I'm not clever enough to do overrides so if there's an update I have to change it back.

Please Log in or Create an account to join the conversation.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 3 months 1 day ago #30868

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
For some reason the "/classes/" got cut.

Please Log in or Create an account to join the conversation.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 3 months 1 day ago #30869

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
It looks like the file name is being stripped - attachment dot class.

Please Log in or Create an account to join the conversation.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /homepa 2 months 3 weeks ago #30905

Hi Forum
I got following in Single Event View when Event with Files Attached
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/www/jem4.j-host.ch/components/com_jem/classes/attachment.class.php on line 277

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/www/jem4.j-host.ch/components/com_jem/classes/attachment.class.php on line 282

I run
JEM 4.1.0
PHP 8.2.10
JOOMLA 4.3.4

Maybe a PHP Version related Issue?
EDIT: with PHP 8.1 no error appear, file are show up. So I switched again to 8.2. and also no error appear anymore. Ghost Hunting? :blink:


Best Regards, Marcel
Test Site:
jem4.j-host.ch with PHP 8.1. 23

Please Log in or Create an account to join the conversation.

Last edit: by pctech.
  • Page:
  • 1
  • 2
Time to create page: 0.258 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......