Hi,
I wanted to have a local development version of my drupal site running on my home-computer, so I installed wamp and made a copy of database and files. But when I look with web-browser at the local version, I get a lot of warnings on every page:
------------------ warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_page.inc on line 47. warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_page.inc on line 48. warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_page.inc on line 49. ... warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_attachment.inc on line 165. warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_attachment.inc on line 166. warning: Attempt to modify property of non-object in C:\wamp\www\sites\all\modules\calendar\includes\calendar_plugin_display_attachment.inc on line 167. ------------------
These warnings drive me mad, because they fill 2-3 screens and screw the layout of the whole web site. What could be the reason for it, and how can I fix it?
Jarry
Those warnings from PHP 5.3. There's an open issue on it here:
My suggestion is to switch WAMP to PHP 5.2.X. You can download the addon to do that here:
http://www.wampserver.com/en/addons_php.php
Unless your main server is running PHP 5.3. If that's the case, then use 5.3 on WAMP to troubleshoot the problems (and maybe submit patches). The nice thing with WAMP is you can run multiple versions of PHP and switch between them by right clicking the WAMP icon in the system tray.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 8/18/2010 3:34 PM, Jarry wrote:
warning: Attempt to modify property of non-object in
Hi,
Yes this is a pain, on my OS X Server I have 5.3.1 and it gives me these errors.
I do 1 of 2 things.
1. ignore them. 2. add @ before the date functions to suppress the errors.
otherwise we need to wait for Karen to fix these but it will most likely not be until Drupal officially supports PHP 5.3
Gordon
On 19/08/2010, at 6:32 AM, Jamie Holly wrote:
Those warnings from PHP 5.3. There's an open issue on it here:
My suggestion is to switch WAMP to PHP 5.2.X. You can download the addon to do that here:
http://www.wampserver.com/en/addons_php.php
Unless your main server is running PHP 5.3. If that's the case, then use 5.3 on WAMP to troubleshoot the problems (and maybe submit patches). The nice thing with WAMP is you can run multiple versions of PHP and switch between them by right clicking the WAMP icon in the system tray.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 8/18/2010 3:34 PM, Jarry wrote:
warning: Attempt to modify property of non-object in
-- [ Drupal support list | http://lists.drupal.org/ ]