Page 1 of 1

Localhost / Host not working

Posted: Wed Jun 22, 2016 9:00 am
by Tata
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

Re: Localhost / Host not working

Posted: Wed Jun 22, 2016 9:39 am
by cmb
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.

Re: Localhost / Host not working

Posted: Mon Jun 27, 2016 7:39 pm
by Tata
After upgrading to PHP 7, everything works without any modifications.