Keyword

K2 with PHP 8.0

  • Concerto Designs Inc.
  • Concerto Designs Inc.'s Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 8 months ago #178218 by Concerto Designs Inc.
K2 with PHP 8.0 was created by Concerto Designs Inc.
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.

More
3 years 8 months ago #178219 by JoomlaWorks
Replied by JoomlaWorks 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

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Concerto Designs Inc.
  • Concerto Designs Inc.'s Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 8 months ago #178221 by Concerto Designs Inc.
Replied by Concerto Designs Inc. 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 Inc.
  • Concerto Designs Inc.'s Avatar Topic Author
  • Offline
  • Junior Member
More
3 years 8 months ago #178222 by Concerto Designs Inc.
Replied by Concerto Designs Inc. 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.

More
3 years 8 months ago #178226 by JoomlaWorks
Replied by JoomlaWorks on topic K2 with PHP 8.0
Thanks - fixed on v2.10.4 (dev) as well.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum