I have been dealing with the following problem for a couple of days now. I’m pretty new to this but a friend of mine asked me if I could set up a customized newsletter theme for his company. So what did I do:
I copied the default theme, changed the name of the copy to slptheme (slp is the name of my customer’s company) and customized it (added an image to the header, inserted the contact details of the company into the footer). Everything worked and the theme absolutely satifies my customer’s needs. However after that I created the extensions folder for an override and copied the customized theme into the extensions folder (wp-content/extensions/newsletter/emails/themes/slptheme is the path). I deleted the slptheme from the standard folder (wp-content/plugins/newsletter/emails/themes) to simulate a plugin update. Everything still works: the theme is there, the image in the header is being shown and all customizations still appear.
Only one thing does not work and that is where my problem begins: instead of showing me the contact details of the company in the footer, I can see that message:
Warning: include(/home/httpd/vhosts/mydomain.ch/httpdocs/wp-content/plugins/newsletter/emails/themes/slptheme/footer.php): failed to open stream: No such file or directory in /home/httpd/vhosts/mydomain.ch/httpdocs/wp-content/extensions/newsletter/emails/themes/slptheme/theme.php on line 83
Warning: include(): Failed opening ‘/home/httpd/vhosts/mydomain.ch/httpdocs/wp-content/plugins/newsletter/emails/themes/slptheme/footer.php’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /home/httpd/vhosts/mydomain.ch/httpdocs/wp-content/extensions/newsletter/emails/themes/slptheme/theme.php on line 83
Line 83 of theme.php says that: <?php include WP_PLUGIN_DIR . ‘/newsletter/emails/themes/slptheme/footer.php’; ?>
To be honest, I do not know what that exactly means but it is quite important for me to fix it since I do not want to lose that job. Hope someone can help me 🙂
Thank you in advance 🙂