Skip to content

u/Ringraye

In this archive from Jan 2019 to Jan 2020

1
posts
205
comments
1
media
392
score

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.

1 points

You need to set up the Vhosts in Apache to have the domain point the subdirectory.

  1. In the XAMPP control panel, click the Config -> Browse Apache.

  2. Go to Conf folder. Go to Extra folder.

  3. Look for httpd-vhosts.conf file.

  4. Go to the bottom of the file and copy the original vhosts and paste it with your custom domain.

Eg,

<VirtualHost *:80>
    ServerName sample.com
    DocumentRoot "C:/xampp/htdocs/sample.com"
    SetEnv APPLICATION_ENV "development"
    <Directory "C:/xampp/htdocs/sample.com">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

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.

1 points

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.

2 points

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.

4 points

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.

1 points

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.

4 points

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.

find . -name weirdimagefile.jpg
5 points

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.

2 points

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.

1 points

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

1 points

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.

1 points

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.

1 points

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.

1 points

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.

1 points

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,

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 );
2 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.