table "module_news_fielddefs" breaking upgrade [solved]
Posted: Wed Apr 09, 2008 3:47 pm
Hi,
I'm upgrading to v1.2.4 from v1.0.2 (schema 25 to 29), and everything goes well aside from the following:
string(67) "Smarty error: unable to read resource: "module_db_tpl:News;summary""
on the main page.
Searching the forums, I've seen it mentioned that I'll need to create default news templates.
After creating my news template via the content->news->default template tab, I'm taken to what looks like an options screen with the following error:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\cms_old\modules\News\function.admin_customfieldstab.php on line 9
The page then immediately refreshes and I'm back at the news templates screen. It *appears* as if the template has saved, as the content is prepopulated into the text area.
I've noticed that since around the 26 or 27 schema, two new news tables have been added, so this is probably an upgrade issue a number of people experienced around 1.1...I get similar errors upgrading to that first.
Opening up customfieldstab.php, I notice the foreach is looping through an assumed result set from one of the new tables, which looks like it should be pulling an array of IDs from existing news content, but none are available since the news in question existed before this table.
table "module_news_fielddefs" seems to be the culprit.
Any ideas greatly appreciated. Thanks.
I'm upgrading to v1.2.4 from v1.0.2 (schema 25 to 29), and everything goes well aside from the following:
string(67) "Smarty error: unable to read resource: "module_db_tpl:News;summary""
on the main page.
Searching the forums, I've seen it mentioned that I'll need to create default news templates.
After creating my news template via the content->news->default template tab, I'm taken to what looks like an options screen with the following error:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\cms_old\modules\News\function.admin_customfieldstab.php on line 9
The page then immediately refreshes and I'm back at the news templates screen. It *appears* as if the template has saved, as the content is prepopulated into the text area.
I've noticed that since around the 26 or 27 schema, two new news tables have been added, so this is probably an upgrade issue a number of people experienced around 1.1...I get similar errors upgrading to that first.
Opening up customfieldstab.php, I notice the foreach is looping through an assumed result set from one of the new tables, which looks like it should be pulling an array of IDs from existing news content, but none are available since the news in question existed before this table.
table "module_news_fielddefs" seems to be the culprit.
Any ideas greatly appreciated. Thanks.