PHP 7.2 - error with /class-wp-hook.php

Site on WP Engine. They’re forcing an upgrade to PHP 7.2. I have a staged version where I’m switching over to the Pro theme. I have Pro installed and active but am getting the following error msgs:

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /nas/content/staging/blockfound/wp-includes/class-wp-hook.php on line 286

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /nas/content/staging/blockfound/wp-includes/class-wp-hook.php on line 286

Site can be seen here: http://blockfound.staging.wpengine.com/

Hello Elizabeth,

Thanks for asking. :slight_smile:

You can ignore PHP warning messages by disabling your WP_DEBUG mode on WordPress (https://codex.wordpress.org/WP_DEBUG).

Thanks.

Thanks for the reply but is that just ignoring an issue. Is there an issue?

Hi Elizabeth,

That warning is most likely to show if you have old version of wordpress.

Can you confirm that you are fully updated? (Wordpress, Theme and Plugins)

The latest version numbers as of this time are

Wordpress 4.9.8
Pro 2.3.8
X 6.3.8
Cornerstone 3.3.8

If you find anything to be out of date, you can review our update guide.

Thanks

Hi Paul,
Running only WordPress and Pro and they are both up to date.

Hi Elizabeth,

It should be okay, that warning is also originating from Wordpress’ core files in which we have no control either. Just disable the WP_DEBUG and it should have no problem.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.