AI
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!
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!
- MSAnsweredPlease check your server error log and let me know the error details so that I can suggest.
- AIAnsweredHi 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! - MSAnsweredPlease update your php version to 7.0 - 7.2 and test again. Thank you
- AIAnsweredHi 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. - AIAnsweredHi there, any updates on this?
Thanks a bunch! - MSAnsweredIt'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.
- AIAnsweredHi 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! - MSAnsweredThe 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 - AIAnsweredI will try in a bit and i will update you if everything is okay.
Thanks a bunch! - Login to Reply