0

WordPress v6.4.2 CiviCRM v5.68.0

My hosting provider stated, "The issue with [my website] is caused due to the plugin civicrm. It seems that the version of the plugin is not fully compatible with PHP 8.1."

So, I keep being told to update to PHP 8.1 but cannot. What do I need to do?

Thanks!

3 Answers 3

2

I removed my acceptance of my answer of changing the {0} to [0] because I fear it might misguide others. The correct answer is a combination of @Coleman statement of updating the extension which is ALWAYS the proper way, if available, and that @bgm has updated the numerical hierarchy in order to accomplish this. I thank both parties for their time and effort and simply want the record to reflect their tireless efforts!

1

CiviCRM v5.68.0 is fully compatible with PHP 8.1.

However, some extensions you may be using for CiviCRM might not be. You should ask your hosting provider for clarification about the specific incompatibility they are referring to.

12
  • This was the specific error: [13-Dec-2023 11:52:45 UTC] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/xxxxxx/public_html/wp-content/uploads/civicrm/ext/org.civicrm.angularprofiles/angularprofiles.civix.php on line 246 Commented Dec 13, 2023 at 11:58
  • 1
    That's very strange. I see that the latest version is released and available for automatic download.
    – Coleman
    Commented Dec 15, 2023 at 12:27
  • 1
    I'd guess that's due to the oddball way those versions got numbered. You've got version 5.23-1.2.2 but the latest release is 1.2.4... however the computer would think that it's not an update because 5 is greater than 1.
    – Coleman
    Commented Dec 15, 2023 at 13:46
  • 2
    @PaulWilliams Can you check if your CiviCRM install now displays an available upgrade for version 6.2.4? I bumped the version number to fix the issue (looks like there are many many people still running the old version, we need to make sure they upgrade asap). Click "Refresh" to make sure it updates the feed of available extensions.
    – bgm
    Commented Dec 15, 2023 at 15:50
  • 1
    That is affirmative. Seamlessly updated. Appreciate all you folks do! Screenshot attached. imgur.com/a/wV6HaHk Commented Dec 15, 2023 at 19:52
0

Changed {0} to [0] in line 246 and solved everything. Got the idea from here: civicrm.org/blog/bgm/php-8-support-civicrm-extensions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.