I've just moved my site from a Windows/XAMPP setup to a CentOS LAMP server. Everything is up and running fine except when the contemplate module is running - it does weird things with node and teaser views. I originally posted this as a contemplate issue, but realized that this is best posted in the forums. More details are available there: http://drupal.org/node/86379

Setup:

centos 4.3, apache: 2.0.52, mysql: 4.1.20, php: 4.3.9, drupal: 4.7.3
contemplate: 1.5 2006/06/22
other non-core modules: there are many, but I believe the relevant ones are cck, imagefield, imagecache, views
themes: spreadfirefox, bluemarine

Summary:

if contemplate is enabled, using spreadfirefox theme:
- able to access admin > content > templates > edit (node type in question)
- views which generate teaser view are ok (including img src)
- full node view's img and a tags point to an non-existent url, images are broken, links go to 404
-- here's the weird part: if I look at the page source from my browser on full node view, the img src values are correct - but viewed from the browser the are incorrect - this applies to both IE, Firefox and Opera (cache and cookies cleared on browsers)

if contemplate is enabled, using bluemarine theme:
- unable to access edit template page, instead get an un-rendered view of the body of one node, drupal interface is not shown at all
- views which generate teaser view render the same as edit template page, but with a different node
- full node view's img and a tags point to an non-existent url, images are broken, links go to 404

if contemplate is disabled, all themes/views work normally.

I've updated apache, php, and mysql to their latest versions. Any help is appreciated.

Cheers,

Ian

Comments

whereisian’s picture

I was able to drop my code from contemplate straight into my node-content-type.tpl.php file. Worked like a charm - which I really didn't expect it to. sweet. For posterity, I got my answers from here and here.

[edited] Having posted my fix. I quickly realized that it wasn't fixed at all. I'm now having the same issue with tpl file. Nothing has changed except that contemplate is now out of the picture. It appears to be a server problem again. I'm stumped, going to bed. Help is appreciated.

whereisian’s picture

I posted it in reply to someone with the same issue.

http://drupal.org/node/83517#comment-158911