Problem with concrete themes and file names
Permalink
Hi all,
We created a theme with a page type called "Home". That was the handle. Everything worked fine on development but when we deployed it from our macs to our linux server, we kept getting a blank page. No error message, no body tags, no server error, nothing in the apache logs, just a blank page.
I"m documenting this so if anyone has this problem, they'll have the solution, and also to gripe a bit. The issue was that the Page Type handle was "Home" but the filename was home.php. It was a case sensitivity issue. The mac file system was not case sensitive, but the linux was.
The Concrete5 cms should have at the very least, thrown the exception that occurred behind the scenes. Even better, it should have thrown a custom exception like "Your page type wasn't found on the file system" or something. But I got no feedback from the system what we were doing wrong. Exceptions should never be swallowed or hidden. So anyway thats my gripe. I tried turning on error messages in index.php and config.php but to no avail, so I'm assuming concrete5 was hiding the exception.
Please, please show exceptions by default! Don't sweep them under the rug! If there is some configuration setting where I can turn this on please let me know.
Thanks,
Craig
We created a theme with a page type called "Home". That was the handle. Everything worked fine on development but when we deployed it from our macs to our linux server, we kept getting a blank page. No error message, no body tags, no server error, nothing in the apache logs, just a blank page.
I"m documenting this so if anyone has this problem, they'll have the solution, and also to gripe a bit. The issue was that the Page Type handle was "Home" but the filename was home.php. It was a case sensitivity issue. The mac file system was not case sensitive, but the linux was.
The Concrete5 cms should have at the very least, thrown the exception that occurred behind the scenes. Even better, it should have thrown a custom exception like "Your page type wasn't found on the file system" or something. But I got no feedback from the system what we were doing wrong. Exceptions should never be swallowed or hidden. So anyway thats my gripe. I tried turning on error messages in index.php and config.php but to no avail, so I'm assuming concrete5 was hiding the exception.
Please, please show exceptions by default! Don't sweep them under the rug! If there is some configuration setting where I can turn this on please let me know.
Thanks,
Craig