WordPress.org

Ready to get started?Download WordPress

Forums

Strictly Google Sitemap
[resolved] Cron.php using WordPress in a subfolder (2 posts)

  1. robbierzz
    Member
    Posted 3 years ago #

    Hello,

    I just installed this plugin 3 days ago and wanted to create the sitemap every day at 6:00 am. However when I tried to reach the URL given in the setup part I got fopen errors on wp-config.php.

    When I looked into the cron.php file I found the following:
    require_once($_SERVER["DOCUMENT_ROOT"] . "/wp-config.php");
    The $_SERVER["DOCUMENT_ROOT"] does not give the entire path to the WordPress installation directory. In my case the installation of WordPress is done in a subfolder domain.com/wordpress/. I just changed this line to:

    require_once("../../../wp-config.php");

    Since WordPress knows the following structure; wordpressroot/wp-content/plugins/strictly-google-sitemap/

    I suppose more people will get onto this problem.

    http://wordpress.org/extend/plugins/strictly-google-sitemap/

  2. Strictly Software
    Member
    Plugin Author

    Posted 2 years ago #

    This was the first plugin I ever wrote and I never realised so many people use different installs and place their folders in different places which is why I never considered this as an issue as I have a standard installation.

    I am no longer supporting this plugin as
    a) no-one donate money towards development.
    b) it works for me and that is the only reason I wrote it.
    c) if people want specific features or changes to the code then I do believe WordPress is Open Source so they can either change the code as much as they like OR pay me for doing the work.
    d) I have just found out I have Cancer so its not really high on my list of priorities.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic