sagnik Posted December 30, 2018 Posted December 30, 2018 Hi again, I'm getting the following error after uploading my site:Fatal Error: Cannot use Careers4You\Helpers\Object as Object because 'Object' is a special class name in /home/sgn/public_html/careers4you/config/classes/Careers4You/User/Users.php on line 5But my website is working fine with the above class name 'Object' in my local server. I'm running Apache HTTPD 2.4 with PHP7.1.1, MySQL8 on Windows 10.- Thanks in advance. Quote
Piotr GRD Posted December 30, 2018 Posted December 30, 2018 A quick search is giving the information that "object" is reserved word since PHP 7.2, so I think you should rename it in your script or - for now - use PHP in version older than 7.2. http://php.net/manual/en/reserved.other-reserved-words.php 1 Quote
sagnik Posted December 30, 2018 Author Posted December 30, 2018 Got it! I'm going to use PHP7.1, it will be more easier than changing my whole scripts. Thank you very much! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.