Forums

Web Invoice - Invoicing and billing for WordPress
[resolved] 2.0.15 Error in Display.php (3 posts)

  1. petarm
    Member
    Posted 1 year ago #

    Hey there.

    I just updated to the latest 2.0.15 version of the plugin and discovered the following error when viewing an invoice:

    Warning: preg_split() [function.preg-split]: Compilation failed: missing terminating ] for character class at offset 7 in /home/XXXXXXX/stridestutoring.com/wp-content/plugins/web-invoice/Display.php on line 2866

    This is like 2866: list($day_phone_a, $day_phone_b, $day_phone_c) = preg_split('/[\/\.\-/', $invoice->recipient('paypal_phonenumber'));

    I tried to see if I can fix the error and I am horrible with PHP. The only thing I did is add a "]" just after the "-" in the line. Doing so "appears" to fix everything as the error no longer appears when you view the invoice.

    I just wanted to ask if this is the proper way to fix this error and I am not unknowingly breaking something else that I can't see I have broken.

    Thanks for the help!

  2. petarm
    Member
    Posted 1 year ago #

    This is how line 2866 looks after my edit: list($day_phone_a, $day_phone_b, $day_phone_c) = preg_split('/[\/\.\-]/', $invoice->recipient('paypal_phonenumber'));

  3. mohanjith
    Member
    Posted 1 year ago #

    2.0.15 was released by mistake, I'm really sorry for that. Anyway now the issue is fixed in 2.0.16.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic