I get this message doing the upgrade:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in C:\wamp\www\drupal7\sites\all\libraries\grammar_parser\engine\reader.inc on line 3127

And I see this in the log:

Converting the file => mymodule.install
*************************
Calling hook_upgrade_regex_install_alter
Completed hook_upgrade_regex_install_alter
Calling hook_upgrade_regex_alter
Completed hook_upgrade_regex_alter
Calling hook_upgrade_call_alter
ERROR: could not parse sql SELECT statement.
ERROR: Could not find a SQL string to parse in coder_upgrade_locate_query_string
ERROR: Could not find a SQL string to parse in coder_upgrade_locate_query_string
Completed hook_upgrade_call_alter
Calling hook_upgrade_hook_alter
Completed hook_upgrade_hook_alter
Calling hook_upgrade_file_alter
Completed hook_upgrade_file_alter
Calling hook_upgrade_parser_install_alter
Completed hook_upgrade_parser_install_alter
Replaced the file

Comments

solotandem’s picture

This is a PHP error indicating PHP was not happy parsing the file. Can you run a syntax check on the reader.inc file from the command line? Something like "php -l reader.inc"?

What versions of coder, grammar parser, php are you running? Can you refresh (i.e. re-download) the grammar parser files and see if this continues?Is it possible the file on your box is corrupted?

solotandem’s picture

Project: Coder » Grammar Parser
Component: Coder Upgrade » Code
Status: Active » Closed (cannot reproduce)