-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only variables should be passed by reference /system/codeigniter/Common.php #5224
Comments
Tell us which line of Common.php is causing this and what CI version are you using. |
I was upgrading codeigniter application from 2.1.x to 3.1.6, |
You need to replace your system folder. This file has been moved to system/core/Common.php, so you must be using an old version. Follow the upgrading section in the user guide. |
i was facing Notice: Only variables should be passed by reference in C:\xampp\htdocs\pos\system\codeigniter\core\Common.php on line 148 i don't know how to fix it |
Is the same as writing:
Which is the way that it needed to be written to glue PHP 4 with PHP 5.3 code because it prevented strict standard warnings in PHP 5.3. Now this can be written as:
https://stackoverflow.com/questions/7653709/codeigniter-instantiate-class-function#answer-7653853 |
In case it wasn't clear when I closed the issue, @zploskey answered it appropriately - if you get this error, it means you've screwed up an update. |
I have upgrade php version to 7.0.22 and this error happens.
The text was updated successfully, but these errors were encountered: