Forum

Osclass 3.9.0 error...
 
Notifications
Clear all

Osclass 3.9.0 error log fix

23 Posts
4 Users
0 Likes
526 Views
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

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

 
Posted : 31/12/2020 4:02 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

disable debug from config.php
these are warnings only.

 
Posted : 31/12/2020 4:13 pm
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

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

 
Posted : 31/12/2020 8:00 pm
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

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.

 
Posted : 31/12/2020 9:10 pm
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

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

 
Posted : 01/01/2021 6:09 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

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.

 
Posted : 01/01/2021 9:55 pm
(@resta)
Posts: 47
Eminent Member
 

I am still using php 7.0 and MariaDB 10.1

Is osclass 3.9 compatible with MariaDB 10.3?

 
Posted : 02/01/2021 5:20 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

I did not tried it with  maria db. I don't know.

 
Posted : 02/01/2021 10:52 am
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

okay thank you [member=6]marius-ciclistu[/member]

Regards

 
Posted : 02/01/2021 10:57 am
(@resta)
Posts: 47
Eminent Member
 

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!

 
Posted : 02/01/2021 12:18 pm
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

[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

 
Posted : 02/01/2021 8:37 pm
(@resta)
Posts: 47
Eminent Member
 

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.

 
Posted : 03/01/2021 12:58 am
(@resta)
Posts: 47
Eminent Member
 

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.

 
Posted : 03/01/2021 5:27 am
marius-ciclistu
(@marius-ciclistu)
Posts: 121
Estimable Member
 

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.

 
Posted : 03/01/2021 2:31 pm
(@osclass)
Posts: 283
Reputable Member
Topic starter
 

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

 
Posted : 04/01/2021 10:24 am
Page 1 / 2
Share: