• Greetings,

    I’ve done a search here in the support forums, and none of the advice I’ve found has been helpful.

    First, I downloaded WordPress 2.6.2, unzipped, and uploaded via FTP. I modified wp-config.php. When trying to install, I get the following:

    Fatal error: Call to undefined function: is_admin() in [path removed]/wp-admin/includes/comment.php on line 110

    (for clarity, I removed the path, the error doesn’t actually say [path removed])

    I searched the support forum, and every answer basically says “reupload”. So I’ve tried killing everything, and reuploading. I’ve tried uploading the zip file and unzipping on the server. I’ve tried uploading the tarball and untarring on the server. I’ve tried unzipping on a different machine and uploading to the server. Always get the same error no matter what permutation I attempt.

    Does anyone have a better suggestion than “try it again”?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hmm…where are you getting your wordpress from? Maybe it’s a bad source. Try downloading it from here:

    http://wordpress.org/download/

    Copy and paste your wp-config here as well, maybe there’s something wrong in there.

    make sure that you have correctly uploaded wp-includes/query.php —

    I have the same problem.
    – Downloaded on server using wget http://wordpress.org/wordpress-2.6.3.tar.gz
    – tar -xzvf wordpress-2.6.3.tar.gz
    – renamed the dir ‘wordpress’ to ‘blog’
    – made chmod 777 all just to be safe
    – created db nuresume_blog with user ivyb / *****
    – ran http://www.nuresume.com/blog/wp-admin/install.php

    The page I get repeats my wp-config.php with the error as follows:

    // ** MySQL settings ** // define(‘DB_NAME’, ‘nuresume_blog’); // The name of the database define(‘DB_USER’, ‘ivyb’); // Your MySQL username define(‘DB_PASSWORD’, ‘*****’); // …and password define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value define(‘DB_CHARSET’, ‘utf8’); define(‘DB_COLLATE’, ”); // Change SECRET_KEY to a unique phrase. You won’t have to remember it later, // so make it long and complicated. You can visit https://www.grc.com/passwords.htm // to get a phrase generated for you, or just make something up. define(‘SECRET_KEY’, ‘dfdfdfsdfsdfsd90989889809888089’); // Change this to a unique phrase.
    Fatal error: Call to undefined function is_admin() in /usr/local/www/vhosts/nuresume.com/httpdocs/blog/wp-admin/includes/comment.php on line 110

    I’ve done this several times carefully but keep getting the same error again.

    What am I missing ?

    Udayw

    The function is found in these two files.

    is_admin()
    Defined at:
    
        * /wp-includes/query.php -> line 39
        * /wp-admin/gears-manifest.php -> line 15
    
    Referenced 9 times:
    
        * /wp-includes/vars.php -> line 16
        * /wp-includes/link-template.php -> line 632
        * /wp-includes/query.php -> line 727
        * /wp-includes/query.php -> line 1344
        * /wp-includes/theme.php -> line 615
        * /wp-includes/post-template.php -> line 58
        * /wp-includes/script-loader.php -> line 107
        * /wp-includes/canonical.php -> line 42
        * /wp-admin/includes/comment.php -> line 110

    Check that all of these files made it to your server AND that the permissions are 0644.

    Do this by manually deleting the files. DO NOT simply overwrite them with FTP as the server can be setup to prevent this silently no matter what your settings are…

    Fingers crossed.

    I got this problem while installing.

    I copied wp-config.php empty file to server then i got this problem

    Try to remove wp-config.php while fresh installation

    and give full permission to blog folder to create a wp-config.php file itself in installation process.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Call to undefined function: is_admin’ is closed to new replies.