• leilam

    (@leilam)


    My site is leilameyer.com. In Settings > Reading, I set my front page display to a static page and my posts page to a page called Blog.

    Everything works as it should, most of the time, but once in a while an empty directory called /blog gets automatically created at the root of my public_html directory. When this happens, it breaks the link to my posts page. I have to delete the empty /blog directory, and then everything’s fine until it happens again.

    This has happened twice now. The last time it happened, I had not made any changes to my site for some time, so I don’t know what’s triggering the directory to be created.

    I would like to know how to prevent this from happening.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter leilam

    (@leilam)

    This has happened twice again since my original post. It happened today, and I have not made any changes to my blog settings for over a week.

    Thread Starter leilam

    (@leilam)

    Grr! It just happened again! I have not touched any of my blog settings since the last occurrence, three days ago.

    Can anybody tell me why this is happening and how to stop it?

    That shouldn’t happen and WordPress can’t be the cause of that…

    I think you might be hacked… or your running some very terrible plugins. Try turning all of your plugins off and see if the problem persists. If not; try turning them on again one-by-one and see if the problem persist;

    In any case you can use a fresh install of the WordPress core! again; I think you might be hacked, so the plugin thing might work, but extreme measures are a bit more effective:
    Re-install WordPress, change your FTP & Database passwords and check the permissions on your ‘public_html’ directory (right click -> info (or permissions, depending on your FTP client). Make absolutely sure that they are set on 755. If they’re on 777 change them immediately!

    Thread Starter leilam

    (@leilam)

    Thanks for your reply.

    I have temporarily deactivated my plugins to see if one of them might be the source of the problem.

    I don’t think I’ve been hacked. If I have been, the hacker is doing nothing but creating an empty /blog directory, which seems a bit pointless. I’ve checked my directory permissions, and they’re fine, and I’ve changed my passwords just in case.

    Creating that folder might look pointless; but if it’s folder permissions are opened up (777), that would still mean an outside source could inject code, files and other nasty stuff in there…

    Can you see your .htaccess file in WordPress’ root-folder and if so, can you see any files in the blog folder where the filename begins with a dot?

    Thread Starter leilam

    (@leilam)

    Yes, I can see my .htaccess file in the WordPress root directory, and it looks normal.

    The /blog directory that gets created is always completely empty: no files, no sub-directories. I can’t look at its permissions or anything now because I already deleted it. If it gets created again, I’ll check them.

    Thanks.

    Thread Starter leilam

    (@leilam)

    It just happened again. The only plugin I have activated is Askimet, and I would be surprised if it is the cause of the problem. I could leave it deactivated for a while just to be sure, but the spam drives me crazy.

    The permissions are 755 on the /blog directory that got created automatically again in /public_html. As usual, the mysterious /blog directory is completely empty.

    I suspect this is a WordPress bug related to having a static front page that is not my blog post page.

    Thread Starter leilam

    (@leilam)

    The problem is solved, and it wasn’t a WordPress bug as I had suspected. I had an old blog subdomain configured for my site, and somehow that was creating the /blog directory once in a while (although I still don’t know why). I deleted the subdomain since I don’t need it anymore.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Empty /blog directory being created’ is closed to new replies.