I just made my first blog last week, it’s self hosted: http://www.theworldisabook.co.uk
Things were going fine and I set my theme as Pilcrow, then I was in the middle of installing a new theme yesterday (called Origin if I remember correctly), when I got this error message:
Fatal error: Call to undefined function wp_get_theme() in /home/thewo456/public_html/wp-content/themes/origin/library/functions/utility.php on line 119
This now comes up whenever I try to access the dashboard or actual site… On my iPad I can still see the home page of my dashboard but as soon as I try to go any further (e.g. onto plugins, or updating my version of wordpress) I get a very similar error message:
Fatal error: Call to undefined function wp_get_theme() in /home/thewo456/public_html/wp-content/themes/origin/library/admin/theme-settings.php on line 35
I have no idea what to do as I literally can’t access anything so any suggestions would be much appreciated!
First – delete the theme. YOu will need to use FTP ior a file manager if your host offers one.
Navigate to wp-content->themes and delete the theme you were trying to install, this will set you back to 2011 theme, and allow you to login
Next, update wordpress, version 3.3.2 is old
the problem here is that your new theme calls to wp_get_theme which was introduced in WP v3.4, so your new theme is not compatible with your old WP
I think that you are trying to use themes that will only work on the latest version of WordPress. Try:
– switching to the Twenty Eleven theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.
– resetting the plugins folder by FTP or phpMyAdmin.
– re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.
– running the upgrade manually via wp-admin/upgrade.php
Thanks so much for great/fast advice.
However, how do I go about doing any of those things when I can’t even get onto my dashboard to change any themes or folders etc? – Sorry I really don’t know very much about the technical aspects!
Please re-read my post above. None of the suggestions I made require you to login to your WordPress dashboard.
I have done all the things you suggested via my file manager (themes/plugins) and have regained access to dashboard – therefore managed to upgrade to the 3.4.2 version of wordpress. But the actual webpage is still blank when I try to visit my site, and when I tried to install my old theme it says:
Downloading install package from http://wordpress.org/extend/themes/download/pilcrow.1.3.zip… Unpacking the package… Installing the theme… Could not create directory. /home/thewo456/public_html/wp-content/themes/pilcrow/ Theme install failed.
… Any further suggestions would be great!
Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.
So should I delete WP from my host server and re-download it then?
Delete everything except the wp-content folder, your wp-config.php file and any root .htaccess file. Then upload the new copies of the deleted files/folders.
But how do I upload the new copies of deleted files etc? Like where do I get those from? Sorry to be stupid!
That’s great thanks. I managed to do all the uploads etc which appeared to have worked, but it is still playing up in that the site now won’t acknowledge any new pages or categories and just says ‘nothing found’ on the homepage rather than my new posts…!?
Do you have any error messages? Are any posts accessible in the back end of the site?
No all the pages/categories/posts etc are saved in my dashboard and can be edited fine, they just aren’t showing up on my actual site – sometimes even the home page doesn’t have an icon…
Do you have access to your site’s error logs? Your hosts should be able to help with this access.
- The topic ‘Fatal error shown when accessing my site or dashboard’ is closed to new replies.