Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: ErrorException ShellProgressLogger.php (Line 63) #79

Closed
asabi opened this issue Oct 27, 2012 · 2 comments
Closed

Exception: ErrorException ShellProgressLogger.php (Line 63) #79

asabi opened this issue Oct 27, 2012 · 2 comments

Comments

@asabi
Copy link

asabi commented Oct 27, 2012

I am getting the following error on PHP 5.3 (Amazon Linux AMI)

Oups... phpDox encountered a problem and has terminated!
It most likely means you've found a bug, so please file a report for this and paste the stacktrace (if given) along!

Exception: ErrorException
Location: /usr/share/pear/TheSeer/phpDox/logger/ShellProgressLogger.php (Line 63)

date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting 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 'UTC/0.0/no DST' instead
#0 /usr/share/pear/TheSeer/phpDox/logger/ShellProgressLogger.php(63): Arraydate()
#1 /usr/share/pear/TheSeer/phpDox/CLI.php(108): TheSeer\phpDox\ShellProgressLogger->log()
#2 /usr/bin/phpdox(62): TheSeer\phpDox\CLI->run()

My configuration file is based on: http://jenkins-php.org/

Here it is:

@theseer
Copy link
Owner

theseer commented Oct 27, 2012

Thank you for reporting an issue. This is not a bug though but a configuration issue on your system:

date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting 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 'UTC/0.0/no DST' instead

The use of the date() function - as phpDox does within its logger - triggers a warning if no valid timezone setting has been made. Every kind of php level warning or notice is treated as a serious problem by phpDox and thus it terminates. Please adjust the date.timezone setting within your php.ini to fix the problem as the error message suggests.

@theseer theseer closed this as completed Oct 27, 2012
@asabi
Copy link
Author

asabi commented Oct 28, 2012

Thank you :-)

That worked !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants