Search

I just copied an install over from my vps to a GoDaddy account. When I try to load a page, I get an error:

‘Invalid error type specified’

directed to /symphony/lib/core/class.datetimeobj.php line 6:

  if(!@date_default_timezone_set($timezone)) trigger_error(E_USER_WARNING, "Invalid timezone '{$timezone}'");

Commenting out that line lets the site run fine. I would really rather not edit the core like that, and I’d like to resolve it completely. Any idea what might be causing this? Thanks!

That error is a result of the variables sent to trigger_error() being in the wrong order. The error type is the 2nd parameter, not the 1st. Can you submit this as an issue please?

Done. Thanks! I was more in atrouble-posting mode than trouble-shooting mode this afternoon.

Might be a bit late, but if anyone is wondering what could cause this issue it is when you move your config.php file between servers which allows different timezone settings. To fix it, open your config.php file on your server and replace region → timezone’s value with eg. Europe/Oslo.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details