• Resolved scottlinux

    (@scottlinux)


    With this plugin enabled, each page load and view of my wordpress blog with this plugin enabled gives an error for each request (below). Help! Thanks,

    Ubuntu 12.04
    PHP 5.3.10

    Subscribe2 Widget Pro 2.0
    Subscribe2 9.2

    [Thu Feb 20 07:30:44 2014] [error] [client 66.249.74.121] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429
    [Thu Feb 20 07:30:48 2014] [error] [client 66.249.74.121] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429
    [Thu Feb 20 07:31:07 2014] [error] [client 81.131.96.27] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429, referer: https://www.google.com/search?q=linux+installing+adobe+color+
    [Thu Feb 20 07:31:11 2014] [error] [client 81.131.96.27] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429, referer: https://www.google.com/search?q=linux+installing+adobe+color+
    [Thu Feb 20 07:31:16 2014] [error] [client 81.131.96.27] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429, referer: https://scottlinux.com/2010/10/31/install-adobe-icc-profiles-in-linux/
    [Thu Feb 20 07:31:17 2014] [error] [client 108.175.225.51] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 's2class' does not have a method 'add_s2_ajax' in /var/www/scottlinux.com/wp-includes/plugin.php on line 429, referer: https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDEQFjAB&url=https%3A%2F%2Fscottlinux.com%2F2010%2F06%2F26%2Fmac-how-to-install-ubuntu-to-external-usb-hard-drive%2F&ei=th8GU6-iIbL02wWr74GwCw&usg=AFQjCNGA4xxRjIY5lv9sLNSGtaADfNs0fg&sig2=7-awN0S7VkFxGtxaSXhlIQ&bvm=bv.61725948,d.b2I

    https://www.ads-software.com/plugins/subscribe2-widget-pro/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Thanks I’m aware of this PHP warning. It’ll be fixed in the next release soon! I’m leaving this as not resolved until the new release is pushed out.

    @devin,

    Hi, I’m Matt, the author of Subscribe2. I think the above issue is related to this:
    https://www.ads-software.com/support/topic/bug-in-core-class-invalid-filter?replies=11

    It seems that the Subscribe2 class files are not fully available for your widget at the moment.

    Subscribe2 has 3 main class files, the core one and an admin and fronted class. The core class is extended but he fronted or admin class files depending on whether it is detected that Subscribe2 is loaded on the admin side or the front facing side of admin.

    I am not in a position to offer any suggestions specifically based on your code as I have not looked at this myself but it might be worth trying to access the existing class via the $mysubscribe2 object rather than instantiate a new class within your code. You can then call any Subscribe2 functions directly, for example:

    global $mysubscribe2;
    $mysubscribe2->sanitize_email( $_POST['email'] );

    It might also fix the above issues.

    Plugin Author Devin Walker

    (@dlocc)

    Hey Matt – Thanks for the feedback. I’ll take a look at this more in depth over the next few days and see what I can find out about the bug.

    Plugin Author Devin Walker

    (@dlocc)

    I just release version 2.1 which fixes this issue. Thanks for reporting it!

    Bart McLeod

    (@mcleodspacewebnl)

    I can confirm that my issue with the plugin is also fixed by the update, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘php errors in Apache logs | class 's2class' does not have a method 'add_s2_ajax'’ is closed to new replies.