Forums

[resolved] Fatal error:Call to undefined function wp_is_mobile (22 posts)

  1. TinTeddy
    Member
    Posted 11 months ago #

    Sorry to have to ask, but I can't get to my blog and am getting very stressed now. I am new to WordPress, please bear this in mind.

    When I try to access my wp-admin dashboard thing to update my blog I get an error message: Fatal error: Call to undefined function wp_is_mobile() in D:\Hosting\9251946\html\tinteddy\wordpressdir\wp-admin\index.php on line 22

    I update WordPress to the lateset version yesterday evening, I can only assume that is what has caused this.

    I have read a couple of posts and tried the following.

    I renamed the themes folder as MYTHEME-old - still get same error
    I renamed the plugins folder as plugins.hold - still same error

    Again, I am a beginner with all this code stuff. If anyone could please give me some information on how to edti my blog I would be so grateful, it means a lot to me.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    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

  3. TinTeddy
    Member
    Posted 11 months ago #

    I have done that, as said above.

    I think I have now solved it - I found the tmp file from the upgrade and used that to copy the files over. So now back where it was before upgrade - working!

    Thank you for your help anyway.

  4. WraithKenny
    Member
    Posted 11 months ago #

    having same issue on a few sites.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Please post your own topic.

  6. nickam
    Member
    Posted 11 months ago #

    for me the problem plugin was "sitepress-multilingual-cms"... once i changed the name or deleted it up and running again.

  7. Skallagrimson
    Member
    Posted 11 months ago #

    Had the same problem: Fatal error: Call to undefined function wp_is_mobile() in D:\Hosting\…

    Did ––> re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

    Working again now. Thank you esmi

  8. TinTeddy
    Member
    Posted 11 months ago #

    I still do not have a working copy of WordPress :( It was partly working, but I couldn't add tags or images without it complaining about missing files. So...

    I installed Filezilla. I took a fresh downloaded copy of WordPress 3.4.

    I copied the folders wp-admin and wp-includes into my host directory, on top of the old ones that were already there. I also copied the loose files that are in the wordpress main directory - in other words I copied everything except the wp-content folder, as suggested above.

    Now when I try to go into wordpress it tells me it needs to update the database. I click the Update Database button and get an error:

    Fatal error: Class 'WP_Theme' not found in D:\Hosting\9251946\html\tinteddy\wordpressdir\wp-includes\theme.php on line 106

    I tried renaming my theme as yoko-old. But this still happens.

    I have also renamed the plugins folder plugins.hold, as suggested.

    I still get the request to update database, then that error message.

  9. TinTeddy
    Member
    Posted 11 months ago #

    Is there any way to clear it, reinstall and then drop my blog posts back in?

    I feel hopelessly out of my depth and just want to be able to use my blog. Nothing technical, just basic posts :(

  10. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Delete the wp-admin & wp-includes folder as well as all files in your root folder with the exception of wp-config.php and your .htaccess file (if you have one). Then re-upload all files & folders - except the wp-content folder - from a fresh download of WordPress.

  11. TinTeddy
    Member
    Posted 11 months ago #

    Thank you, esmi, I am doing that now... (nervously)

  12. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    As long as you stay away from the wp-content folder, you should be fine. I also recommend that people make backup copies of their wp-config.php and root .htaccess files for safekeeping - just in case they get a little carried away with the delete button.

  13. TinTeddy
    Member
    Posted 11 months ago #

    Yay, everything seems to be back to normal in my dashboard now. I see my posts etc. And no error messages.

    But my blog is not online. When I go to the address there is nothing at all.

  14. TinTeddy
    Member
    Posted 11 months ago #

    I backed up the whole thing before poking. I don't seem to have had an .htaccess file. And I copied my old wp-config.php file over so using that.

  15. TinTeddy
    Member
    Posted 11 months ago #

    Oooh, i renamed the theme back to what it was.. and now i see my blog again!

    Thank you so much, esmi *hugs you like mad*

  16. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Glad I could help :-)

  17. bradfordgl
    Member
    Posted 11 months ago #

    I am having same issues, so no resolution except deleting the install except the wp-content folder and then reinstalling WordPress? Seems extreme. Doesn't WordPress have some sort of solution for this issues?

  18. Rev. Voodoo
    Volunteer Moderator
    Posted 11 months ago #

    Doesn't WordPress have some sort of solution for this issues?

    That IS the solution....

    If you are having the exact same issue, that is

    Sometimes files get corrupted or missed - no fault of WordPress, and nothing that can be done aside from reinstalling the bad files

  19. overbakedmuffin
    Member
    Posted 10 months ago #

    I had same issue as TinTeddy had while updating to 3.4.1, then I tried the method that esmi suggested(delete wp-admin, wp-include folders and the root files, then upload the fresh files downloaded from WP), it works!!! Much appreciate you guys' help to solve this problem!

  20. PacificPublishing
    Member
    Posted 10 months ago #

    I tried this method and now I get this error when trying to login to WordPress:

    http://fitnessvortex.com/wp-admin/
    Warning: require(/home/content/f/v/s/fvsschone/html/wp-includes/class-wp-theme.php) [function.require]: failed to open stream: No such file or directory in /home/content/f/v/s/fvsschone/html/wp-settings.php on line 115

    Fatal error: require() [function.require]: Failed opening required '/home/content/f/v/s/fvsschone/html/wp-includes/class-wp-theme.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/f/v/s/fvsschone/html/wp-settings.php on line 115
    -------
    f/v/s/fvsschone is something I setup with GoDaddy when starting the site. I'm freaking out. Please help.

  21. mjt2
    Member
    Posted 8 months ago #

    Great Help @ESMI. Concise and to the point. Had me back up in running in 5min!

    Thanks

  22. glennsnoise
    Member
    Posted 8 months ago #

    I am having the same issue, but since I can't log in to wp-admin, I can't change my theme. This is my first WP publishing attempt. I used CyberDuck to transfer my files from localhost to host, and now when I try to login to mysite/wp-admin, I get this error:

    Fatal error: Call to undefined function wp_is_mobile() in /home/glenn235/public_html/wp-admin/index.php on line 24

    I don't know how to fix this, and can't log in. Also, I am not sure how to post my own thread/issue in this forum. This was the closest match I could find to my issue.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.