.htaccess in templates buggy?

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

.htaccess in templates buggy?

Post by svasti » Mon Apr 27, 2015 7:04 pm

Hi mates,

I am now coming across the second xh-website where the .htaccess in the templates folder disables the template and the site appears. Fortunately we have the emergency template :)

The site I am working on now is:
PHP 5.5.9-1ubuntu4.6
rigid rights mamagement: you have to give 777 to practically everything

edit: should have been: the site disappears, actually the template is not used and the site is shown with the emergency template.
Last edited by svasti on Mon Apr 27, 2015 7:40 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: .htaccess in templates buggy?

Post by cmb » Mon Apr 27, 2015 7:26 pm

svasti wrote:I am now coming across the second xh-website where the .htaccess in the templates folder disables the template and the site appears.
The .htaccess isn't supposed to have any effect on processing the template with PHP.
svasti wrote:rigid rights mamagement: you have to give 777 to practically everything
That's more likely the problem. I suspect that is_readable($pth['file']['template']) would return false. You can verify this at the end of cms.php just before $temp = fopen($pth['file']['template'], 'r');
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply