the same link for all new posts
-
yes!, let’s presume that a post a new post, its link will be:
http://www.Mysite.com/?id=111222
when i press on “Add new” to add a new post, the link given to the new post is the same as the last one!, and if i press on publish, it will show that publish is successful, BUT, it will show the previous post only!
also I am unable to install any cache plug in, non of them are running on my website, i have no idea why…
Any suggestion???
-
Hi Edward,
The issue seems to be because of some plugin you are using, because its the default functionality of wordpress to give new unique id to every post got created.
One of the quick solution is to go to your dashboard: settings->permalink and just click save there.
Now try to create new post. Hope now everything will be fine. If not, please come up with more details of your problem.Thanks
that solution didn’t work unfortunately, also i am unable to disable any of my 6 plugins, when i disable a plugin; wordpress says: plug in disabled, but refreshing the page reactivate the plugin!
how can i disable all installed plug ins from the file manager , is it safe to move or rename the folder “plugins” within “wp-content” ??
i have assumed that this is a plugin error as well, so i want to try and disable them all, BTW, is there any other folder the plugins may store their data and i should remove/rename too?? thank you @cedcommerce
if you need another detail please just ask!Update:
after restarting the server i was able to disable all installed plugins from withing wordpress, but still, the problem is not solved: each new post is assigned to the same permalink, which means i am unable to add new posts, no matter what post i publish; i always end up with the same post published hours ago, it looks like wordpress is giving a new link once every 3 to 4 hours!What are your permalinks set to?
How does WordPress behave if the permaliks are set to the seond-last option:
Post Name (“http://www.weavegotithair.com/sample-post/)my permalink are set to its default: like http://www.MySite.com/?p=174496
and no matter how i changed it didn’t work…for example if i add a post and its title is “A” and publish it, the permalink will be: http://www.MySite.com/a
If i add another post and the second post’s title is “B” and publish it, the permalink for the second title will also be: http://www.MySite.com/a , not only that but also the content of the post will be a’s content, I mean changing the permalink structure didn’t work…I am going to ask you to perform a very weird test.
1. In your dashboard, right-click on “Add New Post” and open in new tab. Lets say it opens in Tab2.
2. Again right-click on “Add New Post” and open in new tab. Lets say it opens in Tab3.
3. Switch to Tab2 and set a title “Pst B” and add some content to it. DO NOT publish it yet.
4. Switch to Tab3 and set a title “Post B” and add some different content to it. DO NOT publish it yet.
5. Be ready to publish both posts in quick succession.
6. Check if the slug comes out different this time.
7. Whatever the outcome for step 6, switch to Tab 2, and click on “edit” next to the permalink and give it some different name like “test-slug-a”
Click Okay. Click Update.
8. Now switch to Tab 3, and click on “edit” next to the permalink and give it some different name like “test-slug-b”
Click Okay. Click Update.This test looks super strange and I feel stupid enough writing this, but what you report is also strange, so just trying to narrow things down.
I LIKE IT!, and i like weird things, give me 10 minutes and i will be back with this test’s results !!
it didn’t work…
eventually both tab2 and tab3 ened up having the exact same permalink AND the content of tab2 , i have followed your instruction carefully but still the same, both of them ended up with the permalink: http://www.MySite.com/test-slug-aSorry to hear it did not work and thanks for trying my stupid steps 😉
Anyways, on to your problem. Can you try replacing all of your core wordpress files EXCEPT wp-config.php ?
I have no idea how to do that, and if i do that, will it affect my data, data base links, published posts, settings and customizations ??? if your answer is yes! then that will not be possible at all…
Replacing the core files will NOT affect your data, if you do everything correctly. This is also what happens when you update wordpress version.
https://codex.wordpress.org/Updating_WordPress
Go to the section that says “Manual Update”
Most important thing is: You DONT touch wp-content folder..because all your themes, plugins and uploaded images recide in this folder/directory.
And you keep a backup copy of wp-config.php because it contains your database information that WordPress needs to keep running.
So when you are done with replacing the files, wp-config.php should be the on which you had saved earlier before replacing.
Also, before trying these steps, can you try switching to a different theme and see if the problem still persists?
I can not stress this enough that you need to make a backup of wp-config.php before trying to do anything with the core files
i tried changing the theme but it didn’t work
and
i tried reinstalling wordpress automatically from http://www.MySite.com/wp-admin/update-core.php but it didn’t work neither
i will try it manually and i WILL backup wp-config.php before doing anythingThat gives me the impression that something is wrong with your database.
Behind the scenes, when creating a post, WordPress does an INSERT operation into the database, wherein the index (post-id) auto-increments. Now it looks like that your database is STUCK at a particular index and NOT auto-incrementing the index resulting in all posts getting assigned the same post-id, and thus same content.If you do not have much content in your WordPress site, then do consider a starting afresh with a new database.
Before that, however try to monitor the database though.
I don’t remember if there is any such provision in phpMyAdmin, but if there is one, then check the “last modified” time of the database in general, and the “posts” table, BEFORE and AFTER creating a new post.Also check whether the row contains one row more/less after creating/deleting a post.
The topic ‘the same link for all new posts’ is closed to new replies.