Okay
  Public Ticket #2371165
SQL Error
Closed

Comments

  • David Wittenzellner started the conversation

    I've installed the Amelia-Plugin. However, I'm unable to use the email notifications. I've tried different smtp accounts from different servers. Also I've tried deactivating all plugins. Regardless of that, the error log shows a fairly long error statement. 

    AH01071: Got error 'sts fxc3xbcr Abfrage ALTER TABLE wz_amelia_notifications_sms_history DROP INDEX userId von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsSMSHistoryTable::buildTable PHP message: WordPress-Datenbank-Fehler Can't DROP 'wz_amelia_notifications_sms_history_ibfk_3'; check that column/key exists fxc3xbcr Abfrage ALTER TABLE wz_amelia_notifications_sms_history DROP FOREIGN KEY wz_amelia_notifications_sms_history_ibfk_3 von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsSMSHistoryTable::buildTable PHP message: WordPress-Datenbank-Fehler Can't DROP 'appointmentId'; check that column/key exists fxc3xbcr Abfrage ALTER TABLE wz_amelia_notifications_sms_history DROP INDEX appointmentId von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsSMSHistoryTable::buildTable PHP message: WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY (customFieldId) REFERENCES wz_amelia_custom_fields(id) ON DELETE CAS' at line 1 fxc3xbcr Abfrage ALTER TABLE wz_amelia_custom_fields_options ADD COLUMN FOREIGN KEY (customFieldId) REFERENCES wz_amelia_custom_fields(id) ON DELETE CASCADE von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, dbDelta PHP message: WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY (`serviceId`) REFERENCES wz_amelia_services(id) ON DELETE CASCADE' at line 1 fxc3xbcr Abfrage ALTER TABLE wz_amelia_custom_fields_services ADD COLUMN FOREIGN KEY (`serviceId`) REFERENCES wz_amelia_services(id) ON DELETE CASCADE von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, dbDelta PHP message: WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY (`eventId`) REFERENCES wz_amelia_events(id) ON DELETE CASCADE' at line 1 fxc3xbcr Abfrage ALTER TABLE wz_amelia_custom_fields_events ADD COLUMN FOREIGN KEY (`eventId`) REFERENCES wz_amelia_events(id) ON DELETE CASCADE von activate_plugin, do_action('activate_ameliabooking/ameliabooking.php'), WP_Hook->do_action, WP_Hook->apply_filters, AmeliaBooking\Plugin::activation, AmeliaBooking\Infrastructure\WP\InstallActions\ActivationDatabaseHook::init, AmeliaBooking\Infrastructure\WP\InstallActions\DB\AbstractDatabaseTable::init, dbDelta ', referer: ...


  •  2,572
    Aleksandar replied

    Hello David

    Thank you for your purchase.

    This error is linked to foreign keys in the database tables, and doesn't actually have anything to do with sending notifications.

    What PHP Version do you have on your website? If it's less than v.7 please update it, and test again.

    If that doesn't help, please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   David Wittenzellner replied privately
  •   Aleksandar replied privately