web2project: web-based project management

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000513 [v2.1 Release (Under Development)] System Admin crash always 2010-07-15 18:58 2010-08-24 16:58
Reporter trevormorse View Status public  
Assigned To trevormorse
Priority normal Resolution fixed  
Status resolved  
Summary 0000513: Viewing System Admin causes php error
Description When I view the System Admin section I only get a partial page load. See attached image for screenshot.
Additional Information From 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"
Tags No tags attached.
Attached Files png file icon web2project_system_admin.png [^] (75,757 bytes) 2010-07-15 18:58

- Relationships

-  Notes
(0001131)
trevormorse (manager)
2010-07-15 19: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 (manager)
2010-07-15 19: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
Date Modified Username Field Change
2010-07-15 18:58 trevormorse New Issue
2010-07-15 18:58 trevormorse File Added: web2project_system_admin.png
2010-07-15 19:08 trevormorse Note Added: 0001131
2010-07-15 19:22 trevormorse Note Added: 0001132
2010-07-15 19:22 trevormorse Assigned To => trevormorse
2010-07-15 19:22 trevormorse Status new => resolved
2010-07-15 19:22 trevormorse Resolution open => fixed
2010-08-03 00:54 caseydk Project v2.1 Release (Under Development) => v2.0 Release (Current)
2010-08-24 16:58 caseydk Project v2.0 Release (Current) => v2.1 Release (Under Development)


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker