• Resolved ethereumicoio

    (@ethereumicoio)


    Conflict with woocommerce subscriptions plugin:

    Fatal error: Uncaught Error: Too few arguments to function Loc_Timezone::post_date_column_time(), 2 passed in /var/www/html/wp-includes/class-wp-hook.php on line 308 and exactly 4 expected
    in /var/www/html/wp-content/plugins/simple-location/includes/class-loc-timezone.php on line 462
    
    Call stack:
    
    Loc_Timezone::post_date_column_time()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-content/plugins/woocommerce-subscriptions/includes/admin/meta-boxes/views/html-related-orders-row.php:39
    include()
    wp-content/plugins/woocommerce-subscriptions/includes/admin/meta-boxes/class-wcs-meta-box-related-orders.php:126
    WCS_Meta_Box_Related_Orders::output_rows()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce-subscriptions/includes/admin/meta-boxes/views/html-related-orders-table.php:25
    include_once()
    wp-content/plugins/woocommerce-subscriptions/includes/admin/meta-boxes/class-wcs-meta-box-related-orders.php:36
    WCS_Meta_Box_Related_Orders::output()
    wp-admin/includes/template.php:1445
    do_meta_boxes()
    wp-admin/edit-form-advanced.php:688
    require()
    wp-admin/post.php:20
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ethereumicoio

    (@ethereumicoio)

    Patch to fix:

    diff --git a/wp-content/plugins/simple-location/includes/class-loc-timezone.php b/wp-content/plugins/simple-location/includes/class-loc-timezone.php
    index 87d0cab9..8f312f2b 100644
    --- a/wp-content/plugins/simple-location/includes/class-loc-timezone.php
    +++ b/wp-content/plugins/simple-location/includes/class-loc-timezone.php
    @@ -459,7 +459,7 @@ class Loc_Timezone {
     
     
     
    -       public static function post_date_column_time( $t_time, $post, $date, $mode ) {
    +       public static function post_date_column_time( $t_time, $post, $date = null, $mode = null ) {
                    $timezone = self::get_timezone( $post );
                    if ( self::compare_timezones( $timezone, wp_timezone() ) ) {
                            return $t_time;
    
    Plugin Author David Shanske

    (@dshanske)

    I’ll add this, but will point out that it is the other plugin that isn’t implementing it correctly. There are 4 arguments in it. Committed in Github, will be in next release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with woocommerce subscriptions plugin’ is closed to new replies.