Sorry for the late reply. It's been a busy week. Are you still having issues?
192.168.x.x is usually your internal network IP address. This can change. 127.0.0.1 is always localhost, aka your computer.
Did you replace the default Vhosts in the file or did you add your own vhosts after it? The default vhosts that exists is the catch all and if there's only 1 defined vhosts, that becomes the catch all, I believe. You will note that my step 4 is to copy/paste to add a new vhosts.
That's the shortcode you place on your login page if you were using that plugin for for logins/registration.
I don't know what code you are using for your login pages.
But if your login page was /login, you would edit the page to look for the User Registration shortcode and update it. If you are not using User Registration shortcode for your login, then you need to figure out what you are using.
Besides supporting the developer, I think among the pro features that make it worth it are the repeater and clone fields. It just makes it so much easier to deal with variable content.
In Query Monitor, check if the HTTP API Calls has anything listed besides the WP plugins. I don't recall if the error would show up here or not. Or just check all the QM tabs and see if you can find something that is taking a long time to execute.
Simplest way would be to disable all plugins and enable them one by one until you find the culprit although this might not be feasible.
Along with the above method, try lociating your Apache/PHP error logs and see if a time out/error occurred when WP was making the request. Usually, when WP fails to reach the server, an error is recorded.
A potential method would be visiting the web pages listed for the author of each plugin. Perhaps you can find the culprit if the author's web page itself is down.
Is there any reason why you can't just filter the analytics you have now to limit your scope? This seems like the easiest option.
You could just add analytics tags to the blog pages if you want to just track data in that area. If you're using something like Google Tag Manager, you can set up conditions on when the tag fires.
Do you have any non-repository plugins? It might be an issue of one the plugins checking for an update but the server it's querying is slow or not responding.
Maybe check if you have the same issue if you go to Dashboard -> Updates page.
Do you have access to PHP error logs and such? You can probably load up the error logs and search for wp-admin and it should give you the path of where the error occurred.
If you have a known media file for the site, like a uniquely named logo file, how about searching for that image via SSH? Linux would give you the location of where that file is and then you can extrapolate from there.
In terms of SEO, Google has stated that they prefer HTTPS version of their site. In things like Search Console (formerly Webmasters) and Google Analytics, you may wish to update your settings to prefer the https version of your site so that Google will (hopefully) use that first.
It might be good for you to use database search or db search and replace plugin and see if you specifically link to any http or naked domain version of your site and fix it to point the https://www version to help reduce those type of links.
The multiple redirects shouldn't really be an issue in most cases. Annoying it might be for people who actually notice this but most people won't. From a user perspective, most users are being taught to look for the lock (ssl) icon even if they don't know what it really means.
If you have Gravity Forms already installed: Forms -> System Status has a "upload folder". In a normal WP build, your root would be 2 levels higher. Some other plugins will probably have something similar. Wordfence? What plugins are you using?
If this is a site under a multisite, you should grab the Site ID and navigate to their site ID folder. I believe that only uploads are separated. Themes and Plugins are shared throughout the multisites.
Do you know what version of PHP your shared hosting is running? Have you checked the Apache/PHP log files? White page on a PHP site is usually a PHP error somewhere.
PHP 5.6.x is OLD and has reached it's EOL. It could simply be that your pages are attempting to use a more modern PHP version with functions that did not exists in 5.6.x. Latest version of Elementor requires PHP 7. https://docs.elementor.com/article/38-requirements
It sounds like you have a generic http -> https redirect set. Then WP site URL is set to the www. address so it redirects that when it hits your naked domain. You can fix it by adding in the www in the first redirect.
First step is to open up the export file and see what you got. Gz extension indicates a Gnuzip (compressed) file. Extract the file using something like 7zip or Winrar.
It's hard to know if the export file is a full site export which includes things like the themes and uploads or just a database output.
If it's just one file, open the file in something like notepad and see what type of file it is. If it has SQL commands, it's a database export which means it's a copy of the database as it was when it was exported. You can import this directly into the database to recreate it.
If it's an WPXML file, it can be uploaded through the normal WP import tool.
Therefore, when a user visits a page, you can add that page to the session or cookie and then simply have a function that checks the session/cookie and if true, adds a specific class to it via the post_class hook. However, if a user goes back to a previous page, the browser's cache may load instead of the "updated" page with faded.
Instead of the hook in PHP, you may try having a piece of a javascript that checks the cookie and appends a class to posts by searching for the class "type-post" or something similar that is used in the normal class outputs.
Please be aware that cookies/sessions need to be reviewed for GDPR permissions.
Bluesix is suggesting using a Find in Files, which Notepad++ has, to search all files in a directory for the string.
Create an offline copy of your WP (themes and plugins folder at minimum) and then use the find in files to have Notepad++ search all the files for that string.
Generally, your vhosts is set so that the public_html folder is the root directory of your website. This is not always the case but it generally is. You can usually assume wherever your wp-config.php file is, that's your root directory.
Are you accessing the correct location where you uploaded the file? If you uploaded this the html files in a folder, you should be trying to access it in that folder and not the root as is provided in your link.
function custom_query_category_archives_example( $query ) {
//Don't do this on admin pages and only on main query for these post types archives
if ( ! is_admin() && $query->is_main_query() && (is_post_type_archive( 'exampleA' ) || is_post_type_archive( 'exampleB' ) ) ) {
//Set Post Types for the main query
$query->set( 'post_type', array( 'exampleA', 'exampleB' ) );
return;
}
}
add_action( 'pre_get_posts', 'custom_query_category_archives_example', 1 );
If you're using Elementor's pop-up builder, you should probably ask them if there's some way to do this since this goes outside of normal coding. You should work within their framework otherwise you'll end up potentially rebuilding code every update.
Over time, yes, they will disappear. You'll probably occasionally get a random visit on a bad URL but that's just the nature of the internet (old cached copy or something similar).
404s are not intrinsically bad if the 404 is correct (in this case, it is) as long as it was linked properly (as it previously wasn't but now should be fixed). Since the link is fixed, you can probably safely ignore this set of 404s if you seem them again.
That's an ad spot you have that isn't serving any ads. It's being embedded as an iFrame block.
Sorry for the late reply. It's been a busy week. Are you still having issues?
192.168.x.x is usually your internal network IP address. This can change. 127.0.0.1 is always localhost, aka your computer.
Did you replace the default Vhosts in the file or did you add your own vhosts after it? The default vhosts that exists is the catch all and if there's only 1 defined vhosts, that becomes the catch all, I believe. You will note that my step 4 is to copy/paste to add a new vhosts.
What about building a custom view and then applying a filter to that view? Then you should only need to select that view to see traffic?
You need to set up the Vhosts in Apache to have the domain point the subdirectory.
In the XAMPP control panel, click the Config -> Browse Apache.
Go to Conf folder. Go to Extra folder.
Look for httpd-vhosts.conf file.
Go to the bottom of the file and copy the original vhosts and paste it with your custom domain.
Eg,
Repeat for all the domains you do.
Usually there's two parts to this. The DNS conversion, which you did in your hosts file. Then the web server set up, which you didn't do.
That's the shortcode you place on your login page if you were using that plugin for for logins/registration.
I don't know what code you are using for your login pages.
But if your login page was /login, you would edit the page to look for the User Registration shortcode and update it. If you are not using User Registration shortcode for your login, then you need to figure out what you are using.
The User Registration plugin has an option in the shortcode where you put the login form to redirect to your desired location:
https://docs.wpeverest.com/docs/user-registration/how-to/how-to-change-redirect-url-after-login/
LoginPress likewise has similar options:
https://wpbrigade.com/docs-article/loginpress-documentation/#login-redirect
Besides supporting the developer, I think among the pro features that make it worth it are the repeater and clone fields. It just makes it so much easier to deal with variable content.
It's on the homepage. Coupon code: BLACKFRIDAY2019 (use between 2019-11-29 to 2019-12-02).
ACF Pro: 25% off and still lifetime license. They're changing to a subscription plan in 2020 so a great time to buy your own license (or extras).
Edit for lazy: https://www.advancedcustomfields.com/
Use the coupon BLACKFRIDAY2019 for 25% off all ACF PRO licenses! Valid from Friday 29th Nov - Monday 2nd Dec (AEST).
Does your server have ports open to FTP or SFTP out of the server? Please do note that FTP/FTPS and SFTP are not the same thing.
In Query Monitor, check if the HTTP API Calls has anything listed besides the WP plugins. I don't recall if the error would show up here or not. Or just check all the QM tabs and see if you can find something that is taking a long time to execute.
Simplest way would be to disable all plugins and enable them one by one until you find the culprit although this might not be feasible.
Perhaps enable WP_DEBUG_LOG to see if WP is timing out:
https://wordpress.org/support/article/debugging-in-wordpress/
Along with the above method, try lociating your Apache/PHP error logs and see if a time out/error occurred when WP was making the request. Usually, when WP fails to reach the server, an error is recorded.
A potential method would be visiting the web pages listed for the author of each plugin. Perhaps you can find the culprit if the author's web page itself is down.
Is there any reason why you can't just filter the analytics you have now to limit your scope? This seems like the easiest option.
You could just add analytics tags to the blog pages if you want to just track data in that area. If you're using something like Google Tag Manager, you can set up conditions on when the tag fires.
Do you have any non-repository plugins? It might be an issue of one the plugins checking for an update but the server it's querying is slow or not responding.
Maybe check if you have the same issue if you go to Dashboard -> Updates page.
Ah, missed that part.
Do you have access to PHP error logs and such? You can probably load up the error logs and search for wp-admin and it should give you the path of where the error occurred.
If you have a known media file for the site, like a uniquely named logo file, how about searching for that image via SSH? Linux would give you the location of where that file is and then you can extrapolate from there.
In terms of SEO, Google has stated that they prefer HTTPS version of their site. In things like Search Console (formerly Webmasters) and Google Analytics, you may wish to update your settings to prefer the https version of your site so that Google will (hopefully) use that first.
It might be good for you to use database search or db search and replace plugin and see if you specifically link to any http or naked domain version of your site and fix it to point the https://www version to help reduce those type of links.
The multiple redirects shouldn't really be an issue in most cases. Annoying it might be for people who actually notice this but most people won't. From a user perspective, most users are being taught to look for the lock (ssl) icon even if they don't know what it really means.
If you have Gravity Forms already installed: Forms -> System Status has a "upload folder". In a normal WP build, your root would be 2 levels higher. Some other plugins will probably have something similar. Wordfence? What plugins are you using?
If this is a site under a multisite, you should grab the Site ID and navigate to their site ID folder. I believe that only uploads are separated. Themes and Plugins are shared throughout the multisites.
Do you know what version of PHP your shared hosting is running? Have you checked the Apache/PHP log files? White page on a PHP site is usually a PHP error somewhere.
PHP 5.6.x is OLD and has reached it's EOL. It could simply be that your pages are attempting to use a more modern PHP version with functions that did not exists in 5.6.x. Latest version of Elementor requires PHP 7.
https://docs.elementor.com/article/38-requirements
Where are your redirects set? Htaccess?
It sounds like you have a generic http -> https redirect set. Then WP site URL is set to the www. address so it redirects that when it hits your naked domain. You can fix it by adding in the www in the first redirect.
First step is to open up the export file and see what you got. Gz extension indicates a Gnuzip (compressed) file. Extract the file using something like 7zip or Winrar.
It's hard to know if the export file is a full site export which includes things like the themes and uploads or just a database output.
If it's just one file, open the file in something like notepad and see what type of file it is. If it has SQL commands, it's a database export which means it's a copy of the database as it was when it was exported. You can import this directly into the database to recreate it.
If it's an WPXML file, it can be uploaded through the normal WP import tool.
It will partially depend on how your theme is set up. Most themes in general will use the post_class() function to output the classes when it generates the page or excerpt.
https://developer.wordpress.org/reference/functions/post_class/
Therefore, when a user visits a page, you can add that page to the session or cookie and then simply have a function that checks the session/cookie and if true, adds a specific class to it via the post_class hook. However, if a user goes back to a previous page, the browser's cache may load instead of the "updated" page with faded.
Instead of the hook in PHP, you may try having a piece of a javascript that checks the cookie and appends a class to posts by searching for the class "type-post" or something similar that is used in the normal class outputs.
Please be aware that cookies/sessions need to be reviewed for GDPR permissions.
Bluesix is suggesting using a Find in Files, which Notepad++ has, to search all files in a directory for the string.
Create an offline copy of your WP (themes and plugins folder at minimum) and then use the find in files to have Notepad++ search all the files for that string.
Generally, your vhosts is set so that the public_html folder is the root directory of your website. This is not always the case but it generally is. You can usually assume wherever your wp-config.php file is, that's your root directory.
So
http://structure.ninja/ = /public_html/
http://structure.ninja/somefolder = /public_html/somefolder/
Are you accessing the correct location where you uploaded the file? If you uploaded this the html files in a folder, you should be trying to access it in that folder and not the root as is provided in your link.
Option 1: Use a Parent/Child set up for the categories. The main category would show articles from both child categories.
Option 2: Use pre_get_posts and create a function to modify the query for the two categories to include both categories.
https://developer.wordpress.org/reference/hooks/pre_get_posts/
Eg,
If you're using Elementor's pop-up builder, you should probably ask them if there's some way to do this since this goes outside of normal coding. You should work within their framework otherwise you'll end up potentially rebuilding code every update.
Over time, yes, they will disappear. You'll probably occasionally get a random visit on a bad URL but that's just the nature of the internet (old cached copy or something similar).
404s are not intrinsically bad if the 404 is correct (in this case, it is) as long as it was linked properly (as it previously wasn't but now should be fixed). Since the link is fixed, you can probably safely ignore this set of 404s if you seem them again.