I have Wordpress Blog with [Goodnews Theme] version 5.9.5 (the latest) Recently it shows the following error [05-Apr-2019 11:10:17 UTC] WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/goodnews5/goodnews5/404.php’), get_header, locate_template, load_template, require_once(‘/themes/goodnews5/goodnews5/header.php’), do_shortcode, preg_replace_callback, do_shortcode_tag, mom_news_ticker, WP_Query->__construct, WP_Query->query, WP_Query->get_posts Wp dashboard works fine Frontend won't load. When activating any of the default themes (twenty fifteen etc.) the site works fine I … [Read more...] about WordPress database error Lost connection to MySQL server during query for query SELECT SQL_CALC_FOUND_ROWS
Exec query string sql server
We have are building a WordPress site on our intranet site and wish to connect it to a Microsoft SQL Server. I have downloaded and configured PHP and PHP Manager on IIS. I have also downloaded SQL Server DLL from the list of answered questions that popped on as I was typing the title of this thread. I downloaded those DLLs inside the PHP folder as instructed. When I fired up the server address to install WordPress, I was prompted to provide SQL DB name, username, password and DB hostname. I have also downloaded wp-db-Abstraction plugin, put the wp-db-abstraction.php file into the folder where the WordPress files are saved, put the wp-db-abstraction folder into wp_content as instructed by the online article I was reading. Inside this folder, there is a db.php file. I also copied this db.php file into foldername where the rest of the downloaded WordPress files reside. When I clicked to continue, I got the following error messages: Warning: mysqli_real_connect(): (HY000/2002): No … [Read more...] about How do I configure WordPress to talk to a Microsoft SQL Server database?
I am trying to redirect a default WP login form, if it's HTTP referer contains some specific query string parameter. Scenario: I need to redirect new users (the ones who just created their passwords using the link in their e-mail) to my custom login form, once the password is generated. The steps in WP password creation go like this: /wp-login.php?action=rp (this is the link you get in your e-mail, you type your new password there) /wp-login.php?action=resetpass (this is the screen where it says your password was saved and you can login) /wp-login.php (once the password is created, there is no query parameter anymore) I am able to redirect it when the action=resetpass argument is present, but that way the password won't get generated and my custom form thows "wrong password" error. My thinking is: I should be able to redirect the wp-login.php page if it's HTTP referer contained action=resetpass argument, that way it would fit my needs just fine. Here's my code: <?php … [Read more...] about Redirect a login form, if referer contains URL query string parameter
”Remove query strings from static resources” a common statement which you find while checking the loading time of your site in GTmetrix or any other related tool. We all know that Google is now using page speed to rank pages in their search results, so you must have a closer look at the all the aspects which are slowing down your site. You can use Google Page Speed, Pingdom Tool or GTmetrix to find out the parameters which are affecting the speed of your site and take action to rectify those issues. Today in this post, we will take remove query strings from static resources a very common parameter which affects loading speed of a site. You can’t cache a link with a “?” in its URL. The query string is a method used by developers of WordPress tools to pass the content values or to carry the version detail. Remove query strings from static resources Now, the question is how to remove query strings from static resources to make sure that it is not affecting … [Read more...] about How to Remove Query Strings From Static Resources