Plugin Author
Claude
(@claudeschlesser)
Hello!
please open this file:
wp-content/plugins/oa-social-login/includes/widget.php
Then replace this:
add_action ('widgets_init', create_function ('', 'return register_widget( "oa_social_login_widget" );'));
By this:
function oa_social_login_init_widget ()
{
return register_widget('oa_social_login_widget');
}
add_action ('widgets_init', oa_social_login_init_widget);
This should fix the compatibility issue. The fix will be included in the next version of the plugin.
-
This reply was modified 2 years, 8 months ago by
Claude.
Thank you for the workaround @claudeschlesser
After applying fix we’ve noticed other warnings:
php 7.2 The each() function is deprecated
I guess that’s the only issue left with php 7.2 and upcoming 7.3+ compatibility.
https://stackoverflow.com/questions/46492621/how-to-resolve-this-deprecated-function-each-php
Plugin Author
Claude
(@claudeschlesser)
Thank you for the hint, I will have a closer look. We have a similar thread currently open in our support forum:
http://support.oneall.com/forums/discussion/6449/error-line#latest
Please note that in my first answer, there are some missing quotation marks around oa_social_login_init_widget, here the correct version:
function oa_social_login_init_widget ()
{
return register_widget('oa_social_login_widget');
}
add_action ('widgets_init', 'oa_social_login_init_widget');
Sorry for that!
-
This reply was modified 2 years, 8 months ago by
Claude.
Hello @claude,
Regarding to other deprecation warning on php7.2 I’ve mentioned here is a possible solution.
http://prntscr.com/k71n7t
Plugin Author
Claude
(@claudeschlesser)
Thank you for the code!
The PHP 7.2+ compatibility has been fixed in the latest version 5.4.2 š
Great thanks! Is it officially released ? Seems like we can’t update it via composer wpackagist š Any idea with this ?
http://prntscr.com/k8h8wt