get_home_path() fails with PHP as CGI (3 posts)

  1. Derik
    Posted 10 years ago #

    The get_home_path() function returns the wrong path when using an alternate homepage location (outside the wordpress installation folder) and PHP runs as CGI. This causes problems with at least the permalink functionality (.htaccess file writing) and some plugins (Google Sitemap Generator).

    I've manually altered the function to give the right path, but that's hardly a long-term solution.

  2. sasson
    Posted 10 years ago #

    Could you please tell me what is the fix?

  3. Derik
    Posted 10 years ago #

    I had to rewrite the function to return my actual home path (hard wired as a string).

Topic Closed

This topic has been closed to new replies.

About this Topic