I replaced my 1.0-rc4 version with the dev version and now I'm getting this error when trying to view content:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bpm.biblio_pmcid' in 'field list': SELECT bpm.nid AS nid, bpm.biblio_pubmed_id AS biblio_pubmed_id, bpm.biblio_pmcid AS biblio_pmcid, bpm.biblio_pubmed_md5 AS biblio_pubmed_md5 FROM {biblio_pubmed} bpm WHERE (nid IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4, :db_condition_placeholder_5, :db_condition_placeholder_6, :db_condition_placeholder_7, :db_condition_placeholder_8, :db_condition_placeholder_9)) ; Array ( [:db_condition_placeholder_0] => 11796 [:db_condition_placeholder_1] => 11797 [:db_condition_placeholder_2] => 11798 [:db_condition_placeholder_3] => 11800 [:db_condition_placeholder_4] => 17812 [:db_condition_placeholder_5] => 19523 [:db_condition_placeholder_6] => 19524 [:db_condition_placeholder_7] => 19530 [:db_condition_placeholder_8] => 19531 [:db_condition_placeholder_9] => 19532 ) in biblio_pm_node_load() (line 432 of /Applications/MAMP/htdocs/sitename/sites/all/modules/biblio/modules/pubmed/biblio_pm.module).

-Trevor

Comments

scor’s picture

could you confirm whether you've run update.php? did you get any error there?

ambientdrup’s picture

There was no flag to run update.php on status report after installing the dev version. I tried running it anyways thinking it might clear up the issue but it said there were no pending updates and then after running I still see the error.

-Trevor

rjerome’s picture

certainly that column is new since rc4, if you had the Biblio - Pubmed module enabled before, then you should have had pending updates for the Biblio - Pubmed module.

You have a couple of options...

You could backup the biblio_pubmed table, un-install and re-install the Biblio-PubMed module, that will recreate the tables (with the missing rows), then restore the data to the biblio_pubmed table.

You could just change the "schema_version" in the biblio_pm row of the system table to 7000 then re-run the update.php script.

ambientdrup’s picture

I can try this. Why dod I need to change the schema_version to 7000 if I was already using the stable rc4 version for 7.x?

-Trevor

rjerome’s picture

You really only need to change it if it's already set to a value greater than 7000. This will force the updates to re-run.

ambientdrup’s picture

Ah ok. Right. Understood.

-Trevor

liam morland’s picture

Issue summary: View changes
Status: Active » Fixed

If you need further help, please re-open and provide details.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.