I would just like to say that i have checked the forums and read countless amounts of the documentation about the error with PHP 5. This may be a similar issue. My page is located here, if you want to see this in action: Scribber.net

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 42.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 43.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 44.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 45.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 46.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 47.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 48.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 49.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 50.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 51.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 53.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 54.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 56.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 57.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 58.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 59.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 60.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 61.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 62.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 66.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 67.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 68.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 69.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/scrilan6/public_html/themes/engines/xtemplate/xtemplate.inc on line 70.

PHP information my host gave me: My providers PHP config..

I get the same problem when using the phptemplate. I have set up many drupal sites. All work but this one with this new host.

Thought this has come up many times, is there any insight as to why I'm having this problem?

Comments

Steven’s picture

Put a file called info.php with the following contents in the same location as your Drupal site:

phpinfo();

Then point your browser at it.

--
If you have a problem, please search before posting a question.

keeganokarr’s picture

Thanks, figured it out.

That did the trick.

omar’s picture

... about what the fix was. One of the old Drupal sites that I set up suddenly started having this problem. I can only guess that it has something to do with changes to the server settings, but other than that I am at a loss.

carlmcdade’s picture

One thing I have noticed is that they have upgrade PHP to 4.3.9 but the Zend optimizer is an old 2.1.0. The least they should be running is 2.5.5. and they should upgrade to 2.5.7 if they are going to upgrade to PHP 4.3.10 in the near future.
---------------------------
proof that Drupal will work on PHP5
www.hivemindz.com
www.fireorb.org
__________________________
Carl McDade
Information Technology Consult
Team Macromedia

ergophobe’s picture

No mystery here.

This host has error_reporting set to "strict" which will report when certain deprecated PHP4 features have been used. PHP5 has much better object-orientation and allows the use of public/protected/private as in more complete OO languages. You have class definitions that still use the universal "var" without saying whether the var in question is public or private. With strict reporting, that gives a notice.

If you want to use PHP5 in strict mode, you would need to rewrite the var declarations for that class.

Of course, since these are only strict warnings, most hosts will not show these errors.

So, in your php.ini or .htaccess just change the level of error reporting.