Fatal error on install

Hello

Im getting this error when i try to activate the x theme with Dreampress hosting:

Fatal error: Uncaught Error: Call to undefined function x_get_view() in /home/wp_t8hi49/sp2sanjose.dream.press/wp-content/themes/x/header.php:11 Stack trace: #0 /home/wp_t8hi49/sp2sanjose.dream.press/wp-includes/template.php(688): require_once() #1 /home/wp_t8hi49/sp2sanjose.dream.press/wp-includes/template.php(647): load_template(’/home/wp_t8hi49…’, true) #2 /home/wp_t8hi49/sp2sanjose.dream.press/wp-includes/general-template.php(45): locate_template(Array, true) #3 /home/wp_t8hi49/sp2sanjose.dream.press/wp-content/themes/twentyseventeen/front-page.php(15): get_header() #4 /home/wp_t8hi49/sp2sanjose.dream.press/wp-includes/template-loader.php(74): include(’/home/wp_t8hi49…’) #5 /home/wp_t8hi49/sp2sanjose.dream.press/wp-blog-header.php(19): require_once(’/home/wp_t8hi49…’) #6 /home/wp_t8hi49/sp2sanjose.dream.press/index.php(17): require(’/home/wp_t8hi49…’) #7 {main} thrown in /home/wp_t8hi49/sp2sanjose.dream.press/wp-content/themes/x/header.php on line 11

Hi there @spaceship123,

It sounds like all the files aren’t installed, can you try deleting the current version of X, then installing the zip again via your wp-admin > Appearance > Themes > Add New > Upload.

It should then work correctly, if you still see the fatal error on activation, please include some WP Admin Login Details and FTP details in a secure note.

Thanks!

Hey there,

Your WordPress credentials work but your FTP doesn’t. Please check.

Thanks.

those credentials work for SFTP

Hi there,

Thanks for providing the details!

It’s definitely odd, as I uploaded a new copy of the theme, previewed it and everything works fine. But then when it’s actually activated, the fatal error happens. I’ve pinged one of our lead developers on this.

Thanks for your patience!

Hi @spaceship123, I’ve tested something on your site and something is seriously wrong with your server environment.

As a test, I added this line to functions.php of X.

var_dump(get_template_directory());die();

And it output this:

/home/wp_t8hi49/sp2sanjose.dream.press/wp-content/themes/twentyseventeen

Somehow your WordPress installation has X as the active theme, but the WordPress get_template_directory function is returning the path to twentyseventeen instead. You’ll need to reach out to your host to resolve why themes are not properly activating. You can give them a link to this thread for reference.

thanks for looking into, ill contact dreampress and see what they say, thanks

Let us know how it goes.

Thanks!

Well that didnt go that well, here was there response:

Thanks for contacting tech support and I’m sorry to hear about the issue.
We’re limited in our support with theme issues. However, based on your
description, I recommend to purge Varnish cache. For further information
and instructions please visit:
https://help.dreamhost.com/hc/en-us/articles/215300647-How-do-I-purge-the-DreamP ress-cache-

I did that, nothing, reinstall x theme, nothing. I also noticed that when i install the theme it doenst install the “Addon” Section, nor does it install cornerstone, any thoughts? new hosting?

thanks

@spaceship123 I’m sorry to hear they couldn’t help. You may need to press them to get a senior representative involved. A varnish cache deals completely with the front end and wouldn’t be related to a WordPress function misbehaving like that.

This isn’t a theme issue, but rather what appears to be a problem with WordPress being confused about which theme is active.

I noticed you have an object cache installed. Did you add this, or did it come with your hosting? Clearing that could help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.