Skip to main content
Topic: Using "_" in table or field names causes Pages to not generate anymore (Read 1092 times) previous topic - next topic

Using "_" in table or field names causes Pages to not generate anymore

Using "_" in table or field names causes Pages to not generate anymore
V 2.6

Re: Using "_" in table or field names causes Pages to not generate anymore

Reply #1
I have a ton of _ in my test tables and they all work fine and are generated properly
Using 2.6.1

Re: Using "_" in table or field names causes Pages to not generate anymore

Reply #2
wierd.
When i use _ i get a 404 on all pages except the home page. When i remove the _ in the fieldname or tablename all pages are found.

Re: Using "_" in table or field names causes Pages to not generate anymore

Reply #3
That's strange. Something else must be the cause not underscore. Unless you undercore("_") is not actually an underscore or non utf-8 character.

Re: Using "_" in table or field names causes Pages to not generate anymore

Reply #4
Works fine on Windows test server, but uploading to a Linux based demo server shows the 404 Error.

Filename is Xyz_AbcController.php URL in the browser is Xyz_abcController.php .
So after an _ the next letter (in the filename) is Capitalized but the URL generated has a lowercase letter.
Linux is Case Sensitive in filenames, whereas a typical WAMP setup is not.

Workaround Rename the files to whatever the URL Case is before uploading to the server.  (My version of Windows seems to keep the correct case after 1 rename.)