WebSite X5Help Center

 
Amir S.
Amir S.
User

HTTP ERROR 500  en

Autore: Amir S.
Visite 2122, Followers 1, Condiviso 0  

hello

This page isn’t working

mrelectrobot.com is currently unable to handle this request.

HTTP ERROR 500

in file error_log show : 

[30-Dec-2019 16:13:37 UTC] PHP Parse error: syntax error, unexpected '?' in /home/robelcom/public_html/res/x5engine.php on line 2426
[30-Dec-2019 16:13:39 UTC] PHP Parse error: syntax error, unexpected '?' in /home/robelcom/public_html/res/x5engine.php on line 2426
[30-Dec-2019 16:13:41 UTC] PHP Parse error: syntax error, unexpected '?' in /home/robelcom/public_html/res/x5engine.php on line 2426

in file x5engine.php show :

in line 2426 is :  $value = $this->orderData['payment']['enc'] ?? $_COOKIE[$cookie_name];

what is problem ?

Postato il
7 RISPOSTE
Andre E
Andre E
Moderator

I don't know.

Do a full upload.

clear cache and cookies from the the browser.

visit page again, refresh with ctrl-F5

Hope this helps!

Leggi di più
Postato il da Andre E
Amir S.
Amir S.
User
Autore

ctrl+F5

Unfortunately the problem was not resolved

Even I have completely erased my Explorer history

This problem has been there for more than twenty days, which is

This problem arises when we click on the product card to move to the product page

Leggi di più
Postato il da Amir S.
Amir S.
Amir S.
User
Autore

I think
This problem is related to the PHP code that the software generates.

Leggi di più
Postato il da Amir S.
Amir S.
Amir S.
User
Autore

I did more than 10 full uploads

Leggi di più
Postato il da Amir S.
Andre E
Andre E
Moderator

to do it 1 time should be sufficient. 

Does it also happen with an other browser? Is the browser up to date?

Else delete the complete website from your hosting server, then do again a full upload.

Leggi di più
Postato il da Andre E
Amir S.
Amir S.
User
Autore

i find problem for my site

I had to update the PHP version on the server

Method 1: Upgrading Your PHP Version (Recommended)

This method would be the best way to solve the “Parse error: syntax error, unexpected T_FUNCTION” error. Specifically if it really originates from a use of new PHP features while you are running an outdated version. Running an updated PHP version could both solve these errors and upgrade your performance, so it’s a double win for you!

Most hosts would allow you to manually change the PHP version via the cPanel:

  1. Log in to your hosting provider cPanel
  2. Look for the PHP Configuration button
  3. Manually select the a newer PHP version. We recommend PHP7 if available, but otherwise try to make sure it’s 5.4+

My problem was solved with the php update

thanks

Leggi di più
Postato il da Amir S.
Andre E
Andre E
Moderator

Great,

That's a good solution.

thanks for the feedback.

Leggi di più
Postato il da Andre E