Author
|
Message
|
Jim B
|
Thursday 03 January 2008 12:07:34 pm
When trying to install ez 4.0 (FreeBSD VPS, Apache2, PHP5, MySQL 5), I 'm getting a fatal error after selecting Language Support. No debug details are listed after the error occurs. From the apache log: PHP Strict Standards: strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /usr/local/apache2/htdocs/ezpublish-4.0.0/lib/ezutils/classes/ezdebug.php on line 879 Seems similar to the problem discussed below. I have tried adding a time zone to php.ini, but that didn't help. Does anyone have any ideas what may be causing the problem? http://ez.no/developer/forum/install_configuration/timezone_on_php5_unstabel_version_solved/re_timezone_on_php5_unstabel_version_solved__5
|
Daniel Caillibaud
|
Friday 04 January 2008 2:11:35 am
In my case (apache 2.2.4, php 5.2.3 as an apache module), adding in php.ini
date.timezone = CET solved the pb...
Did you restart apache ("/etc/init.d/apache2 reload" or "apache2ctl graceful") if php ise used as module ? Perhaps you modified the wrong php.ini (there is one for the apache module and another one for the cgi, and perhaps a third one for cli), check with a phpinfo() at the beginning of the ez's index.php.
|
André R.
|
Friday 04 January 2008 4:20:09 am
Are you sure your editing the correct php.ini file? (use phpinfo() to see the correct file) Did you remember to restart apache? If it still dosn't work you can use the ezpublish site.ini setting mentioned in the forum thread you linked to.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|
Jim B
|
Tuesday 08 January 2008 1:21:59 pm
Still no luck. I'm at a loss here. It seems like a straight forward fix.
I double checked that I was modifying the correct php.ini file with phphinfo:
Loaded configuration file: /usr/local/php5/lib/php.ini (I'm assuming this is the one I want) and it's also showing CET as both local and master values for date.timezone, so it appears to be set right. I also tried adding TimeZone=CET to TimeZoneSettings in /settings/site.ini. No luck there either. And finally, I've been restarting apache along the way.
|
Paul Borgermans
|
Wednesday 09 January 2008 9:24:24 am
Try date.timezone = Europe/Brussels or similar for more, see: http://be.php.net/manual/en/timezones.php I don't see CET in this list Paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|
André R.
|
Wednesday 09 January 2008 10:04:44 am
But there are two things here, the fatal error has not related to the date time setting ( that would only cause strict warnings). So if I'm right your strict warnings are gone, but you still have problems with the fatal error? What PHP version do you use? Could you take a look in var/log/error.log / warning.log for clues?
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|
Jim B
|
Wednesday 09 January 2008 11:26:26 am
Sorry for the confusion, I was looking at the wrong part of the log. The timezone issue appears to be fine now. I'm actually using date.timezone=America/New_York with no apparent problems.
As for the fatal error, I'm using php 5.2.4 I came across this in apache2/logs/error_log: PHP Fatal error: Class 'DOMDocument' not found in /usr/local/apache2/htdocs/ezpublish-4.0.0/kernel/setup/steps/ezstep_site_types.php on line 611
line 611 in ezstep_site_types.php: $dom = new DOMDocument( '1.0', 'utf-8' );
|
André R.
|
Wednesday 09 January 2008 11:48:37 am
Search is your friend: http://ez.no/developer/forum/install_configuration/4_0_installation_difficulty http://issues.ez.no/IssueView.php?Id=12212&activeItem=3 Some distroes does not include all the supposedly default extensions for php 5 bye default..
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|
Jim B
|
Wednesday 09 January 2008 2:44:55 pm
I found php5-xml-5.1.6_3 listed as an installed package when I ran pkg_info, and php5/etc/extensions.ini has extension=xml.so enabled. This is also what I get from phpinfo for the xml section:
XML Support active
XML Namespace Support active EXPAT Version expat_2.0.0 Is there somewhere else I should be looking?
|
Kristof Coomans
|
Thursday 10 January 2008 12:39:32 am
Hi Jim Check your phpinfo for the "dom" section please. On Red Hat-based distributions, the needed shared module provided by the php-xml package is called dom.so. Good luck!
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|
Jim B
|
Thursday 10 January 2008 11:20:46 am
I don't even have a dom section. Seeing as how I've found very little relating to freebsd specific issues in the forum, it seems apparent that my troubles are related to my host's default configuration, so I'll take it up with them. Thanks everyone for your help and patience.
|
Just Me
|
Friday 08 August 2008 9:05:11 pm
I just had this problem, too. The answer is to install the php-dom package (and restart Apache afterwards, of course).
|
André R.
|
Monday 11 August 2008 11:18:21 pm
If you are on eZ Publish 3.x, yes, if your on eZ Publish 4.x (php 5) you should not install php-dom since it will interfere with the php-xml package that are included by default in php 5.x (not included by default on fedora/redhat/centos for some reason, there you need to add the php-xml extension yourself with yum as pointed out above).
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|