Forums

Fatal error: Call to undefined function wp_is_mobile() in /home/content/15/77955 (31 posts)

  1. wendygambone
    Member
    Posted 10 months ago #

    Not sure what to do. I tried reading what others sis for this error and I am not sure what some of it means. Could anyone break things down a little more. I am hosting through GoDaddy. And I don't want to really screw anything up that cant be fixed. Thanks!!

  2. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    Can you post the full error message?

  3. wendygambone
    Member
    Posted 10 months ago #

    Fatal error:Call to undefined function wp_is_mobile() in /home/content/15/77955

  4. wendygambone
    Member
    Posted 10 months ago #

    Fatal error: Call to undefined function wp_is_mobile() in /home/content/15/7795515/html/wp-admin/index.php on line 22

  5. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    Try replacing your index.php file located in your wp-admin directory with a new one.

  6. wendygambone
    Member
    Posted 10 months ago #

    Ok, I will try, How do I do that? Thanks!

  7. wendygambone
    Member
    Posted 10 months ago #

    What do I replace it with?

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 10 months ago #

    the call to wp_is_mobile on line 22 is correct...
    It is defined around line 100 of vars.php in wp-includes folder... so it should be fine

    Have you tried deactivating all plugins and switching to 2011 theme to test your site, in case of a conflict

  9. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    Download the .zip of wordpress 3.4

    Extract it to your computer, and use FTP or CPanel to overwrite the original.

  10. wendygambone
    Member
    Posted 10 months ago #

    REV, Can I deactivate from FTP File Manager on host site? I cant get to my dashboard at all.

    Josh, I downloaded WP 3.4 so now I upload it to my File Manager? Will it automatically override whats there now?

  11. wendygambone
    Member
    Posted 10 months ago #

    Also, I see the upgrade in my root directory, what if I just delete it? Will it then revert back to the old version?

  12. Rev. Voodoo
    Volunteer Moderator
    Posted 10 months ago #

    to deactivate all plugins at once, just rename the plugins folder to something else

    wp-content -> plugins, I usually just rename to plugins.OLD

    Make a new empty folder named plugins

  13. wendygambone
    Member
    Posted 10 months ago #

    Okay, then what? And how do I make a new folder?

  14. wendygambone
    Member
    Posted 10 months ago #

    HELP?? Anyone?? I really need to work on my site but I cant get in due to this error. I changed all plugins to plugins.old and nothing happened. I uploaded WP 3.4 and overwrote existing files in the upgrade and nothing. I am at a loss and VERY frustrated. And not very savvy when it comes to back-end WP stuff. Why would an upgrade cause this much trouble!?!?!

  15. BurgerConquest
    Member
    Posted 10 months ago #

    Having same problem.

    I tried changing the plugins folder to a different name. That did not work.

    Called GoDaddy. They could not help either.

    Stuck and frustrated. Any help would be greatly appreciated.

  16. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    What theme are you using?

    Try using either FTP or CPanel to rename your current themes folder. This will force your WP installation to use the default theme.

    It's possible the themes you guys are using don't provide support for the wp_is_mobile function.

    1. Navigate to wp-content/themes.
    2. Find the folder for your current theme, and rename it to something different.

    Now, go back and try to log into your admin panel.

  17. BurgerConquest
    Member
    Posted 10 months ago #

    Which is / where do I find my "current theme"?
    How do I change it?

    See screen shot from Godaddy

  18. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    So you are already using the twenty eleven theme? Then scratch my suggestion above.

    Hmmm... Try downloading a fresh copy of wordpress 3.4. Extract it to your desktop. Replace the entire contents of the wp-admin and the wp-includes directories. DO NOT mess with the wp-content directory.

    Also, you might want to try to rename your plugins folder. Navigate to wp-content and change the plugins folder to something like plugins-temp. This will disable all your plugins, in case it's a plugin conflict.

    Try both of these and let me know.

  19. BurgerConquest
    Member
    Posted 10 months ago #

    @Josh
    - I very much appreciate your help. All of this reads like gobbledygook to me.

    So you are already using the twenty eleven theme? Then scratch my suggestion above.
    - If you say I am, then I am. I wouldn't know.

    Hmmm... Try downloading a fresh copy of wordpress 3.4. Extract it to your desktop.
    -Downloaded
    - Extracted
    - On Desktop

    Replace the entire contents of the wp-admin and the wp-includes directories. DO NOT mess with the wp-content directory.
    - Don't know how to do this. Can it be done in my GoDaddy account?

    Also, you might want to try to rename your plugins folder. Navigate to wp-content and change the plugins folder to something like plugins-temp. This will disable all your plugins, in case it's a plugin conflict.
    - Tried this on the phone with GoDaddy and it did not work.

    Try both of these and let me know.

  20. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    You can do it via GoDaddy.

    Browse to your root directory, and you should see the following three folders (among others), wp-content, wp-admin, wp-includes.

    Delete the wp-admin and the wp-includes and upload the new ones from your desktop.

    Leave the wp-content directory alone.

  21. BurgerConquest
    Member
    Posted 10 months ago #

    Browse to your root directory, and you should see the following three folders (among others), wp-content, wp-admin, wp-includes.
    Delete the wp-admin and the wp-includes
    Leave the wp-content directory alone.
    - Done

    and upload the new ones from your desktop.
    - How do I do this?

    When I get "Destination Selected: html" I "choose file" and a window opens. I click to my desktop, I click to "wp-admin" and I get this:

    Click for screenshot

    Like I said, I really don't know what I am doing so I apologize for need a step by step here but that really is what I need.

    Thank you.

  22. BurgerConquest
    Member
    Posted 10 months ago #

    And for the record, this is what my site looks like now

    Click for Screenshot

  23. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    I'm not sure how the CPanel with GoDaddy works. I've never used it before.

    You should have the option to upload files from your computer. You want to upload those two folders into the same directory holding the wp-content folder.

    You may need to call GoDaddy for the specifics on "how-to".

  24. BurgerConquest
    Member
    Posted 10 months ago #

    Called GoDaddy. They helped me. Did not work. Now getting this when I try to login:

    Fatal error: Class 'WP_Theme' not found in /home/content/b/u/r/burgerconquest/html/wp-includes/theme.php on line 106

  25. Lee_Elliott
    Member
    Posted 10 months ago #

    Was having the same error BurgerConquest. This thread helped http://wordpress.org/support/topic/upgrade-to-34-from-311-fatal-error?replies=8#post-2934061
    Replace the wp-settings.php file and that worked for me, but must say that all of Josh's advice helped get me to the point where this worked.

    Thank you Josh! Much appreciated.

  26. Josh (Ultimate Tinymce)
    Member
    Posted 10 months ago #

    My pleasure Lee.

    @BurgerConquest,
    Let us know how Lee's solution works for you.

  27. wendygambone
    Member
    Posted 10 months ago #

    BurgerQuest,

    Very frustrating, I know. I went through all of the above and nothing. But, I was able to finally get into my dashboard by going in with http://yoururl.com/wp-admin/post-new.php, I think I got lucky. But once I got into there I was able to open some of the commands, like install themes and at the top of the page it said update failed to fully install click here to re-upload and when I did it all stared working again. Like I said, I might have just gotten lucky but you can give it a try. Good luck! Thanks Everyone for your help!

  28. BurgerConquest
    Member
    Posted 10 months ago #

    Thanks all. Still in the process

    After deleting the wp-admin and the wp-includes, then downloading an new wordpress 3.4 & re-uploading & it not working, I called GoDaddy.

    They suggested I create a new folder for my wp-content and then copy the content over. From there, they wanted me to try a totally brand new upload.

    According to my screen, my content is still copying and it's been 13 hours with no end in sight. Very frustrated. Until this is done, I am not doing anything else for fear of losing the site entirely.

    If anyone else has a better suggestion, I'll gladly take it. If you live in NYC and help me, I'll gladly buy you some drinks at the bar I own.

    Thanks

  29. lee.shalako
    Member
    Posted 10 months ago #

    i found the answer here

    http://wordpress.org/support/topic/upgrade-to-34-from-311-fatal-error?replies=13

    doing the wp-settings.php fixed it for me

  30. tamal
    Member
    Posted 10 months ago #

    Solution of Fatal error: Call to undefined function wp_is_mobile():

    You need to rename your file wp-admin and re upload the folder wp-admin file from you fresh code that's all

    :)

Reply »

You must log in to post.

About this Topic

Tags