• I’ve searched and searched but can find no definitive answer to this question. This is another include problem.

    I have WP working on one site. I want to set up a new WP installation on another domain (different site). I unzipped WP into a folder named Wpj. I have created a new DB, set the user, and entered the configuration into wp-config.php.

    I keep getting errors that relate to undefined functions and it appears this is due to required files not getting included.

    I set up a test and get this info:

    getcwd = /home/jimryan/public_html/Wpj
    $_SERVER[‘DOCUMENT_ROOT’] is /home/jimryan/public_html

    I modified .htaccess and added these paths to the PHP include path:
    get_include_path() = /usr/lib/php:/usr/local/lib/php:/home/jimryan/public_html/Wpj:/home/jimryan/public_html/Wpj/wp-includes:/home/jimryan/public_html/Wpj/wp-admin

    No matter what I do, install.php dies with this:
    Fatal error: Call to undefined function: get_option() in /home/jimryan/public_html/Wpj/wp-includes/template-functions-general.php on line 116

    I have also tried changing the define of ABSPATH to the actual path string instead of using dirname(__FILE__).

    I’ve also tried copying over my wordpress files from the other site since I know those work. I then entered the new site’s DB configuration. This gives the same error.

    I’m stumped. Is this site specific? Any ideas?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • “Fatal error: Call to undefined function: get_option()”

    I would usually say this is caused by a faulty file transfer to the server – tried deleting and reuploading ?

    Thread Starter banyan

    (@banyan)

    Me again with a followup. Site running PHP 4.4, Mysql 4.0.22.

    Did you try the file replacement ?

    Thread Starter banyan

    (@banyan)

    Hi

    Yup. Just did and it worked fine. Wonder what was missing or misplaced? Oh well, at least I know a bit more about WP now ??

    Thanks

    Finding the same problem with this file: edit-form-advanced.php Fatal error: Call to undefined function get_option() in D:\content\onlinebloghost2341\wp-admin\edit-form-advanced.php on line 23

    I tried replacing from the zip file, but nada. Cool tool tho!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Installation problems with path’ is closed to new replies.