Hi,
installed [Osclass 3.9.0] with php version 7.4.
it works good but when i check debug.log file, there are these errors below.
how can i fix these to be compatible with php version 7.4?
please guide me to fix get_magic_quotes_gpc() and [Array and string offset access syntax].
thank you,
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in osclass-3.9.0/oc-includes/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php on line 162
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 134
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in osclass-3.9.0/oc-includes/osclass/core/Params.php on line 52
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Notice: Trying to access array offset on value of type bool in osclass-3.9.0/oc-includes/osclass/helpers/hPage.php on line 227
[30-Dec-2020 17:34:09 America/Los_Angeles] PHP Notice: Trying to access array offset on value of type bool in osclass-3.9.0/oc-includes/osclass/helpers/hPage.php on line 227
Regards
disable debug from config.php
these are warnings only.
I think these fixed in osclass-5.0.0 to be compatible with 7.4.
How can i copy these from 5.0.0?
Regards
The deprecations are for php 8 I think. There is no eazy way of fixing them all. If config change does not work you could set error reporting in php.ini or by function call in config.php.
No its for 7.4
If we replace get_magic_quotes_gpc() with FALSE, that would be fixed. Because it doesn't check the quotes anymore. But im looking for a proper way to fix it. And also we should fix [string and array offset].
Regards
A proper fix would be rewriting all without deprecations. So better to mute the notices and warnings. The deprecations are for php 8. Their purpose is to give the developer hints about the things that are going to be removed in the future.
I am still using php 7.0 and MariaDB 10.1
Is osclass 3.9 compatible with MariaDB 10.3?
I did not tried it with maria db. I don't know.
okay thank you [member=6]marius-ciclistu[/member]
Regards
Osclass User - have you tried running 5.0 already with php 7.4? If so, is it working properly and safe to upgrade from 3.9? Thanks!
[member=291]resta[/member]
I upgraded from osc3.8/php7.2 to osc3.9/php7.4 and getting warnings because osc3.9 is not compatible with php7.4. I posted the warnings in my first post.
For osc5.0.0, no i haven't tried it. Because it's still trial version and not stable.
Regards
Yes, I also tried osclass 3.9 with php 7.4 and get many warnings and notices and even a few errors for my mods.
Is there any real advantage in performance or speed by using php 7.4 vs php 7.0? Or Is it just that higher version of php provides better code writing? I think now that php8.0 is out osclass 5.0 version needs to be updated quite a bit.
I did not tried it with maria db. I don't know.
Marius - What database do you use then - MySql? MySQL is no longer supported and for cpanel hosting MariaDB is default.
Mysql. My osclass is a higly modified one. It took me a year to fix it and insert all needed functionalities because I can't stand plugins. So if I would to start over with the one in 5.0... I don't know... Maybe if it would be written acc. to psr2 and php 8. Otherwise... until it dies it will remain with php 7.3.
Is there any real advantage in performance or speed by using php 7.4 vs php 7.0? Or Is it just that higher version of php provides better code writing? I think now that php8.0 is out osclass 5.0 version needs to be updated quite a bit.
Most hosting companies don't support php-7.2 anymore. It starts from php-7.3.
Yes, its good for security, speed, and other benefits if you upgrade your php version.
Regards