Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1418412

    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!

    • This topic was modified 1 year, 11 months ago by Qasim1991.
    #1418538

    Hey Qasim1991,

    That is not a general theme problem, and the theme doesn’t modify core WordPress files. Did you try general debugging methods like changing themes and deactivating plugins?

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.