singlearticle: Undefined index
I updated from the latest stable version to the trunk and get the following error within a singlearticle:
Notice: Undefined index: source in file /modules/aktuell/singlearticle.php line 85
Notice: Undefined index: sourceurl in file /modules/aktuell/singlearticle.php line 85
Notice: Undefined index: source in file /modules/aktuell/singlearticle.php line 87
Notice: Undefined index: source in file /modules/aktuell/singlearticle.php line 85
Notice: Undefined index: sourceurl in file /modules/aktuell/singlearticle.php line 85
Notice: Undefined index: source in file /modules/aktuell/singlearticle.php line 87
Leave a comment
Thanks for reporting!
These new fields were not added to the update script.
Should work now, I've the two fields to the update script. See revision 23731.
These new fields were not added to the update script.
Should work now, I've the two fields to the update script. See revision 23731.
Great fixed. But if I make a module update and check the debug, than I could find some trouble. Maybe it comes from the same source:
<sqlcode>
ALTER TABLE impression_cat ADD COLUMN inblocks TINYINT(1) NOT NULL default '1'
Error number: 1060
Error message: Duplicate column name 'inblocks'
ALTER TABLE impression_cat DROP nohtml
Error number: 1091
Error message: Can't DROP 'nohtml'; check that column/key exists
ALTER TABLE impression_cat DROP nosmiley
Error number: 1091
Error message: Can't DROP 'nosmiley'; check that column/key exists
ALTER TABLE impression_cat DROP noxcodes
Error number: 1091
Error message: Can't DROP 'noxcodes'; check that column/key exists
ALTER TABLE impression_cat DROP noimages
Error number: 1091
Error message: Can't DROP 'noimages'; check that column/key exists
ALTER TABLE impression_cat DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_cat MODIFY title VARCHAR(255) NOT NULL default ''
ALTER TABLE impression_indexpage DROP nohtml
Error number: 1091
Error message: Can't DROP 'nohtml'; check that column/key exists
ALTER TABLE impression_indexpage DROP nosmiley
Error number: 1091
Error message: Can't DROP 'nosmiley'; check that column/key exists
ALTER TABLE impression_indexpage DROP noxcodes
Error number: 1091
Error message: Can't DROP 'noxcodes'; check that column/key exists
ALTER TABLE impression_indexpage DROP noimages
Error number: 1091
Error message: Can't DROP 'noimages'; check that column/key exists
ALTER TABLE impression_indexpage DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_articles DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_mod DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_articles ADD COLUMN source VARCHAR(255) NOT NULL default ''
Error number: 1060
Error message: Duplicate column name 'source'
ALTER TABLE impression_articles ADD COLUMN sourceurl VARCHAR(255) NOT NULL default ''
Error number: 1060
Error message: Duplicate column name 'sourceurl'
</sqlcode>
<sqlcode>
ALTER TABLE impression_cat ADD COLUMN inblocks TINYINT(1) NOT NULL default '1'
Error number: 1060
Error message: Duplicate column name 'inblocks'
ALTER TABLE impression_cat DROP nohtml
Error number: 1091
Error message: Can't DROP 'nohtml'; check that column/key exists
ALTER TABLE impression_cat DROP nosmiley
Error number: 1091
Error message: Can't DROP 'nosmiley'; check that column/key exists
ALTER TABLE impression_cat DROP noxcodes
Error number: 1091
Error message: Can't DROP 'noxcodes'; check that column/key exists
ALTER TABLE impression_cat DROP noimages
Error number: 1091
Error message: Can't DROP 'noimages'; check that column/key exists
ALTER TABLE impression_cat DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_cat MODIFY title VARCHAR(255) NOT NULL default ''
ALTER TABLE impression_indexpage DROP nohtml
Error number: 1091
Error message: Can't DROP 'nohtml'; check that column/key exists
ALTER TABLE impression_indexpage DROP nosmiley
Error number: 1091
Error message: Can't DROP 'nosmiley'; check that column/key exists
ALTER TABLE impression_indexpage DROP noxcodes
Error number: 1091
Error message: Can't DROP 'noxcodes'; check that column/key exists
ALTER TABLE impression_indexpage DROP noimages
Error number: 1091
Error message: Can't DROP 'noimages'; check that column/key exists
ALTER TABLE impression_indexpage DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_articles DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_mod DROP nobreak
Error number: 1091
Error message: Can't DROP 'nobreak'; check that column/key exists
ALTER TABLE impression_articles ADD COLUMN source VARCHAR(255) NOT NULL default ''
Error number: 1060
Error message: Duplicate column name 'source'
ALTER TABLE impression_articles ADD COLUMN sourceurl VARCHAR(255) NOT NULL default ''
Error number: 1060
Error message: Duplicate column name 'sourceurl'
</sqlcode>
That are not really errors, but are messages.
Those messages are not really something to worry about.
In revision 23752 I've updated the update script and the messages ain't visible anymore.
Those messages are not really something to worry about.
In revision 23752 I've updated the update script and the messages ain't visible anymore.
Now is great, thank you for the fix.