Rocked Pro Layout Broken With PHP v7.2 or v7.3

I just tried updating my site to an updated version of PHP. If I use PHP v7.0.33 it works fine, if I use anything higher than that (v7.2 or v7.3) the whole layout of the theme breaks. Any assistance appreciated!

Hello there,

To get the cause of such that issue, I request you to install and activate the Error Log Monitor plugin. Then visit the error log dashboard and share it as a reply to this thread.

Stay safe.
Have an excellent day :slight_smile:

Regards,
Kharis
aThemes Support

From the error log file:

[19-Jun-2020 21:16:02 UTC] PHP Notice: Use of undefined constant WPLANG - assumed ‘WPLANG’ in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154
[19-Jun-2020 21:16:02 UTC] PHP Notice: Use of undefined constant WPLANG - assumed ‘WPLANG’ in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154
[19-Jun-2020 21:16:12 UTC] PHP Notice: Use of undefined constant WPLANG - assumed ‘WPLANG’ in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154
[19-Jun-2020 21:16:12 UTC] PHP Warning: Missing argument 5 for wppb_changeDefaultAvatar(), called in /home2/cfhonet/public_html/cfho_prod/wp-includes/class-wp-hook.php on line 287 and defined in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/profile-builder/features/functions.php on line 405
[19-Jun-2020 21:16:15 UTC] PHP Notice: Use of undefined constant WPLANG - assumed ‘WPLANG’ in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154
[19-Jun-2020 21:16:35 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 646
[19-Jun-2020 21:16:35 UTC] PHP Warning: Use of undefined constant WPLANG - assumed ‘WPLANG’ (this will throw an Error in a future version of PHP) in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154
[19-Jun-2020 21:16:35 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wppb_changeDefaultAvatar(), 4 passed in /home2/cfhonet/public_html/cfho_prod/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/profile-builder/features/functions.php:405
Stack trace:
#0 /home2/cfhonet/public_html/cfho_prod/wp-includes/class-wp-hook.php(287): wppb_changeDefaultAvatar(’<img src=‘https…’, 1, 64, ‘’)
#1 /home2/cfhonet/public_html/cfho_prod/wp-includes/plugin.php(206): WP_Hook->apply_filters(’<img src=‘https…’, Array)
#2 /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php(1446): apply_filters(‘get_avatar’, '<img src=‘https…’, 1, 64, ‘’)
#3 /home2/cfhonet/public_html/cfho_prod/wp-includes/admin-bar.php(292): get_avatar(1, 64)
#4 /home2/cfhonet/public_html/cfho_prod/wp-includes/class-wp-hook.php(287): wp_admin_bar_my_account_menu(Object(WP_Admin_Bar))
#5 /home2/cfhonet/public_html/cfho_prod/wp-includes/class-wp-hook.php(311): WP_H in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/profile-builder/features/functions.php on line 405
[19-Jun-2020 21:16:36 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 646
[19-Jun-2020 21:16:37 UTC] PHP Warning: Use of undefined constant WPLANG - assumed ‘WPLANG’ (this will throw an Error in a future version of PHP) in /home2/cfhonet/public_html/cfho_prod/wp-content/plugins/add-local-avatar/avatars.php on line 154

Hello there,

Based on the orror nitices you shared, no one referring to theme’s files. This indicates that the issus are caused by your current active plugins.

Stay safe.
Have an excellent day :slight_smile:

Regards,
Kharis
aThemes Support

This turned out to be the case. There was a plugin, “Avatars”, that seems to have been causing the issue. I turned it off and the theme seems to be working fine now. Thanks for the assist!

Hello there,

Thank you for updating me.

Glad to hear that you’ve been able to find the exact cause of the issue. And thank you for sharing it here. We really appreciate it.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Stay safe.
Have an excellent day :slight_smile:

Regards,
Kharis
aThemes Support