Basically my server went from PHP4 to PHP5 and now the templates aren't getting converted into proper pages. For example this is what's actually being sent to the browser:

<div class="node {sticky}">

     
    {_BLOCK_.node.title}
    <span class="submitted">{submitted}</span>
     
    <div class="content">{content}</div>
    {_BLOCK_.node.links}
  </div>

  <div class="node {sticky}">
     
    {_BLOCK_.node.title}
    <span class="submitted">{submitted}</span>

     
    <div class="content">{content}</div>
     
  </div>

I wondered if it was a database problem but it seems to communicate well enough to display the "next page" and "last page" links with the correct offset in node?from= so I moved onto whether it was a PHP module issue. That said I can't find anything obvious missing from PHP5 - not only are all the basic things like PCRE and Session installed but there are no errors in the logfile or output. I was running a minor version down on Drupal so I've upgraded that to 4.6.5 without any joy either.

Given the timing of the problem I'm confident it's an issue resulting from the recent server upgrades. These included a minor version bump on MySQL taking it to 4.1.15 and PHP went from 4.4 to 5.1.1 the OS remained stable with FreeBSD 5.3.

If anyone has any suggestions or thoughts they'd be welcome.

Comments

peterx’s picture

There is a thread on code changes for PHP5.
http://drupal.org/node/37161

Switch on full PHP error reporting then chase specific error messages. Search for error_reporting and change it to error_reporting(E_ALL) so that you get every message.

You might have to use 4.7 if 4.6.4 did not fix all the PHP 5 problems.

petermoulding.com/web_architect

caomhin’s picture

Unfortunately there are absolutely no errors at all. The closest I've managed are some "Implicit cloning object of class" warnings with E_STRICT.

Guess I'll be trying 4.7 soon then. Thanks.

_Zzz_’s picture

Trying to setup drupal 4.6.5, but PHP 5.1.1 and MySql 4.1.15 combo isn't letting me to do so :(

Earlier tried it on 4.4 php and 4.0.26 mysql without success because there was session.save_handler restricted to 'files' on that server :(

so i couldn't try drupal yet :/

I'm getting :

{head} {styles}
{_BLOCK_.header.logo} {_BLOCK_.header.site_name}
{secondary_links}
{primary_links}
{_BLOCK_.header.blocks}

Welcome to your new Drupal-powered website.

phpinfo here:
http://eukaliptas.serveriai.lt/PHP/

jlangdale’s picture

I'm getting this same issue. Putting phptemplate directory with the module in the modules folder doesn't seem to cause it to show in the modules list so I can enable it.

I get block errors with drupal 4.6.5 and php 5.1.2. I'd really like to use 4.6.x because modules are not done for 4.7 yet.

PHP INFO:
http://www.langdale.ca:81/pinfo.php

Anyone fix this problem?

sepeck’s picture

switch to phpTemplate
http://drupal.org/node/42080
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide