Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Fuel & PHP 7.4

Hello,

I'm running my dev server with XAMPP and PHP 7.4 and getting the following errors:
Message: Array and string offset access syntax with curly braces is deprecated

I'm just wondering if there are plans to update the Fuel code to account for this PHP change?

Here are some locations it's happening:

  • Filename: helpers/markdown_helper.php Line Number: 912
  • Filename: helpers/MY_string_helper.php Line Number: 146
  • Filename: helpers/markdown_helper.php Line Number: 1208
  • Filename: helpers/markdown_helper.php Line Number: 1233
  • Filename: helpers/markdown_helper.php Line Number: 1562
  • Filename: helpers/markdown_helper.php Line Number: 1564
  • Filename: libraries/Simplepie.php Line Number: 12624
  • Filename: libraries/Simplepie.php Line Number: 12625

I'm running Fuel 1.4.4 right now but I took a look at the repo for 1.4.6 and saw the same code for line:

  • Filename: helpers/MY_string_helper.php Line Number: 146

Thanks!

Comments

  • This issue should be resolved in the develop branch.

  • @admin, awesome I see the new version in git! Thanks so much for addressing this.

  • Hi @admin, I've updated to the new version of Fuel 1.4.7 and now seeing the following messages I thought you might like to look into for PHP 7.4. No rush for me, I can keep using 7.3 or 7.2 for now.

    Severity: 8192
    Message: implode(): Passing glue string after array is deprecated. Swap the parameters
    Filename: libraries/Fuel_pages.php
    Line Number: 1340

    Severity: 8192
    Message: implode(): Passing glue string after array is deprecated. Swap the parameters
    Filename: libraries/Simplepie.php
    Line Number: 12624

    Thanks :)

  • Thanks. I'll work on pushing a fix for the dev branch.

Sign In or Register to comment.