Ready to get started?Download WordPress


Web Invoice - Invoicing and billing for WordPress
PHP Warning on payment methods convert t (2 posts)

  1. Paul Annekov
    Posted 2 years ago #

    There is PHP Warning occurred when trying to create invoice from template:
    Warning: join() [function.join]: Invalid arguments passed in /home/smth/public_html/smth/wp-content/plugins/web-invoice/Functions.php on line 2290
    web_invoice_payment_methods meta value, that plugin gets from DB, is stored as string. But plugin use join when trying to convert them to array:
    $web_invoice_payment_methods = join(',', $_REQUEST['web_invoice_payment_methods']);
    You are wrong. You need to use explode, not join :).


  2. Paul Annekov
    Posted 2 years ago #

    UPD. When creating new invoice - the data is returned in array. But when creating invoice from template - the data in returned as string with commas. You need unify the returned data.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic