Hello,
After updating the Enfold theme on my website, I encountered the following error:
Warning: require_once(zip://#template): failed to open stream: operation failed in /nas/content/live/arcnmstg/wp-includes/template.php on line 785
Fatal error: require_once(): Failed opening required ‘zip://#template’ (include_path=’.:/usr/share/pear/php:/usr/share/php’) in /nas/content/live/arcnmstg/wp-includes/template.php on line 785
Temporary Resolution:
To ensure my website remains operational, I resorted to making a temporary modification in the wp-includes/template.php
file. Here’s the check I added in the load_template function:
php
if ($_template_file != “zip://#template”) {
if ($load_once) {
require_once $_template_file;
} else {
require $_template_file;
}}
This modification allowed me to make my website functional. However, I believe there might be an underlying issue that needs proper investigation and resolution.
I’m uncertain why WordPress attempted to load a template with the name “zip://#template,” as this behavior is unexpected. I’m creating this Topic here for the permanent solution from the support team.
I understand the importance of not modifying core files directly, and I am eager to restore my website to its standard configuration as soon as possible.
Thank you for your help!