I recently uploaded an opencart module to my website. I have nginx configured on ubuntu 14.04
Now my screen is completely blank, nothing shows, here is a snapshot of nginx error logs
FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION) in /usr/share/nginx/html/system/database/mysqli.php on line 54" while reading response header from upstream, client: 59.177.204.147, server: 128.199.201.197, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "callnutrition.com"
Any help is appreaciated Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The key part of the error is syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION)
This is a problem with the PHP code in the file /usr/share/nginx/html/system/database/mysqli.php
Can you link to the module? Is it open source? It sounds like there might be two else’s in an if/else statement. This is a bug in the code.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.