Setting error reporting to E_STRICT may cause api_v3 to crash with no error message

Wed, 09/15/2010 - 17:07 — Kalturian
Project:Kaltura Community Edition (CE) - Self Hosted Online Video Platform
Version:api_v3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

If your api_v3 fails to load, and you get the following notice on the log/kaltura_api_v3.log log file, this fix will solve the problem.

How to identify:

  • The CE start page loads OK.
  • testme console loads OK, but performing any API request fails with either error 500, 504 or 404.
  • testmeDocs loads well.
  • login screens of kmc and admin console loads well, but you get blank page after login to admin console.
  • using curl to call any api_v3 request will return the following error: Empty reply from server
  • using api/testme, you can perform api_v2 requests well.
  • you see the following notice error on the apache error log.

The notice on the log/kaltura_api_v3.log file:
[API] [KalturaFrontController->errorHandler] NOTICE: kaltura/app/infra/log/KalturaLog.php line 93 - date() [<a href="function.date?lightframe">function.date</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 'Europe/Berlin' for 'CEST/2.0/DST' instead

How to solve:
Open the following files:

  • app/api_v3/web/index.php
  • [codeapp/api_v3/web/getFeed.php][/code]

And add after the line <?php the following line:
date_default_timezone_set('Europe/London');
* Set 'Europe/London' to your location according to http://php.net/manual/en/timezones.php .

Comments

#1

Thanks for the possible fix. However, in my case this did not fix the problem, see:
http://www.kaltura.org/blank-page-after-login-and-invalid-ks