I am using the latest dev modules of coder & grammar parser. When I try to convert files in coder upgrade I get this error
"Fatal error: Class 'PGPReader' not found in C:\wamp\www\d7\sites\all\modules\coder\coder_upgrade\conversions\begin.inc on line 126"
and when I try to go to settings in Coder upgrade I get this error
Fatal error: Class 'PGPParser' not found in C:\wamp\www\d7\sites\all\modules\coder\coder_upgrade\includes\settings.inc on line 14
Comments
Comment #1
solotandem commentedThanks for spotting the second item. Fixed in this commit.
Is the first caused by you not having installed the 2.x version of Libraries API module?
Comment #3
joseph.olstadI am getting the first error.
Using the libraries 2.x dev
and coder dev
PHP Fatal error: Class 'PGPReader' not found in /srv/www/htdocs/drupal-7.2/sites/all/modules/coder/coder_upgrade/includes/main.inc on line 348
UPDATE: I am trying this again , this time installing the grammar_parser module. I previously just had the grammar_parser_lib module . Trying this, will update status to see if this fixes it.
Comment #4
solotandem commentedPlease note grammar_parser is to be installed in sites/all/libraries, not sites/all/modules.
Comment #5
joseph.olstadAh, thanks , helps if I install the libraries in the libraries folder.
UPDATE: I've run the code review, the upgrader, now I'm currently hand-editing the last bits. I am upgrading someone elses module from Drupal 6 to Drupal 7. With luck, it will be done soon.
Comment #6
Anonymous (not verified) commentedI'm seeing the PGPReader class not found error as listed in the Issue Summary.
I then went to config/development/coder/upgrade/settings and received an error:
It should open "engine/grammar_parser.parser.inc" instead but resolving that did not resolve the issue of PGPReader class not being included before coder\coder_upgrade\conversions\begin.inc is put into action.
So I went to coder_upgrade\conversions\begin.inc and inserted before the first function:
Once it completed the task once I went through the process again to insure that the conversion was fully successful in a run from old to new. The question, should the above addition to begin.inc be inserted somewhere else?
Comment #7
Anonymous (not verified) commentedComment #8
solotandem commentedYou are referencing files that have long since been renamed. Pleased check the versions of each project you are using. Please open a support issue if you can not resolve this, as this issue has long been put to rest.
Comment #9
Anonymous (not verified) commentedHow can they "long since been renamed"? I just days ago downloaded the -dev versions. How is the issue put to rest?
Comment #10
solotandem commentedPlease respect my request to open a support issue.
The grammar parser "files" you mention loading in #6 were renamed many months ago; that is what "long since been renamed" refers to. So, that indicates to me that something you are using is way out of date. Please take a look at the grammar parser code file names; they are no longer prefixed with "grammar_parser_."