Hello,
We get database errorrs randomly on the site.
The values get set to some TD variables.
One time it was ‘tds_mega_menu_subcategories_background’, ‘tds_mobile_text_active_color’, ‘td_module_mx9_title_excerpt
2020-12-04 13:28:37 33446 [Warning] Access denied for user ‘database_user’@’localhost’ to database ‘tds_mobile_text_active_color’
I have been debugging the wp-db core file to find out what database information is being sent.
\wp-db.php
The port information being sent is:
file_put_contents(/public_html/wp-content/ll.log”,’port12′.print_r($this->port,true).PHP_EOL,FILE_APPEND);
Returns tds_mobile_text_active_color
It doesn’t make sense.
Our site has these values:
host:127.0.0.1
dbuser:vwmain_main
port:tds_mobile_text_active_color
socket:tds_mobile_text_active_color
client_flags:tds_mobile_text_active_color
dbhmysqli Object
(
[affected_rows] => tds_mobile_text_active_color
[client_info] => mysqlnd 5.0.12-dev – 20150407 – $Id: 7cc7cc96xxxxxx2abb23 $
[client_version] => 50012
[connect_errno] => 0
[connect_error] => tds_mobile_text_active_color
[errno] => 0
[error] =>
[error_list] => tds_mobile_text_active_color
[field_count] => tds_mobile_text_active_color
[host_info] => tds_mobile_text_active_color
[info] => tds_mobile_text_active_color
[insert_id] => tds_mobile_text_active_color
[server_info] => tds_mobile_text_active_color
[server_version] => tds_mobile_text_active_color
[stat] => tds_mobile_text_active_color
[sqlstate] => tds_mobile_text_active_color
[protocol_version] => tds_mobile_text_active_color
[thread_id] => tds_mobile_text_active_color
[warning_count] => tds_mobile_text_active_color
)
Another site on the same server has these values.
host:localhost
dbuser:dbuser_main
port:
socket:
client_flags:
port11:
dbh:mysqli Object
(
[affected_rows] =>
[client_info] => mysqlnd 5.0.12-dev – 20150407 – $Id: 7cc7cc96xxxxx7c2abb23 $
[client_version] => 50012
[connect_errno] => 0
[connect_error] =>
[errno] => 0
[error] =>
[error_list] =>
[field_count] =>
[host_info] =>
[info] =>
[insert_id] =>
[server_info] =>
[server_version] =>
[stat] =>
[sqlstate] =>
[protocol_version] =>
[thread_id] =>
[warning_count] =>
)
I have switched to the twentytwenty theme and disabled all TD related plugins(td-cloud-library and td-social-counter).
Even then the values remained.
We then go to cpanel, and reset the php settings to get it to work.
Any ideas? The site keeps going down because of this.
Hi valuewalk, if you are using the last theme version, Newspaper v10.3.9.1 with WordPress v5.6 and the theme requirements are set as in our guide -> https://forum.tagdiv.com/requirements-for-newspaper/ then should be no problems. Also make sure that you do not have some plugins that can interfere with the theme settings.
If the problem still persist, we can take a look, please make a full backup and send us an email at contact@tagdiv.com and provide admin login, as well as cPanel. We will take a look. Include a link to this topic in the email.
Let me know the results!
Thanks you!