MantisBT - v2.1 Release (Closed)
View Issue Details
0000513v2.1 Release (Closed)[All Projects] Generalpublic2010-07-15 16:582010-09-21 22:49
Reportertrevormorse 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionv2.1 
Target VersionFixed in Versionv2.1 
Summary0000513: Viewing System Admin causes php error
DescriptionWhen I view the System Admin section I only get a partial page load. See attached image for screenshot.
Additional InformationFrom my php error log:

[16-Jul-2010 01:39:48] PHP Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone ()' in /home/trevor/source/web2project/modules/system/index.php:41
Stack trace:
#0 /home/trevor/source/web2project/modules/system/index.php(41): DateTimeZone->__construct('')
0000001 /home/trevor/source/web2project/index.php(363): require('/home/trevor/so...')
0000002 {main}
  thrown in /home/trevor/source/web2project/modules/system/index.php on line 41

I have double checked and my php.ini does have:

date.timezone = "America/Halifax"
TagsNo tags attached.
Attached Filespng web2project_system_admin.png (75,757) 1969-12-31 16:00
https://bugs.web2project.net/file_download.php?file_id=115&type=bug
png

Notes
(0001131)
trevormorse   
2010-07-15 17:08   
If I update line 39 in modules/system/index.php from:
$tzName = w2PgetConfig('system_timezone');
to:
$tzName = w2PgetConfig('system_timezone', 'Europe/London');

The error in my php logs disappears, but I still get the same partial page load.
(0001132)
trevormorse   
2010-07-15 17:22   
This was due to the fact that I did not have a timezone set in w2p, but had date.timezone set in my php.ini file.

Fix is here - http://github.com/trevormorse/web2project/commit/ab14f7f1ccd39b0f8fdda4996a7719d16c6e6d84

Issue History
2010-07-15 16:58trevormorseNew Issue
2010-07-15 16:58trevormorseFile Added: web2project_system_admin.png
2010-07-15 17:08trevormorseNote Added: 0001131
2010-07-15 17:22trevormorseNote Added: 0001132
2010-07-15 17:22trevormorseAssigned To => trevormorse
2010-07-15 17:22trevormorseStatusnew => resolved
2010-07-15 17:22trevormorseResolutionopen => fixed
2010-08-02 22:54caseydkProjectv2.1 Release (Closed) => v2.0 Release (Closed)
2010-08-24 14:58caseydkProjectv2.0 Release (Closed) => v2.1 Release (Closed)
2010-09-21 22:11caseydkStatusresolved => closed
2010-09-21 22:33caseydkAssigned Totrevormorse =>
2010-09-21 22:33caseydkStatusclosed => feedback
2010-09-21 22:33caseydkResolutionfixed => reopened
2010-09-21 22:34caseydkStatusfeedback => closed
2010-09-21 22:34caseydkProduct Version => v2.1
2010-09-21 22:39caseydkStatusclosed => resolved
2010-09-21 22:49caseydkStatusresolved => closed
2010-09-21 22:49caseydkResolutionreopened => fixed
2010-09-21 22:49caseydkFixed in Version => v2.1