I have a plugin that is causing an error on Local but is running just fine on WP Engine. Can anyone help me understand why this is happening?

What issue or error are you experiencing?

I have Ultimate Addon for Beaver Builder plugin version: 1.3.1.3 installed on my site. It is running fine on WP Engine. I just pulled down my site to Local and it has this same version of Ultimate Addon for Beaver Builder but on my Local site I’m getting a Fatal Error:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /Users/zanedevault/Local Sites/zane-devault/app/public/wp-content/plugins/bb-ultimate-addon/admin/bsf-core/auto-update/admin-functions.php on line 19

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:
    Version 9.0.2+6676

  • Operating System (OS) and OS version:
    MacOS 13.6.6


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @zanedevault

I believe the error points to a PHP mismatch. Are you using a different version of PHP in Local than you are on WP Engine?

Hello @Nick-B

Thank you for the super quick response!

I changed my Local PHP version to match the WP Engine version and that removed the error.

I hope you don’t mind a couple of follow up questions. I’m always trying to learn. If you’re too busy I totally understand.

  1. Did you figure this because the error message mentioned that the Array and string offset access syntax with curly braces is no longer supported and you were already familiar with this update to PHP? I couldn’t tell the error was related to the PHP version from the error message, so I didn’t even think to check that.
  2. Is it critical for me to update the PHP versions in my WP Engine account, even though doing so will likely break a few of my sites? We use this plugin on many of our installs.

Again, I totally understand if you are too busy, and I appreciate your quick response to my question.

Thank you,
Zane DeVault

I can’t say that I knew it for certain off the top of my head, but I will say that we do often see issues like this and other errors or formatting problems when sites are moved between Local and hosting (not just with WPE) when things like PHP/WP/MySQL aren’t 1:1. So as a general troubleshooting step, it’s always something to keep in mind.

As far as what this error specifically references, in older versions of PHP, you could use curly braces to access individual characters of a string or elements of an array, but this syntax is now deprecated and was removed in newer versions of PHP.

As far as upgrading your PHP version, we always recommend utilizing the latest version when possible to maintain the best site security and performance. That will also be the case for your host as well. So is it critical that you upgrade right now? No, but it’s something you should be aware of and working towards doing sooner rather than later. I believe WPE still supports PHP 7.4 for now, but it is officially at End of Life status by PHP and won’t be available forever. PHP: Supported Versions

Here is some additional information for WP Engine specifically. There isn’t a specific “end date” yet for 7.4, but again, I recommend looking at any changes or updates now rather than waiting until an update is forced.

1 Like

Thanks for the details info!

VERY helpful!

Can I buy you a coffee or beer or something?

Z

1 Like

Haha, I much appreciate it, but it’s not necessary, I’m always happy to help! :green_heart:

SpideyPose

2 Likes