[Plugin: Web Invoice – Invoicing and billing for WordPress] 2.0.15 Error in Display.php
-
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!
- The topic ‘[Plugin: Web Invoice – Invoicing and billing for WordPress] 2.0.15 Error in Display.php’ is closed to new replies.