Bug Reports

Getting a parse error

ybc36 ·
Hi,



I am not sure if this is the right place to put this. I am trying to install the script but I keep getting this error below.



Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/www/blogsatybc.com/system/libs/schlix/app_basic.class.php on line 65



How can I trouble shoot this issue?



Thanks.

prana ·
What's the PHP version? This would happen if PHP is less than 5.5. The trait feature is unavailable until PHP 5.4

If you're running CPanel, change the PHP version via MultiPHP to 5.6.

Let us know how it goes

ybc36 ·
Hi,



Thanks. Changing the PHP version worked. I am using the software now.

ybc36 ·
Now I am getting 404 errors. While I am trying to edit settings. I am unable to install themes.

prana ·
Must be the .htaccess. Try copying htaccess.txt in the root folder as .htaccess.

I'm going to put a warning in the installer next time. This is one of the most common issue because on OS X and Linux the .htaccess is not visible on the File Manager.

Let me know how it goes.

ybc36 ·
Hi,



still having the same issue. 404 error issue.

prana ·
Hi ybc36,

Have you tried copying htaccess.txt as .htaccess?

Can you tell me the following:

A) OS (Windows/Mac/Linux) and version

Web server (Apache/NGINX/IIS)

C) SCHLIX CMS version (e.g. 2.1.6-5)

ybc36 ·
Hi,



Nevermind. I figured out why I was getting a 404 error. Firefox doesn't like my site for some reason. When I open it up in another browser say Explorer or Safari everything looks fine.



Thanks so much for your suggestion with the htaccess file. That actually worked.