We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Fresh 1.8.4 install: PHP Parse error: syntax error, unexpected 'class' | Forum

Bart Degryse
Bart Degryse Oct 9 '16
I just made a fresh install of Oxwall 1.8.4 on my site hosted by Bluehost.
When going to http://www.mysite.com/install I get a blank page. On the server an error_log file is created with this message:
PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home2/myusername/public_html/folderwhereIinstalledOxwall/ow_core/singleton.php on line 13
Installed php version is 5.4.43 (checked with phpinfo.php)
What can I do about that?
Thanks for any help!
Darryl B Leader
Darryl B Oct 9 '16
The minimum php requirement is 5.5. 
Bart Degryse
Bart Degryse Oct 9 '16
Is it? Not according to the INSTALL.txt file included in the zip file:

Oxwall Requires:

- Apache WEB server, version 2.0 or higher. ( http://httpd.apache.org/download.cgi )
- PHP 5.2.6 or higher. ( http://www.php.net/ )
- MySQL 5.0 or higher. ( http://dev.mysql.com/downloads/ )
- Mail Server installed: SendMail, Exim or other. ( http://www.exim.org/mirrors.html )
- Cron ( http://en.wikipedia.org/wiki/Cron )

But I see it does according to https://developers.oxwall.com/hosting. Wouldn't it be a good idea to provide a link to this page on the download page?

I'll check with Bluehost if they can upgrade to 5.5. If not, where can I download an older version that would work on php 5.4.43?

Bart Degryse
Bart Degryse Oct 9 '16
Bluehost just upgraded me to php 5.6 and now http://www.mysite.com/install works fine.
Thanks for the assistance Darryl B.
Darryl B Leader
Darryl B Oct 9 '16
Your welcome. There have been a few with this same error, and it was always related to the php version.