A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
-
Tata
- Posts: 3587
- Joined: Tue May 20, 2008 5:34 am
- Location: Slovakia
-
Contact:
Post
by Tata » Wed Jun 22, 2016 9:00 am
I have built a tes site on localhost. Everything works fine on localhost. After upload to my host I get
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /www/i/r/u30842/public_html/plugins/fotorama/classes/Controller.php on line 98
What's wrong?
It is
http://irinagallery.com
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
-
cmb
- Posts: 14225
- Joined: Tue Jun 21, 2011 11:04 am
- Location: Bingen, RLP, DE
-
Contact:
Post
by cmb » Wed Jun 22, 2016 9:39 am
Tata wrote:What's wrong?
I've used Syntax which is supported as of PHP 5.4.0 only. Quick fix:
Code: Select all
protected function createGallery()
{
$command = new CreateGalleryCommand();
$command->execute();
}
But consider to upgrade to a newer PHP version nonetheless, if possible.
-
Tata
- Posts: 3587
- Joined: Tue May 20, 2008 5:34 am
- Location: Slovakia
-
Contact:
Post
by Tata » Mon Jun 27, 2016 7:39 pm
After upgrading to PHP 7, everything works without any modifications.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.