Steps to reproduce:
1. Install Invoice module using web interface
2. Enabled Invoice module from Drupal's module interface

After enabling the Invoice module I receive a warning on each page on the top of my site, while logged in as a user or not logged in. The warning is (I removed some of the path):

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in .../sites/all/modules/invoice/invoice_api.inc on line 301

Disabling the module removes the warning.

I also attempted to install the dev release 7.x-1.0+21-dev but it also produced the same error.

I have a number of other modules installed and enabled. I don't know how to easily pull a list (or if it would even be needed) from Drupal but if I can get instructions on how to do that I can post them along with the bug report.

I'm using the Fusion Starter 7.x-2.0-beta2 theme with no current customizations to the theme.

Comments

dwdking’s picture

Okay, so this was quite a simple fix for what I can tell. Sorry I'm new to all this and don't really know PHP.

Line 301 is currently this:

} catch(\Exception $e) {

I removed the slash (which fixed the error):

} catch(Exception $e) {

I'm not sure if the error had a purpose but from what I can tell I think it was a typo. As I said I'm new so I'm not sure how to type up this report or submit a true patch. If anyone has links on what I should be doing then let me know.

Thanks,
Dan

arpitr’s picture

@Dan, its a typo