PHP Strict Standards
Hey Guys, I've just noticed tons of PHP Strict Standards errors (see below).
Could you advise?
PHP Version 5.3.29
Apache/2.2.29 (Unix)
Vanilla 2.2
(I have another installation on the same server with vanilla 2.1, but there is not any errors.)
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.thememanager.php on line 352
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Only variables should be passed by reference in /library/core/class.pluginmanager.php on line 1048
Strict Standards: Declaration of UserModel::delete() should be compatible with that of Gdn_Model::delete() in /applications/dashboard/models/class.usermodel.php on line 14
Strict Standards: Declaration of UserModel::getID() should be compatible with that of Gdn_Model::getID() in /applications/dashboard/models/class.usermodel.php on line 14
Strict Standards: Declaration of DiscussionModel::save() should be compatible with that of Gdn_Model::save() in /applications/vanilla/models/class.discussionmodel.php on line 14
Strict Standards: Declaration of DiscussionModel::delete() should be compatible with that of Gdn_Model::delete() in /applications/vanilla/models/class.discussionmodel.php on line 14
Strict Standards: Declaration of DiscussionModel::getWhere() should be compatible with that of Gdn_Model::getWhere() in /applications/vanilla/models/class.discussionmodel.php on line 14
Strict Standards: Declaration of CommentModel::save() should be compatible with that of Gdn_Model::save() in /applications/vanilla/models/class.commentmodel.php on line 1377
Strict Standards: Declaration of CommentModel::delete() should be compatible with that of Gdn_Model::delete() in /applications/vanilla/models/class.commentmodel.php on line 1377
Strict Standards: Declaration of CommentModel::get() should be compatible with that of Gdn_Model::get() in /applications/vanilla/models/class.commentmodel.php on line 1377
Strict Standards: Declaration of CommentModel::getCount() should be compatible with that of Gdn_Model::getCount() in /applications/vanilla/models/class.commentmodel.php on line 1377
Comments
2.2 requires php 5.4 or higher
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
https://vanillaforums.org/discussion/31121/vanilla-is-proud-to-present-version-2-2 says:
"Vanilla 2.2 requires PHP 5.3. "
Then try turning off Strict Mode
https://vanillaforums.org/discussion/comment/199517/#Comment_199517
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
That will definitely do the trick, yes, but I was hoping some other cure.
A "cure" would only be possible by changing the code. The different parameters in some of the methods would require major changes which wouldn't be easy to implement. That's why I doubt there will be a change of that in the near future.
But you should raise an issue on GitHub o make the developers aware of that.