This is what I get right at the beginning :(
Any idea what can be the issue? I'm running Mac OS X 10.3 and latest MySQL.

...
strict warning: var: Deprecated. Please use the public/private/protected modifiers in /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc on line 67.
strict warning: var: Deprecated. Please use the public/private/protected modifiers in /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc on line 68.
strict warning: var: Deprecated. Please use the public/private/protected modifiers in /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc on line 69.
strict warning: var: Deprecated. Please use the public/private/protected modifiers in /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc on line 70.
warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc:69) in /Library/WebServer/Documents/drupal/modules/user.module on line 799.
warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/drupal/themes/engines/xtemplate/xtemplate.inc:69) in /Library/WebServer/Documents/drupal/includes/common.inc on line 217.

Comments

Steven’s picture

Drupal is not yet PHP5-compatible.

iraszl’s picture

i see thanks!

do you think there is a chance to downgrade?

carlmcdade’s picture

Drupal 4.5 is PHP5 compatible but not completely if you are using Strict. The strict errors are easy enough to fix or you can set the error messaging to a non strict value and run it anyway. As long as you don't get any critical errors then you are safe. It looks as thought the template you are using is not compatible rather than Drupal itself.

I have Drupal running with PHP5 and mySQL 4.0.2 with out any problems

---------------------------
info for Drupal installation
__________________________
Carl McDade
Information Technology Consult
Team Macromedia
www.heroforhire.net

iraszl’s picture

i use the default theme... :/

carlmcdade’s picture

The chameleon them with PHP is a better way to go. Xtemplate was a real pain and since there is no development of it any longer the hope that it will be PHP5 compatible lies solely with the Drupal developers. It will more than likely get left behind because it is so inflexible.
---------------------------
info for Drupal installation
__________________________
Carl McDade
Information Technology Consult
Team Macromedia
www.heroforhire.net

iraszl’s picture

the only issue is that i don't get to the point to be able to change themes. i get stuck with registering the admin user already. :(

carlmcdade’s picture

I hope you are using the latest 4.5 otherwise the line numbers may be wrong.

change var to public on lines 42 to 70 in xtemplate.inc. That should get you going.
---------------------------
info for Drupal installation
__________________________
Carl McDade
Information Technology Consult
Team Macromedia
www.heroforhire.net

andrew404’s picture

open the file /includes/common.inc

search for -- function error_handler(
in the first if statement, change the line
if ($errno & E_ALL ^E_NOTICE)

to the following:

if ($errno & (E_ALL & E_STRICT) ^(E_NOTICE & E_STRICT))

This will turn off strict warnings if that is your ultimate desire

good luck

necrotic’s picture

Thanks for that. I couldn't find how error_reporting was done, turns out by a custom function :)