by
KK » Sun Feb 02, 2014 1:37 pm
Hi Mike,
It seems Couch is really having trouble figuring out the physical paths of files.
It is a very very rare occurrence but can happen on certain server configurations.
The solution, I am afraid, involves a little bit of extra work.
It is to help Couch a little by explicitly letting it know the template's name.
This is how we do it -
As you know all Couch managed templates begin with a mandatory
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
Please place the following line immediately before the above mentioned line
- Code: Select all
<?php define( 'K_TEMPLATE_NAME', 'actual_name_of_your_template.php' ); ?>
So, taking the example of your 'media.php', the code at the start of the template will now become -
- Code: Select all
<?php define( 'K_TEMPLATE_NAME', 'media.php' ); ?>
<?php require_once( 'couch/cms.php' ); ?>
Of course, you have renamed the 'couch' folder to 'azdmin' so that needs to be taken into account.
Please try it and let me know if this helps.
Also, would it be possible for you to grant me access to your site?
I'd really like to dig further into this problem and see what is throwing Couch's calculations off.
Thank you very much.