Support » Plugin: Strictly Google Sitemap » [Plugin: Strictly Google Sitemap] Cron.php using WordPress in a subfolder

  • Resolved robbierzz



    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 I just changed this line to:


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

    I suppose more people will get onto this problem.

Viewing 1 replies (of 1 total)
  • Plugin Author Strictly Software


    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.


Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Strictly Google Sitemap] Cron.php using WordPress in a subfolder’ is closed to new replies.