Forums

Fatal Error Upgrading to 2.9.2 (40 posts)

  1. rebakahblam
    Member
    Posted 2 years ago #

    I get the following error and have no idea what to do about it when upgrading my site (beyondsurrendered.com)

    Fatal error: Call to undefined function: is_admin() in /homepages/40/d205009528/htdocs/BeyondSurrendered/wp-includes/vars.php on line 16

    I made a back up of wordpress files and my database. I'm on 1and1 fyi.

    I'm quite the noob so any help would be greatly appreciated!
    -reba.

  2. rebakahblam
    Member
    Posted 2 years ago #

    Also - I had to manually upgrade because the autoupgrade never works...

  3. songdogtech
    Member
    Posted 2 years ago #

    Try reuploading new copies of the WP files and folders to upgrade again. Some must not have completely uploaded.

    But don't copy over wp-content if you have a custom theme.

  4. rebakahblam
    Member
    Posted 2 years ago #

    I re-uploaded...still getting the same errors. My database is MySQL5.0.

    When I go to /wp-login.php I get the error:
    Fatal error: Call to undefined function: is_admin() in /homepages/40/d205009528/htdocs/BeyondSurrendered/wp-includes/vars.php on line 16

    When I go to /wp-admin/upgrade.php like it says in the installation instructions I get the same error.

    It now says in mysqul databases that the one for my current site is not available.

    Anyone have any idea?
    -reba.

  5. songdogtech
    Member
    Posted 2 years ago #

    For 1and1 you need to add this to the top of your .htaccess file with a plain text editor

    AddType x-mapp-php5 .php

  6. rebakahblam
    Member
    Posted 2 years ago #

    Forgive my complete and utter ignorance - but is the .htaccess file in the wordpress files or in part of my web server?

    Thanks for your help so far!
    -reba.

  7. rebakahblam
    Member
    Posted 2 years ago #

    It seems it's on 1and1 through apache? Am I understanding this correctly? Forgive my ignorance - I'm building this site on my own since my webmaster abandoned me on my last site.
    -reba.

  8. midjin
    Member
    Posted 2 years ago #

    is that possible different view of dashboard between the chrome browser and mozilla firefox ? i don't understand why my post menu dashboard is unseen at the chrome browser and shown up at firefox.

  9. Chris_K
    Member
    Posted 2 years ago #

    @rebakahblam -- your .htaccess file is the same directory as your WordPress install.

  10. songdogtech
    Member
    Posted 2 years ago #

    @midjin: start a new thread with your problem.

    @rebakahblam: How are you uploading the WordPress files? With FTP? Filezilla? You have to be absolutely sure you are uploading them in the right place:
    http://codex.wordpress.org/Uploading_WordPress_to_a_remote_host

  11. rebakahblam
    Member
    Posted 2 years ago #

    I'm using filezilla. Is .htaccess in a sub folder of the install? I tried searching in the folder and didn't find it. I'll look again after this board meeting.

  12. songdogtech
    Member
    Posted 2 years ago #

    .htaccess is - or should be - at the same level of wp-config, wp-content, etc.

    Do you know if you are on Windows or Linux hosting?

  13. Chris_K
    Member
    Posted 2 years ago #

    Oh, and if you haven't changed Permalinks from Default (see Settings -> Permalinks) you probably won't have an .htaccess file.

  14. songdogtech
    Member
    Posted 2 years ago #

    Chris, Good point.... Might have to create the file, but you can create a new file in FileZilla, just be sure there's a "dot" in front of the file name.

    But if you're on Windows hosting, the existence of an .htaccess file depends on if 1and1 has .htaccess implemented for WIndows.

  15. rebakahblam
    Member
    Posted 2 years ago #

    I have the basic package with linux hosting. I searched the wordpress installation file and did not find a .htaccess file. I guess I have to create it then? How can I go about doing this?

    Thanks again for all of your help so far - I really appreciate it!
    -reba.

  16. rebakahblam
    Member
    Posted 2 years ago #

    Also - I have changed permalinks already - thanks though Chris_K

  17. songdogtech
    Member
    Posted 2 years ago #

    If you changed permalinks to anything other than default, you will have an .htaccess file. .htaccess is not in the WordPress install file or folder that you upload; it is in the root of your web directory, and created by WordPress. The dot in front of the name is important; be sure FileZilla is set to show normally invisible files.

  18. rebakahblam
    Member
    Posted 2 years ago #

    I found the .htaccess file finally! Yay! Now - onto the real work. I opened it in Dreamweaver (it is a binary file ja?).

    This is what it says:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Where do I put AddType x-mapp-php5 .php - above the #begin or after?
    -reba.

  19. Chris_K
    Member
    Posted 2 years ago #

    Right above
    # BEGIN
    or right after
    # END

    If you put it between them you'll just lose it next time you touch your permalinks...

  20. rebakahblam
    Member
    Posted 2 years ago #

    Okay, I added it:

    AddType x-mapp-php5 .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    But I'm still getting the same error - do I have to delete the spaces or? I saved it as .htaccess and overwrote the other file - still an error?
    -reba.

  21. songdogtech
    Member
    Posted 2 years ago #

    If you want, contact me and I'll look at it.

  22. rebakahblam
    Member
    Posted 2 years ago #

    I think I may just give up on 2.9.2. Everytime i try to upgrade somehing like this happens. I wonder if the auto upgrade is just not compatible with m browser? I use firefox.

  23. songdogtech
    Member
    Posted 2 years ago #

    The auto upgrade has little to do with your browser and probably everything to do with 1and1 not playing well with WP....

  24. Safirul Alredha (zeo)
    Member
    Posted 2 years ago #

    rebakahblam, contact your hosting support. Ask them politely to install WP for you. I'm sure they will.

  25. rainer23
    Member
    Posted 2 years ago #

    Auto-upgrade mostly fails when your hosts has turned his servers "safe-mode on". In US lots of servers are "safe-mode off", in Europe almost all have "safe-mode on".

  26. rebakahblam
    Member
    Posted 2 years ago #

    zeo - I don't need it installed I need it upgraded. I am going to try going through it again.

    rainer23 - I'm in the US.

    I'll try calling 1and1 but I doubt they'll be much help. I would switch hosts but they have been the cheapest one I have found and I wouldn't even know how to switch my other site with its database and such to a new host.

    Here's to crossing our fingers! :)
    -reba.

  27. rebakahblam
    Member
    Posted 2 years ago #

    I did it all over again - even re-downloaded wp and overwrote all files in case a theme was affecting it. Maybe I uploaded my .htaccess file to the wrong directory? Everywhere it says to the root of your wordpress file. Is that my sites file then? For instance...I have site>wordpress>wordpress folders and i uploaded the .htaccess to the site folder - is that not the root of my blog?
    -reba.

  28. songdogtech
    Member
    Posted 2 years ago #

    Everywhere it says to the root of your wordpress file.

    Folder, not file.

    Your .htaccess file goes the same directory as your WordPress install. So if you do have a folder called wordpress that's inside site, .htaccess goes in wordpress, not site.

  29. rebakahblam
    Member
    Posted 2 years ago #

    It still isn't working.

    I contacted 1and1 but have not heard back yet.

    -reba.

  30. weddingcakes
    Member
    Posted 2 years ago #

    Do a full database backup and then delete all files. Do a fresh install, and backup your database. This is a pretty much a last resort thing, but mostly i end up doing this when ever its messed up.

    however, do wait for your hosting to reply back, and if they don't reply, i guess it should be time for you to look for a new host...

    i hope you have the cpanel/fantastico option in the 1and1 hosting?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.