
Originally Posted by
ideasgirl
So happy to see this one converted to a plug-in. I'm having the following error while upgrading to latest ZC version:
Table '***_databasename.configuration' doesn't exist
Even though I've already installed 6 other plugins without issues.
PS: I do use prefix for the database.
Darn it, I know better!
Find the file /Installer/ScriptedInstaller.php in the distribution.
Change line 60 (highlighted below)
Code:
$this->executeInstallerSql(
"INSERT IGNORE INTO configuration
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
VALUES
('Display \"Other\" Referral option?', 'DISPLAY_REFERRAL_OTHER', 'true', 'Display \"Other - please specify\" with text box in referral source in account creation', 5, 10, 'zen_cfg_select_option([\'true\', \'false\'], ', now()),
('Require Referral Source?', 'REFERRAL_REQUIRED', 'true', 'Require the Referral Source in account creation', 5, 11, 'zen_cfg_select_option([\'true\', \'false\'], ', now())"
);
to
Code:
$this->executeInstallerSql(
"INSERT IGNORE INTO " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
VALUES
('Display \"Other\" Referral option?', 'DISPLAY_REFERRAL_OTHER', 'true', 'Display \"Other - please specify\" with text box in referral source in account creation', 5, 10, 'zen_cfg_select_option([\'true\', \'false\'], ', now()),
('Require Referral Source?', 'REFERRAL_REQUIRED', 'true', 'Require the Referral Source in account creation', 5, 11, 'zen_cfg_select_option([\'true\', \'false\'], ', now())"
);
Bookmarks