cleancoded
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I broke my site, HTTP ERROR 500Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to
/wp-content/themes/and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.If that does not resolve the issue, it’s possible that a
.htaccessrule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the.htaccessfile. If you can’t find a.htaccessfile, make sure that you have set your SFTP or FTP client to view invisible files.If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.
Forum: Fixing WordPress
In reply to: Hyperlink to the pagesI would first make a child theme, so you can still update your theme whenever the theme author releases updates.
More information on that:
https://codex.ww.wp.xz.cn/Child_Themes
Then, in your child theme folder, add a copy of the archive.php file from the main theme folder. This is the page template that you will want to update.
I can’t provide any specific instructions or code, because it seems you’re already using a customized (updated from the original) version of this theme. When I installed the latest version of this theme to a new test install of WordPress, I created test posts and viewed the post category page, and the titles link to posts as expected. I additionally do not see any theme options, or Customizer options for changing this setting.
Here’s a video walkthrough I created in troubleshooting the issue, outlining the expected functionality in the out-of-the-box version of the theme you’re using:
Forum: Fixing WordPress
In reply to: Blog aliasI would create both a /blog page and an /all page, make /all a child of /blog, set the /blog/all page to be the main blog page, and then set up a 301 redirect for /blog to redirect to /blog/all — would that work for you?
Forum: Fixing WordPress
In reply to: Product price showing as NAn in wp-admin and website bothI’m seeing prices on your site right now:
Forum: Fixing WordPress
In reply to: Links in footer not being followedYour ‘Products’ and ‘Support’ pages are both redirecting to other pages (that you aren’t linking to). So, those would technically be orphaned, you’re not linking to the destination pages.
Forum: Fixing WordPress
In reply to: Product price showing as NAn in wp-admin and website bothDid you try the exercise I outlined above, deactivating your theme and plugins with the ‘Health Check’ plugin to rule-out conflicts?
Forum: Fixing WordPress
In reply to: Out of MemoryIf you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule out a theme-specific issue.
Otherwise, here are three ways to increase PHP’s memory allocation:
1. If you can edit or override the system
php.inifile, increase the memory limit. For example,memory_limit = 128M2. If you cannot edit or override the system
php.inifile, addphp_value memory_limit 128Mto your.htaccessfile.3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account.
(in the above examples, the limit is set to 128MB)
Forum: Fixing WordPress
In reply to: Pegar HTMLLo siento, el español no es mi primer idioma.
Debería poder pegar código html en el “Editor de texto.” Haga clic en la pestaña “Text” cuando cree o edite una publicación para agregar código HTML.
Forum: Fixing WordPress
In reply to: Problem with Editing page and posts in WordPressI see that you’re using WPBakery Page Builder. Are you able to successfully edit pages and posts if you deactivate that plugin?
Forum: Fixing WordPress
In reply to: Cannot save article when adding a URL?This may be a plugin or theme conflict. Try installing the “Health Check” plugin:
https://ww.wp.xz.cn/plugins/health-check/
On the troubleshooting tab, you can click the button to disable all plugins and change to a default theme for you, while you’re still logged in, without affecting normal visitors to your site.
If the problem goes away (you’re able to publish posts and pages that include a URL), from the Plugins page, click “Enable while troubleshooting” to start enabling plugins one by one to identify the conflict.
Forum: Fixing WordPress
In reply to: Strange URL Redirection after Page created with similiar nameDoes the issue persist after deactivating all plugins, reverting to default theme, and following the 3 steps outlined above? I know you’re editing a live site, with a caching plugin installed, so this may be hard to do. Do you want to try setting up a staging environment with a copy of the live site and try deactivating theme/plugins to troubleshoot there?
This is probably part of your testing currently in progress, but I’m seeing a 404 error when clicking on any links to any other posts or pages on your site from the homepage.
Forum: Fixing WordPress
In reply to: Draft posts showing up in public post menuHow are you adding the posts to your sidebar? It sounds like this code or widget you’re using is not pulling posts by post_status, which should hide posts with a protected status.
By default protected statuses are
'future','draft'and'pending'.Here’s some more information about that:
https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Status_Parameters
Forum: Fixing WordPress
In reply to: Product price showing as NAn in wp-admin and website bothThis may be a plugin or theme conflict.
You could try installing the “Health Check” plugin (https://ww.wp.xz.cn/plugins/health-check/) which allows you to troubleshoot your site without having any affect on your normal visitors. Open your site in an incognito window to verify this.
Then, while in troubleshooting mode, from the Plugins page, click the “Enable while troubleshooting” for WooCommerce, and see if your /shop page displays product prices without any other plugins activated (still in troubleshooting mode, which is not affecting your visitors).
If your site does display product prices correctly, then try enabling your other plugins (and then your theme) one by one to see which one is responsible for the conflict.
Forum: Fixing WordPress
In reply to: Strange URL Redirection after Page created with similiar nameOk, and just to be sure, you’re not using any plugins that automatically create redirects when updating page and post slugs, right? Yoast SEO does this, for example.
Please try this:
- Create a backup (copy and paste content to Notepad or similar) of the “Thumb Duplication” and “Distal Radius Fractures” pages
- Delete both pages (both the original and the redirected page) and be sure to delete them from Trash
- Create both pages again using the correct slug
You can additionally remove your current .htaccess file (or rename it to .htaccess-old so it’s easy to revert if needed) and from the WordPress backend area, go to Settings > Permalinks > Save, which creates a fresh .htaccess.
Forum: Fixing WordPress
In reply to: Strange URL Redirection after Page created with similiar nameThe previously used page and post slugs are stored in the database in the wp_postmeta table. Check for _wp_old_slug in the meta_key column (the actual slugs being stored in the meta_value column). If you want this default behavior not to happen in a particular case, this is where to delete a value and search for “used” URLs.