Support

Home Forums Event Espresso Premium Failed to open stream in templates folder

Failed to open stream in templates folder

Posted: March 1, 2019 at 3:04 pm


canvas

March 1, 2019 at 3:04 pm

Today, I’m getting php warnings in the debug.log file.

[01-Mar-2019 21:56:35 UTC] PHP Warning: include(/home/content/p3pnexwpnas03_data02/07/41456807/html/wp-content/uploads/espresso/templates): failed to open stream: No such file or directory in /wp-includes/template-loader.php on line 77
[01-Mar-2019 21:56:35 UTC] PHP Warning: include(): Failed opening /wp-content/uploads/espresso/templates/’ for inclusion (include_path=’.:/usr/local/php5_6/lib/php’) in /wp-includes/template-loader.php on line 77

I can successfully sign in as an admin, but nothing is being sent to the browser when accessed as a visitor.


Josh

  • Support Staff

March 1, 2019 at 3:10 pm

Hi,

May I ask do you have any custom templates in wp-content/uploads/espresso/templates? If so, they can be moved into the active theme’s directory e.g. move them into wp-content/themes/your-activity-theme-directory-name.

If no templates there now, or after you empty that director, you can delete the /wp-content/uploads/espresso/templates directory.


canvas

March 1, 2019 at 5:03 pm

Thanks Josh. No templates, so I removed the directory. Now I’m getting

[02-Mar-2019 00:02:27 UTC] PHP Warning: include(/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014): failed to open stream: No such file or directory in /wp-includes/template-loader.php on line 77
[02-Mar-2019 00:02:27 UTC] PHP Warning: include(): Failed opening /wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014/ for inclusion (include_path=’.:/usr/local/php5_6/lib/php’) in /wp-includes/template-loader.php on line 77

Still can’t view the website. No other errors showing. And nothing sent to the browser.


Tony

  • Support Staff

March 4, 2019 at 3:43 am

Hi there,

The above is basically saying there are either missing files from your install or your site does not have access to the files if they are there (or, there’s some form of restriction on the server side preventing the files from being included).

When EE checks this location: /wp-content/uploads/espresso/templates

It’s checking for custom templates but your server state it doesn’t exist, yet it did until you deleted it (this would point to a permissions issue). If you check now, has that directory been re-created? EE will check for the custom directories and if it has access to do so, will create them again.

When EE checks the above directory and there are no templates in that location it switches back to the default location, which is /wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014

As your server then also returns that it can’t access that directory, either, the files are missing from the core plugin (seems unlikely considering you get the error when EE is also trying to read the custom template directory, which would be empty unless you added templates there yourself) or, for some reason EE can’t access the directories on your server.

I’d start by checking with your host to confirm your site has the correct permissions to access both of those folders.

Can you link me to an event so I can run some tests? (I understand there will be no output)

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 weeks, 1 day ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!