• Resolved piyushdear

    (@piyushdear)


    Hi team,

    We are facing a fatal error after WC marketplace plugin update.

    Parse error: syntax error, unexpected ‘)’ in /var/www/html/tuikart/wp-content/plugins/wc-vendors/class-wc-vendors.php on line 344

    Pl.s look into.

    Thanks,

    Piyush

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @piyushdear,

    We have not experienced this issue on our test site. Can you try installing the update manually using plugin upload?

    Also, you may follow our debugging guide to check for possible plugin conflicts – https://docs.wcvendors.com/knowledge-base/the-debugging-guide.

    Let us know if you have further questions.

    Best regards,
    Lloyd

    Hi. I have the same issue. I have had to roll back to 2.2.4 in order to resolve it.

    The apply_filters_deprecated was written incorrectly and it also threw errors like above.

    Wrong code (won’t allow plugin to be activated and throws error on line 344 notice):

    $param_args = apply_filters_deprecated(
    	'wcv_admin_commissions_params',
    	array(array(
    	'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ),
    								'confirm_delete_commission' => __( 'Are you sure delete this commission?', 'wc-vendors' ),
    								'confirm_bulk_delete_commission' => __( 'Are you sure delete these commissions?', 'wc-vendors' ),
    		),
    		),
    		'2.3.0',
    		'wcvendors_admin_commissions_params',
    		);

    Code that works (please let us know if this will affect the plugin otherwise. It allowed me to activate the plugin and seems to work now):

     $param_args = apply_filters_deprecated(
     'wcv_admin_commissions_params',
    	array(array(
    	'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ),
    								'confirm_delete_commission' => __( 'Are you sure delete this commission?', 'wc-vendors' ),
    								'confirm_bulk_delete_commission' => __( 'Are you sure delete these commissions?', 'wc-vendors' ),
    							)),'2.3.0','wcvendors_admin_commissions_params' );
    • This reply was modified 3 years, 4 months ago by midway-wp.
    Jamie

    (@digitalchild)

    Hello,

    I’m not able to replicate this issue in my install however I believe that is due to the version of PHP I’m using. What versions of PHP are you using @midway-wp @alwhit and @piyushdear?

    I’ve added an issue to our GitHub to get this resolved asap.

    @midway-wp It won’t affect the plugin so you can modify the source to remove the wayward comma.

    cheers,

    Jamie

    Same problem, please help!!

    Parse error: syntax error, unexpected ‘)’ in /home/urjadgkf/regalos/wp-content/plugins/wc-vendors/class-wc-vendors.php on line 344

    Jamie

    (@digitalchild)

    Hello, @raptor_00 @midway-wp @alwhit @piyushdear

    Can someone provide me with a woocommerce status page as I have been unable to replicate this in 6 different environments. You can roll back to the previous version to get your site up while I debug this.

    I need to figure out what the difference between my environments and any of yours is to work on this further.

    cheers,

    Jamie.

    the problem is the wayward comma

    • This reply was modified 3 years, 3 months ago by raptor_00.
    Jamie

    (@digitalchild)

    Hi All,

    I’ve just pushed an update that includes this fix. Thanks for your patience.

    cheers,

    Jamie.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Latest update is causing Fatal error’ is closed to new replies.