It seems that the Query Monitor plugin is still trying to access the staging website path after the migration.
Is there anyone who is getting the same error? How can I update the allowed path correctly?
]]>After reactivating the query monitor, it creates the db.php symbolic link in the /wp-content directory, although it’s created by query-monitor plugin, on the frontend, it still showing there’s conflict?
db.php -> /bitnami/wordpress/wp-content/plugins/query-monitor/wp-content/db.php
https://cln.sh/qgOmyK
]]>I know that “Queries by Component” and “rows affected” won’t work if there is a conflicting db.php
file.
Do you have a complete list of what else is disabled in that case?
I have a need for a secure DB conn, so I’m evaluating Secure DB Connection for that purpose. Of course, that plugin needs it’s own db.php
and I’m just wondering what parts of QM I’ll be missing out on.
I get a red error at the top of Queries that says “Extended query information such as the component and affected rows is not available. A conflicting db.php file is present. See this wiki page for more information.”
When I view that page I’m not sure what can be done to resolve this. Any suggestions?
Thank you,
Chris
I constantly get some php warnings like that and I need your help to figure out what that means and how to get rid off those warnings.
Error message
E_WARNING: Error while sending QUERY packet. PID=18213
Stack trace
…lled at /home/user/web/mydomain.com/public_html/wp-includes/
wp-db.php (1877)
…lled at /home/user/web/mydomain.com/public_html/wp-includes/
wp-db.php (1765)
mydomain.com/public_html/wp-content/plugins/w3-total-cache/
DbCache_Wpdb.php (247)
mydomain.com/public_html/wp-content/plugins/w3-total-cache/
DbCache_WpdbInjection.php (54)
mydomain.com/public_html/wp-content/plugins/w3-total-cache/
DbCache_Wpdb.php (152)
mydomain.com/public_html/wp-content/plugins/w3-total-cache/
DbCache_Wpdb.php (390)
…_html/wp-content/plugins/w3-total-cache/
DbCache_WpdbInjection_QueryCaching.php (153)
mydomain.com/public_html/wp-content/plugins/w3-total-cache/
DbCache_Wpdb.php (152)
…lled at /home/user/web/mydomain.com/public_html/wp-includes/
wp-db.php (2313)
…led at /home/user/web/mydomain.com/public_html/wp-includes/
option.php (506)
…c_html/wp-content/plugins/w3-total-cache/
ObjectCache_WpObjectCache_Regular.php (553)
…c_html/wp-content/plugins/w3-total-cache/
ObjectCache_WpObjectCache_Regular.php (327)
…om/public_html/wp-content/plugins/w3-total-cache/
ObjectCache_WpObjectCache.php (63)
…t /home/user/web/mydomain.com/public_html/wp-content/
object-cache.php (80)
…led at /home/user/web/mydomain.com/public_html/wp-includes/
option.php (579)
…ansient called at /home/user/web/mydomain.com/public_html/
wp-cron.php (127)
Please help
Thank you in advance
]]>Warning: mysql_query(): Unable to save result set in /home/site/public_html/wp-includes/wp-db.php on line 1860
Warning: Error while sending QUERY packet. PID=30375 in /home/site/public_html/wp-includes/wp-db.php on line 1860
Warning: Empty row packet body in /home/site/public_html/wp-includes/wp-db.php on line 1860
]]>Parse error: syntax error, unexpected ‘[‘ in /mnt/web3/a3/12/51482912/htdocs/wordpress/wp-content/plugins/post-access-controller/classes/db.php on line 97
What does it mean and how this error can be fixed?
I need the plugin because a lot of my News are restricted to users and currently all users can see the News.
https://www.ads-software.com/plugins/post-access-controller/
]]>
WARNING: wp-content/plugins/w3-total-cache/lib/W3/DbCacheAdminEnvironment.php:155 - file_get_contents(/wp-content/db.php): failed to open stream: No such file or directory require_once('wp-admin/admin-header.php'), do_action('admin_notices'), call_user_func_array, W3_Plugin_TotalCacheAdmin->admin_notices, W3_AdminEnvironment->fix_in_wpadmin, W3_DbCacheAdminEnvironment->fix_on_wpadmin_request, W3_DbCacheAdminEnvironment->delete_addin, W3_DbCacheAdminEnvironment->is_dbcache_add_in, file_get_contents
I’m not familiar with /wp-content/db.php
as it’s not a WordPress core file. What is it’s purpose and how do I fix this error?
I’m running v0.9.4.1 of the plugin on WP4.4.2 and php 5.6.
Thank you in advance for any help with this issue.
https://www.ads-software.com/plugins/w3-total-cache/
]]>In a nutshell, the above site leads you to add two filters (pre_option_home and pre_option_siteurl) that replace the url with the dev url. That way, the database gets the right URL (the live site) written to it and the dev site (my local computer) see links and whatnot linking to the local site.
This all fails when this Polylang option is on:
The language is set from the directory name in pretty permalinks
Example: https://local-dev-site/blog/en/my-post/
That is, if my url is:
https://local-dev-site/blog/some-post-name/
My code for a dev site vs a live site works fine.
If I turn that option on, the URL SHOULD BE:
https://local-dev-site/blog/es/some-post-name/
But instead it rewrites to:
https://live-site-domain.com/blog/es/some-post-name/
I believe polylang is seeing the /en/ (or /es/) and redirecting using something that my pre_option_home or pre_option_siteurl isn’t catching… thus the redirect goes to the true URL (instead of my local copy).
To solve this, I think either polylang needs to be tweaked to use something else to get the url or my db.php needs to be changed to add something other than pre_option_siteurl or pre_option_home.
Anyone have an idea?
https://www.ads-software.com/plugins/polylang/
]]>Found other threads on that saying that it’s fixed but still the same with the latest version from the svn.
[14-Apr-2015 12:17:50 UTC] PHP Notice: Undefined variable: write in /var/www/xyz_com/wp-content/db.php on line 555
[14-Apr-2015 12:17:50 UTC] PHP Notice: Undefined variable: write in /var/www/xyz_com/wp-content/db.php on line 590
[14-Apr-2015 12:17:51 UTC] PHP Notice: Undefined variable: server in /var/www/xyz_com/wp-content/db.php on line 625
[14-Apr-2015 12:17:51 UTC] PHP Notice: Undefined variable: server in /var/www/xyz_com/wp-content/db.php on line 625
[14-Apr-2015 12:17:53 UTC] PHP Notice: Undefined variable: server in /var/www/xyz_com/wp-content/db.php on line 625
[14-Apr-2015 12:17:53 UTC] PHP Notice: Undefined variable: server in /var/www/xyz_com/wp-content/db.php on line 625
[14-Apr-2015 12:17:54 UTC] PHP Notice: Undefined variable: server in /var/www/xyz_com/wp-content/db.php on line 625
[14-Apr-2015 12:17:54 UTC] PHP Notice: Undefined variable: server in /var/www/xyz/wp-content/db.php on line 625
https://www.ads-software.com/plugins/hyperdb/
]]>