Editing in admin panel not saved
-
When trying to edit a review in https://site/wp-admin/admin.php?page=wpcr_view_reviews, the changes are not saved. In PHP error log I see:
[16-Sep-2015 16:01:35 UTC] PHP Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in ..../wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php on line 900 [16-Sep-2015 16:01:35 UTC] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in ..../wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php on line 900 [16-Sep-2015 16:01:35 UTC] PHP Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in ..../wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php on line 901 [16-Sep-2015 16:01:35 UTC] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in ..../wp-content/plugins/wp-customer-reviews/wp-customer-reviews-admin.php on line 901
Replacing
mysql_real_escape_string
with$wpdb->_escape
in functionreal_admin_view_reviews()
(6 occurences) fixes the issue.
- The topic ‘Editing in admin panel not saved’ is closed to new replies.