Nucleus not working after updating

Found something that doesn't work as expected? Encountered PHP errors? Submit your bug reports here!
heddo85
Posts: 1
Joined: Sun Jan 22, 2017 7:36 pm

Nucleus not working after updating

Postby heddo85 » Sun Jan 22, 2017 7:45 pm

Hello,
I used to use Nucleus v. 3.65 and decided to upgrade it and then update it. Everything went fine until I launched my website, I got this error:
Parse error: syntax error, unexpected '[' in.... nucleus/libs/globalfunctions.php line 2984

Here's line 298

Code: Select all

            $remote_proxy_ip = explode(',' , $_SERVER["HTTP_X_FORWARDED_FOR"])[0];


Is there anything wrong? Thanks for your help.
User avatar
yama
Posts: 122
Joined: Tue Dec 05, 2006 2:23 pm
Contact:

Nucleus not working after updating

Postby yama » Sat Feb 04, 2017 1:56 am

" [0] " is unnecessary. Please delete it.

Return to “Bug Reports & Feature Requests”