Question: Simple POS HTTP ERROR 500

Simple POS HTTP ERROR 500

This is my URL :- http://pos.aiwebdev.com Everything was doing okay since yesterday, finish the installation part and today, an error was thrown with a `HTTP ERROR 500`. Can you please hel

AI

Abie Idham

Asked

This is my URL :- http://pos.aiwebdev.com

Everything was doing okay since yesterday, finish the installation part and today, an error was thrown with a HTTP ERROR 500.

Can you please help me on this issue?

Thank you!

  • MS

    Mian Saleem

    Answered

    Please check your server error log and let me know the error details so that I can suggest.

  • AI

    Abie Idham

    Answered

    Hi there,

    i’ve checked all the guidelines as mentioned in the documentation, all is good. All the folders have 755 and my files have the 644 access. And also i’ve checked the database config and everything is good.

    but still, the system is throwing an error :- PHP Parse error: syntax error, unexpected ‘?’ in /home/aiwebdev/pos.aiwebdev.com/app/libraries/Tec.php on line 36

    Can you advise. Thanks in advance!

  • MS

    Mian Saleem

    Answered

    Please update your php version to 7.0 - 7.2 and test again. Thank you

  • AI

    Abie Idham

    Answered

    Hi there,

    Yeah as per attached, my current version of php is 7.2.

    But it still throwing the same error :- PHP Parse error: syntax error, unexpected ‘?’ in /home/aiwebdev/pos.aiwebdev.com/app/libraries/Tec.php on line 36

    Thanks in advance.

  • AI

    Abie Idham

    Answered

    Hi there, any updates on this?

    Thanks a bunch!

  • MS

    Mian Saleem

    Answered

    It’s not php 7 on the folder you have installed. Try to add info.php with <?php php_info(); ?> and visit it in browser to see what’s the version set on that folder. You can check with your server admin/host too.

  • AI

    Abie Idham

    Answered

    Hi there, the problem occured again.

    i’ve checked all the guidelines as mentioned in the documentation, all is good. All the folders have 755 and my files have the 644 access. And also i’ve checked the database config and currently runs in php 7.2 and everything is good.

    and the error log showing this errer :- PHP Parse error: syntax error, unexpected ‘?’ in /home/aiwebdev/pos.aiwebdev.com/app/libraries/Tec.php on line 36

    Can you advise. Thanks in advance!

  • MS

    Mian Saleem

    Answered

    The error is due to Null Coalescing Operator that is only supported in php7

    Please refer to my previous reply

    It’s not php 7 on the folder you have installed. Try to add info.php with <?php php_info(); ?> and visit it in browser to see what’s the version set on that folder. You can check with your server admin/host too.

    Thank you

  • AI

    Abie Idham

    Answered

    I will try in a bit and i will update you if everything is okay.

    Thanks a bunch!

  • Login to Reply