Home › Forums › Legacy Support › Support queries › Setup issues › Database error for MariaDB
- This topic has 15 replies, 3 voices, and was last updated 4 years, 1 month ago by Veronica.
-
AuthorPosts
-
March 5, 2020 at 10:04 am #244662ART-ProvidersParticipantMy site admin struggles to load and it seems to be due to the error below following the 3.9 upgrade. WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE meta2.meta_key LIKE 'currency_23' ' at line 6 for query SELECT count(*) as count FROM wp_posts as posts LEFT JOIN wp_postmeta as meta on posts.id = meta.post_id LEFT JOIN wp_postmeta as meta2 on posts.id = meta2.post_id WHERE meta.meta_key LIKE 'payout_23' WHERE meta2.meta_key LIKE 'currency_23' AND YEAR(posts.post_date_gmt) = YEAR(CURRENT_TIMESTAMP) ORDER BY date ASC LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, Wplms_Commissions_API->get_instructor_payouts
Can you look into the possible cause and fix pleaseMarch 6, 2020 at 12:30 pm #244842VeronicaModeratorhi, I have checked the thing in the file. and noticed yes you are right there is a bug we will fix it. and give you an update for this plugin.March 6, 2020 at 1:38 pm #244857ART-ProvidersParticipantMuch appreciated. ThanksMarch 7, 2020 at 8:08 am #244924Anshuman SahuKeymasterTo fix this at your end please share your valid ftp credentials in private reply ,March 10, 2020 at 12:28 am #245125ART-ProvidersParticipantThis reply has been marked as private.March 11, 2020 at 7:51 am #245224VeronicaModeratorhi, I have made changes in the file now check it please.March 13, 2020 at 8:42 pm #245627ART-ProvidersParticipantWe have a slightly different error now but might be still related
[12-Mar-2020 20:55:16 UTC] WordPress database error Unknown column 'date' in 'order clause' for query SELECT count(*) as count FROM wp_posts as posts LEFT JOIN wp_postmeta as meta on posts.id = meta.post_id LEFT JOIN wp_postmeta as meta2 on posts.id = meta2.post_id WHERE meta.meta_key LIKE 'payout_28' AND meta2.meta_key LIKE 'currency_28' AND YEAR(posts.post_date_gmt) = YEAR(CURRENT_TIMESTAMP) ORDER BY date ASC LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, Wplms_Commissions_API->get_instructor_payouts [12-Mar-2020 20:56:19 UTC] WordPress database error Unknown column 'date' in 'order clause' for query SELECT count(*) as count FROM wp_posts as posts LEFT JOIN wp_postmeta as meta on posts.id = meta.post_id LEFT JOIN wp_postmeta as meta2 on posts.id = meta2.post_id WHERE meta.meta_key LIKE 'payout_28' AND meta2.meta_key LIKE 'currency_28' AND YEAR(posts.post_date_gmt) = YEAR(CURRENT_TIMESTAMP) ORDER BY date ASC LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, Wplms_Commissions_API->get_instructor_payoutsMarch 14, 2020 at 5:20 am #245651Anshuman SahuKeymasterok we will be checking this on Monday.Please ping back for a reminder.March 17, 2020 at 7:23 am #246006ART-ProvidersParticipantCan you follow up on this pleaseMarch 18, 2020 at 1:53 pm #246219Anshuman SahuKeymasterHi we have fixed that too but we could not make that change in your site beccause ftps is not working . Please share new credentials again to fix that .March 19, 2020 at 11:41 pm #246441ART-ProvidersParticipantI tested the FTP, same details are working. Can you retry please. You may want to type in password if copy isnt workingMarch 20, 2020 at 1:40 pm #246549Anshuman SahuKeymasterMade the changes in your file please check now .March 23, 2020 at 9:51 pm #246973ART-ProvidersParticipantThanks Alex. No more database errors noted. We are planning to upgrade MariaDB on the server to version 10+ Would that be a problem? Since you made the change, when we create course, there is no Buy button on product page. Could that be a related issue?March 24, 2020 at 1:15 pm #247101Anshuman SahuKeymasterWell we have not checked that yet but if wordpress supports that version then there wont be any problems.March 25, 2020 at 11:19 am #247255ART-ProvidersParticipantThanks Alex for all the help -
AuthorPosts
- The topic ‘Database error for MariaDB’ is closed to new replies.