Loading...
 
Skip to main content

lib/tikidate.php bug or a configuration issue?

Status
Closed
Subject
lib/tikidate.php bug or a configuration issue?
Version
17.x
Category
  • Usability
Feature
User Preferences
Resolution status
New
Submitted by
RandyH
Lastmod by
RandyH
Rating
(0)
Description

tiki-user_preferences.php:
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (leapseconds)' in /<install_path>/wiki/lib/tikidate.php:147 Stack trace: #0 /<install_path>/wiki/lib/tikidate.php(147): DateTimeZone->__construct('leapseconds') #1 /<install_path>/wiki/tiki-user_preferences.php(421): TikiDate::getTimeZoneList() #2 {main} thrown in /<install_path>/wiki/lib/tikidate.php on line 147

Error is "fixed" by making the following additions to the array deprecated_tr in file lib/tikidate.php :
95a96
> 'leapseconds', // REH
103a105
> 'tzdata.zi', // REH

Not sure how universal the problem with other installations is (maybe I still have some environment setting issues?). On two newly upgraded (to 17.1.7) installations on the same shared hosting site. uname-a yields: Linux <host> 3.10.0-714.10.2.lve1.4.79.el6h.x86_64 #1 SMP Thu Jan 4 14:26:00 EST 2018 x86_64 x86_64 x86_64 GNU/Linux. Can supply tiki-check.php result also (which barfed until i also grabbed a new lib/core/BOMChecker/scanner.php from the trunk 😊. Basically CentOS release 6.9, PHP release 5.6.30. Can replicate with a fresh (not upgraded) install on the same server. Some other PHP errors / blank pages fixed by refining the PHP5.6 settings or .htaccess file and other settings (SEF URL is turned on).

Put importance lower as not sure how many installation environments will mimic mine (versus what you run tiki.org on). Your demo's for 17.x and 15.x have not been working for a week so cannot replicate there.

Importance
4
Easy to solve?
10 easy
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6552
Created
Wednesday 24 January, 2018 16:29:01 UTC
by RandyH
LastModif
Sunday 23 September, 2018 21:12:34 UTC


Show PHP error messages