mdsimpson / contact-form-7-to-database-extension

CFDB - WordPress plugin to save form submissions into a database
GNU General Public License v3.0
240 stars 59 forks source link

Fatal error #14

Open msakiya opened 7 years ago

msakiya commented 7 years ago

Cannot redeclare CF7DBPlugin_i18n_init() (previously declared in /opt/bitnami/apps/wordpress/htdocs/website/wp-content/plugins/contact-form-7-to-database-extension/contact-form-7-db.php:51) in /opt/bitnami/apps/wordpress/htdocs/website/wp-content/plugins/contact-form-7-to-database-extension-master/contact-form-7-db.php on line 52

mdsimpson commented 7 years ago

Evidently you have it installed twice. Once under plugins/contact-form-7-to-database-extension (correct) and a second time under plugins/contact-form-7-to-database-extension-master (incorrect)

jamminjames commented 7 years ago

When you install this via the zip file in Wordpress, as you recommend elsewhere, it installs to the plugins/contact-form-7-to-database-extension-master folder. Why not allow it to be updated like other Wordpress plugins, anyway? I don't see any explanation for that anywhere.

Also, when I rename that folder, I get a warning when activating: "The plugin generated 729 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."

Lastly, is this plugin compatible with PHP 7?

Thank you.

mdsimpson commented 7 years ago

The problem is that "contact-form-7-to-database-extension-master" is not the intended directory. You probably took a zip off the master branch from git hub (hence "-master" added) instead of a release zip from https://github.com/mdsimpson/contact-form-7-to-database-extension/releases.

If you install GitHub updater, then you can update it just like any other plugin. https://github.com/afragen/github-updater

jamminjames commented 7 years ago

Okay, thanks!