WordPress Pretty Permalinks - wordpress

Pretty permalinks are no longer working, I've tried all the obvious things;
Re-save permalinks
Delete and regenerate HTAccess
Disable all plugins
Restarted Apache
Cleared browser cache (although this issue happens for everyone)
Checked the tables via PHPMyAdmin
Enabled WP debugging, nothing is showing
The pages are there and work fine if using plain links.
This is the only site that has the issue, other sites running on the same dev server are fine.
The issue is only apparent in recent versions of the database, so I do have a working version that could be used for debugging, but I'm unsure what to be looking for.
Any help would be greatly received!

This was caused by a CPT for which rewrites did work before.
Disable the CPT rewrite option and now things work.

Related

WordPress permalinks Issue on Localhost

I have this problem, so far i change or permalinks or delete .htaccess file and everything worked but this this this is not the issue. Have broken links on few link with 404 error. Home page i most of the links works but 3-4 of them don't. Tried so far everything that I thinks should work or worked before. Deleted .htaccess file, disable plugins and themes restore to default, change permalinks structure, my WAMP server have enabled rewrite module on for apache, even in htppd.conf have AllowOverride All.
I dont have any ideas left and I would appreciate if someone have some new idea or something that I have missed so far.
After days of searching for the problem finally find it. It was conflict with plugin and my custom added css was conflict with one plugin same name and this was causing the issues on links.
Considering that I lost time for this i needed to share this info with all of you. Usually permalinks problems were solved with changing settings for permalinks but this was something else, and probably I'm the only one that have same name in css with one plugin and this cause the problem.
Hopefully this will help someone if come to same or similar issue.

Wordpress: redirecting to wp-admin/install.php even after reinstalling backup of a version that for sure worked

I'm having major difficulties to regaining access to my wordpress website (was online for 2 years) and to admin login of wordpress. I've been searching for quite a while now to resolve this issue.
I constantly got the too many redirect error and my browser was always redirected to wp-admin/install.php.
I already tried the common solutions:
Clear Your Cache and Cookies of browser,
disable .htaccess,
disable all plugins,
disable theme,
adapt wp-config.php:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Check/restore tables of database;
Check wp_options table (did not find a table wp_options (or similar named) in my database)
Nothing worked, in the end I tried the solution to reinstall my website with an old backup (generated from Duplicator – WordPress Migration Plugin) I generated in May. This issue only occurs since a few days so the backup version of the website was certainly a proper working one.
Unfortunately still the same issue appears, the websites keeps redirecting to wp-admin/install.php.
Anyone who has an idea what the solution could be?
Thanks in advance & kind regards!

Wordpress Dashboard broken, displays “flashbacks” of comments/plugins/updates

I’m using the latest version of Wordpress (4.7.4).
I have something very weird going on in my Dashboard. Not sure when this started.
Can’t say for sure it started with the latest version of Wordpress or not.
My Dashboard became completely useless.
It’s like it’s showing me a flashback of a Dashboard from a few days or hours ago:
Comments I’ve deleted in the Dashboard (hitting “trash”) are suddenly back there, awaiting my moderation.
Plugins I’ve deactivated or even deleted are all back there and according to Dashboard still running (while in my FTP folder they’re certainly gone).
The plugin page cannot be trusted anymore as it shows some plugins are activated that aren’t and vice versa. I have to check on my actual website to confirm which ones are running.
Updates aren’t shown correctly. Once I’ve updated a plugin, a few minutes later it shows me again that there’s a new update.
As you can tell it’s all pretty much the same phenomenon.
It’s as if I’m seeing an older version of my Dashboard.
Not sure what else is broken.
The only other thing I noticed is that even on my actual blog I still see a comment. Blog post says “1 comment”, but the actual comment doesn’t show up.
At first, this all sounds like a “cache problem”.
But I’ve already turned off all caching:
No caching plugin installed
Turned off server caching via htaccess
Disabled leverage browser caching
Emptied my own browser cache
Other things I tested:
Turn off all plugins.
Switch to the standard Wordpress theme “Twenty Twelve”
I tried WP_DEBUG, but nothing related shows up.
I researched the internet, but nobody has described a similar problem, so I suppose this is not a common Wordpress issue.
The issue remains.
Unfortunately I’m not a developer and don’t know too much about the Wordpress codex etc.
But to me it sounds that the mistake is definitely not in the plugin or theme folder.
The problem is that I’ve reached the point where I really cannot turn off plugins via Dashboard properly anymore. It’s so annyoing!
My questions are:
Is it safe to assume that this is related to the Wordpress core
files?
What files exactly are in “charge of” the Dashboard?
Should I just try to re-download the newest Wordpress version and replace a few files (if so which ones)?
Should I do a clean Wordpress re-install or would that be too drastic?
Any other suggestions?
EDIT:
Additionally I tried now:
I manually downloaded the newest version of Wordpress and did just as
described on the Wordpress.org website. I manually replaced wp-admin,
wp-include folders and all root files. The issue remains...
The way my Dashboard is right now, I really can’t use it.
Please advice!
I contacted my host service again.
They just gave me the same line to insert into my .htaccess file and I told them I already tried it and it didn't work.
I then showed them my .htaccess file and they deleted the whole part that concerned their server caching.
Now server caching is completely off and everything works again.
Still not sure why this previously never caused issues.
In the end, it had nothing to do with Wordpress.
I hope this answer will help people who run into similar problems.

Issues with Wordpress permalink /index.php/%postname% instead of %postname%

I've tried to change my permalinks from example.com/index.php/postname to example.com/postname, but nothing has worked. When I change them in Wordpress, I get 404 errors for example.com/postname. I've noticed this is a common issue, but none of the suggested solutions have worked.
Mod_rewrite is enabled on the Apache server. The .htaccess file has been updated. Still nothing. In the meantime, I'm wondering if I could do a redirect that would send anyone with the example.com/postname link to example.com/index.php/postname. What's the best way to do that?
You generally need to save permalink structure twice. If that doesnt work install wp 2017 theme > delete your theme > reinstall your theme from scratch.
If you have cloned your website - you should go to the original site, back it up and then deploy it! a good plugin to do this is updrafts if you don't know how to do it mannually. Don't use a cloning plugin - some plugins/themes don't work with them.

Permalinks no longer working

I have a nightmare scenario where -- just getting ready to launch a site -- permalinks are suddenly not working and it breaks CSS and can't find PHP templates. I have the permalink structure set to "http://domain.org/%postname%-by-%author%/" but when I click on a post the permalink only calls postname, for example: http://domain.org/%postname%
My host provider checked the htaccess file and can't find any problem. I can't see one either. I have searched around and see many Wordpress users having permalink problems but they all seem to have different solutions. I am at a loss. Any help would be greatly appreciated.
Click update permalinks after moving worspress. Should fix you issue :) Usually in the database the old structure is saved and the new one doesn't work, even if your htacess is ok you should still hit the update permalinks button :)
If that doesn't work try debugging with http://wordpress.org/plugins/monkeyman-rewrite-analyzer/
:)
I am curios why is the css broken. That doesn't depend on whether your permalinks are broken or not. :-S
Have you installed any plugins before it failed?

Resources