May 28, 2019 at 12:24 am #23211
I have uploaded the ambition theme 3 times and wordpress keeps shutting it down. The error message is as follows – is something missing from the theme?
Warning: require_once(/home/painrevo/public_html/wp-content/themes/genesis/inc/functions/i18n.php): failed to open stream: No such file or directory in /home/painrevo/public_html/wp-content/themes/ambition/functions.php on line 76
Fatal error: require_once(): Failed opening required ‘/home/painrevo/public_html/wp-content/themes/genesis/inc/functions/i18n.php’ (include_path=’.:/opt/alt/php72/usr/share/pear’) in /home/painrevo/public_html/wp-content/themes/ambition/functions.php on line 76May 28, 2019 at 8:26 pm #23214May 31, 2019 at 11:22 pm #23223
It looks like WordPress tried to update this Ambition theme with another Theme that is also called Ambition. I logged in to the FTP and added the Ambition theme to the Themes folder and renamed the other theme that’s not supposed to be there so it becomes inactive.
It should be back to normal now.
This isn’t your fault. The reason this happened is because you probably got an update notification in your WP Admin for Ambition, and when you clicked update, WordPress downloaded and installed another theme with the same name (from their repository). This issue has been going on for a while now and it’s happened to many other developers/users as well – https://wordpress.stackexchange.com/questions/16093/making-update-notification-functionality-for-my-themes
Genesis Child themes usually don’t have Automatic Update Notifications, but the Genesis Framework does. If you see a notification pop up for a child theme, check with me or the developer of the theme you’re using first to make sure.
After adding the correct theme back in, I added this to the functions file –
/** * Ambition Theme. * * This file adds functions to the Ambition Theme. * * @package Ambition Theme * @author Appfinite * @license GPL-2.0-or-later * @link https://www.appfinite.com/ */
I’m not sure if that will prevent it from happening in the future, but we’ll see. I may just need to rename the theme so it has a unique name.
I haven’t logged into WordPress yet. I did everything through FTP.
Let me know if everything is working again.June 1, 2019 at 12:05 am #23224
I just happened to reload your site and saw the error pop up again. So I went to the FTP to look at the Themes folder and noticed the Wrong Ambition theme was Installed and Activated again. So I removed that one and added the correct Ambition theme back in.
I would avoid the WordPress update notification that you’re getting for Ambition until we come up with a workaround.
Let me know if this makes sense.June 2, 2019 at 8:31 pm #23227June 2, 2019 at 8:34 pm #23228June 3, 2019 at 3:07 am #23229
Just checked again and I can see it’s working. It shouldn’t automatically update unless you have your WP installation setup to do so? Or maybe your host has your WP install setup to auto update? I’m not sure.
What if we just rename the theme to “Ambition Pro” in the theme files? I can edit the files from FTP info you’ve already sent over, but I’ll need a WordPress login to double check in the admin. You can create a Temporary Administrator login by going to Users > Add New.
Just let me know. I’d be happy to take a look.June 4, 2019 at 4:39 pm #23235
I changed the theme name to Ambition Pro and deleted the other Ambition theme installs that weren’t supposed to be there. Let’s see if that works.November 21, 2019 at 6:19 pm #23468
- You must be logged in to reply to this topic.