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.
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
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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now