• Resolved petarm

    (@petarm)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter petarm

    (@petarm)

    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'));

    Plugin Author mohanjith

    (@mohanjith)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Web Invoice – Invoicing and billing for WordPress] 2.0.15 Error in Display.php’ is closed to new replies.