Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-06 03:33:10

bcotten
Member
Registered: 2006-10-06
Posts: 12

Old placeholder file is in the way, files folder not accessible

Ok, I’ve searched all over and can’t find an answer to my issue…

After I installed, I noticed the Diagnostics tab said that the /blog/files directory was unwriteable. I looked and that directory didn’t exist at all. So, I created it and chmoded it to 777. The error went away.

I then created a files page to display files for download, etc. Then created a files section using that page. When I go to that page, I get a “403 Forbidden” error page. All my other pages work great.

I got back to the Diagnostics tab and , happy day, a new error is there saying “Old placeholder file is in the way: blahblah/blog/files”. This directory is currently empty. No files have been uploaded yet.

Thinking perhaps this was an .htaccess issue, I switched to $messy links and removed the .htaccess file. Didn’t change a thing.

I’ve run a SQL query looking for blank sections as mentioned in another post and found none.

Ideas? Have I been staring at this screen too long and missed the obvious?

Thanks for your help.

-Ben

Offline

#2 2006-10-06 05:38:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Old placeholder file is in the way, files folder not accessible

You can’t have a section named “files” and a folder named “files” – Textpattern makes Apache think they’re the same thing. You need to rename one of them (doesn’t matter which).

Offline

#3 2006-10-06 07:28:24

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Old placeholder file is in the way, files folder not accessible

What happens is: When you request example.org/files/ Apache sees the folder files and answers the request (with or without a directory listing, depending on how the webserver is configured). Textpattern never gets to see the request, and therefore cannot handle it. If we made textpattern handle all requests, this would be overly restrictive, because people couldn’t link to their own physical folders anymore. If you personally still want to do that (I do not recommend it), you can edit the .htaccess file and change the following:

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

Remove the [OR] in the first line, and completely remove the second line. So you’ll be left with:

RewriteCond %{REQUEST_FILENAME} -f

Now you won’t be able to link to directories on the server, as those requests will be handed to textpattern. You however still link to files inside directories.

Offline

#4 2006-10-06 12:25:32

bcotten
Member
Registered: 2006-10-06
Posts: 12

Re: Old placeholder file is in the way, files folder not accessible

Awesome. Thanks. I just created a section with a different name. Working fine now!

-Ben

Offline

Board footer

Powered by FluxBB