Error Establishing Database Connection
-
Hi. Been fiddling with my website and totally wrecked it when I used a dodgy functions code snippet in My Custom Functions (yes, I know, my bad). Couldn’t manually delete that plugin because the wreckage was rather extensive and had to get my host to delete it for me. Since then I can no longer reinstall My Custom Functions because it will “cause a fatal error”, (not a problem, I can do without) but wondering if it is just a coincidence that I now occasionally get “Error establishing a database connection” when I am in my admin area and checking how things look.
Host says they found these:
[Tue Jun 12 07:14:40 2018] [error] [client 195.147.74.201] The WC_Product::adjust_price function is deprecated since version 3.0. Replace with WC_Product::set_price / WC_Product::get_price., referer: https://carolinewhiteglass.co.uk/wp-admin/admin.php?page=wpseo_tools
[Tue Jun 12 07:14:48 2018] [error] [client 195.147.74.201] The WC_Product::adjust_price function is deprecated since version 3.0. Replace with WC_Product::set_price / WC_Product::get_price., referer: https://carolinewhiteglass.co.uk/wp-admin/admin.php?page=wpseo_titles
[Tue Jun 12 07:15:53 2018] [error] [client 195.147.74.201] The WC_Product::adjust_price function is deprecated since version 3.0. Replace with WC_Product::set_price / WC_Product::get_price., referer: https://carolinewhiteglass.co.uk/wp-admin/admin.php?page=wpseo_titles
[Tue Jun 12 07:16:48 2018] [error] [client 195.147.74.201] The WC_Product::adjust_price function is deprecated since version 3.0. Replace with WC_Product::set_price / WC_Product::get_price., referer: https://carolinewhiteglass.co.uk/wp-admin/admin.php?page=wpseo_titles&settings-updated=true
[Tue Jun 12 07:17:05 2018] [error] [client 195.147.74.201] The WC_Product::adjust_price function is deprecated since version 3.0. Replace with WC_Product::set_price / WC_Product::get_price., referer: https://carolinewhiteglass.co.uk/
[Tue Jun 12 07:17:05 2018] [error] [client 195.147.74.201] The WC_Cart::get_item_data function is deprecated since version 3.3. Replace with wc_get_formatted_cart_item_data., referer: https://carolinewhiteglass.co.uk/
They say it is likely outdated plugins but all are as up to date as they can be. Is there any chance it is due to my original disaster and would it be worth me rolling back (I have updraft) to before my dodgy code snippet day?
Please be nice as I am total amateur (although slightly overenthusiastic at times).
Caroline
The page I need help with: [log in to see the link]
- The topic ‘Error Establishing Database Connection’ is closed to new replies.