500 Error on Panel

I’ve just put my Kirby site on a live server and i’m struggling to access the panel, it keeps turning a 500 error.

I had a look in the error_log and it’s outputting the following, does anyone have any ideas as to what the problem is?

[Thu Sep 06 08:38:38 2018] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Thu Sep 06 08:38:39 2018] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Thu Sep 06 08:42:51 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $
[Thu Sep 06 08:42:52 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Fatal error:  Call to a member function representation() on boolean in /var/www/vhosts/char$
[Thu Sep 06 08:42:52 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Fatal error:  Call to a member function representation() on boolean in /var/www/vhosts/char$
[Thu Sep 06 08:42:55 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $
[Thu Sep 06 08:42:58 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $
[Thu Sep 06 08:43:00 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $
[Thu Sep 06 08:43:08 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $
[Thu Sep 06 08:43:08 2018] [warn] [client 81.189.19.51] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in $

Are you running a suitable version of PHP? Ideally it should be PHP 7x Is your server up to date? That looks like a VPS rather than shared hosting - is everything installed correctly?

I think the first two lines are unrelated - it’s warning about the self signed SSL certificate that Parrallels ships with. Set a real certificate for the server in Parallels and those two lines should go away, but I think thats a seperate issue that isnt preventing the site from working.

1 Like

Hm, did. you cut something off from your error. messages because the files where the errors are caused are not showing?. Seems that there are different things happening including some server related errors.

I think the PHP version is 5.6 but I wont be able to check till later tonight when I’m back at my work space.

Yes, sorry it did get cut off. The whole line is this:

[warn] mod_fcgid: stderr: PHP Fatal error:  Call to a member function representation() on boolean in /var/www/vhosts/[website.com/httpdocs/kirby/kirby.php](http://website.com/httpdocs/kirby/kirby.php) on line 302

[warn] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected 'default' (T_DEFAULT), expecting identifier (T_STRING) in /var/www/website.com/httpdocs/site/plugins/field-engineer/lib/presentation-array.php](http://website.com/httpdocs/site/plugins/field-engineer/lib/presentation-array.php) on line 52, referer: http://website.com/panel/login

You are using the engineer field plugin, it requires PHP 7.x, so you would have to update if you want to continue using this plugin.

2 Likes