Hello,
the download of downloadable products (https://einzigart-katharina.de/shop/digitale-produkte/digitaler-guide-aquarell-herbstblumen/) in one of my clients shop does not work.
After click on the download URL in the account area or emails, this error message shows up: The download log entry could not be inserted into the database.
After activating the debug mode of WordPress, it shows this database error:
WordPress-Datenbank-Fehler: [Cannot add or update a child row: a foreign key constraint fails (wordpress_e
.wp_wc_download_log
, CONSTRAINT fk_tmp35313c_wc_download_log_permission_id
FOREIGN KEY (permission_id
) REFERENCES OVcm6_woocommerce_downloadable_product_permissions
(`perm)]
INSERT INTO wp_wc_download_log
….
If I open the download link, created by me, the download works absolutely fine.
Here the download link, created by WooCommerce in the order (for you to test): https://einzigart-katharina.de/?download_file=51283&order=wc_order_T2iwg394h1TIW&uid=d0ae069860857684e2ae5dd3bbf56b3ac07029ee5d9bcd8d78fe459963540cca&key=eb2b18bb-7f91-4853-8ef4-2097fdef12d7
I already updated the WooCommerce database in WooCommerce – Status – Tools – Update database but it did not help.
I would be very thankful if you could help me to fix this issue as soon as possible.
Christian