Hi There,
We are trying to update WP Engine to their newest upgrade and during testing we ran into an error with our template. The file showing the issue is single_template_2.php. Please let me know how this issue can be rectified.
Thanks,
Shauna
Hi Catalin,
Thanks for your response.
When viewing any of our blog posts there is our header and a blank screen. You can see a screen shot here: https://drive.google.com/file/d/1Dj-c0Xvl0jvI4WxQJ9vdGuu91z-LV2qt/view?usp=sharing
If helpful, this is the full error:
14 PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function objToArray(), 1 passed in /nas/content/live/rethink2018/wp-content/themes/Rethink/single_template_2.php on line 64 and exactly 2 expected in /nas/content/live/rethink2018/wp-content/themes/Rethink/single_template_2.php:25\nStack trace:\n#0 /nas/content/live/rethink2018/wp-content/themes/Rethink/single_template_2.php(64): objToArray(Array)\n#1 /nas/content/live/rethink2018/wp-includes/template-loader.php(74): include(‘/nas/content/li…’)\n#2 /nas/content/live/rethink2018/wp-blog-header.php(19): require_once(‘/nas/content/li…’)\n#3 /nas/content/live/rethink2018/index.php(17): require(‘/nas/content/li…’)\n#4 {main}\n thrown in /nas/content/live/rethink2018/wp-content/themes/Rethink/single_template_2.php on line 25
Thanks,
Shauna
Hi,
Maybe you are using an old version of PHP, they seem to recommend 7.2
– https://wpengine.com/support/php-7-2-questions/
Those errors seem to refer to a rethink theme, what exactly is that? Please try and reinstall the theme fresh if you are using it, then update WP Engine again. Note that if you made modifications to the theme files these will be lost.
Thanks
Hi,
The error is visible when I am testing the new version of PHP. We are looking to move to 7.2 but cannot while encountering this error.
The Rethink theme is a child theme based on your newspaper theme. Are you saying the issue is there and not within the parent theme?
Thanks,
Shauna