Keyword

K2 with PHP 8.0

  • Concerto Designs LLC
  • Concerto Designs LLC's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 3 weeks ago #178218 by Concerto Designs LLC
K2 with PHP 8.0 was created by Concerto Designs LLC
Running K2 under PHP 8.02 throws the following error when trying to save an item:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/b0st0n/public_html/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2726

No problem with 7.4, but I wonder if anyone else has had an issue.

Regards,
Alan

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #178219 by Fotis
Replied by Fotis on topic K2 with PHP 8.0
Can you please test this against K2 v2.10.4 (dev) from: getk2.org/downloads/?f=K2_Development_Release.zip

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Concerto Designs LLC
  • Concerto Designs LLC's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 3 weeks ago #178221 by Concerto Designs LLC
Replied by Concerto Designs LLC on topic K2 with PHP 8.0
Same error :-(

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/b0st0n/public_html/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2769

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

  • Concerto Designs LLC
  • Concerto Designs LLC's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 3 weeks ago #178222 by Concerto Designs LLC
Replied by Concerto Designs LLC on topic K2 with PHP 8.0
Reverted back to 10.3 and fixed the line in question by replacing curly braces with square brackets:

$last = strtolower($size[strlen($size)-1]);

Running PHP 8 in general is probably a bit risky at this point, especially in Joomla sites with a lot of extensions. But it seems to make things a bit more performant.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #178226 by Fotis
Replied by Fotis on topic K2 with PHP 8.0
Thanks - fixed on v2.10.4 (dev) as well.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum