Localhost / Host not working

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Localhost / Host not working

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:

Re: Localhost / Host not working

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.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Localhost / Host not working

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.

Post Reply