Welcome!
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › General Discussion › permalinks settings causing my post content to disappear
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by turtledove.
-
AuthorPosts
-
October 6, 2015 at 5:13 pm #167571turtledoveMember
A couple of days ago I suddenly started having issues with the text from posts I was publishing completely disappearing when I hit the publish button. They looked fine when I previewed them before publishing them but when I checked them after publishing, the text was gone and only the images could be seen.
So I re-saved my permalinks settings (which were set to 'Post Name') and that didn't change anything. I then disabled every plugin I have installed and published a brand new post with all the plugins disabled and that didn't help.
I've chatted with my hosting company numerous times and, in the end, the 'fix' was to set my permalinks setting to 'Default'. Not ideal for SEO purposes but it's the only way I can publish any posts and have the text show up.
I'm using the latest version of WP which I updated to when it came out in mid-Sept and have published many posts since then with no problem. I've also got the latest version of the Genesis framework and my child theme installed and again, neither of these have had updates since early Sept.
So I've ruled out a plugin or an issue with a recent theme update as being the culprit.
But it's like I'm turning a light switch on and off: When I set my permalinks to 'Post Name', all the text from my most recently published posts disappears completely. When I set the permalinks to 'Default', all the text magically reappears.
And all along it's only affected the most recently published posts, not all the posts on my site.
Here's the URL to the site: http://www.birdingfever.com
Can anybody help?
http://www.birdingfever.com
Thanks!October 7, 2015 at 9:02 am #167613Andrea RennickMemberPermalinks are done with rewrite rules, which are server side.
Contact your web host.
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
October 7, 2015 at 9:15 am #167614turtledoveMemberAs I mentioned in my original post, I've already contacted my hosting company - 5 times to be exact - and they can't help me with the problem. That's why I'm posting here.
October 24, 2015 at 12:24 pm #168911turtledoveMemberI'm still having an issue with content disappearing after I hit the publish button so I wanted to update this thread and see if anyone can help.
Here's what's gone on in the past wk: I've changed hosting companies - from Bluehost to WP Engine - and migrated my site over. Even after changing hosting companies, the problem persisted.
WPE's tech support - which is awesome, BTW - has been on it. The first thing they did was rule out an issue with the theme by changing me to the default 2015 WP theme. After they'd reverted me to the default theme they deleted both Genesis and Lifestyle Pro and then they republished one of my posts, but the problem persisted - the content was gone.
The next thing they tried seems to fix the issue but I still don't completely understand it. Here's their explanation:
Problem: When publishing a draft, the post would appear normal when previewing, but when viewing through the permalink URL after publishing, only the post image was being displayed.
Reason: This was determined to be due to the post and image using the same post_name value in the database, causing the image to be loaded instead of the full post when accessing the permalink.
When you visit a permalink ,WordPress will look in the bfposts table of the database for a row with a matching post_name value. WordPress will then load this row from the database, displaying the post content. However since the image and the post have the same post_name values, and the image was added to the database first, the image is loaded instead of the post.
Solution: To prevent this issue, we simply need to change the title of the image (which is what the post_name value is created from) to something different than the post title. By changing the title of the image, the post_name value is changed as well. This prevents the image from being loaded instead of the post no matter what the order of the rows is.
So as I understand it, basically he's saying that it's a WP glitch that happens from time to time but here's what I don't understand:
It started happening all of a sudden and with no recent WP update. If it would have started happening right after a WP update then I could understand, but the fact is this: I published about 15 or 20 posts without any issues at all AFTER I'd updated WP and THEN it started happening.
For SEO purposes, I use the exact same title for both the post itself and for the featured image title. His fix is to make the title of the image slightly different than the post title itself. So, for example, he went into the media library and added 'img' onto the end of the image titles for one of the posts, published that post and it worked just fine.
After I'd received his answer with the fix, I went into my dashboard and published 7 posts that had been sitting in 'draft' form. 4 of them published just fine when I hit the 'publish' button but 3 of them, when I published them, lost all their content.
So I went into the media library and added 'img' to the end of each image title for those 3 posts, went back and republished the posts and they published just fine. I did all of that within a 5 minute time frame.
So his fix certainly seems to work. But given that 4 of them published fine with no alteration to the image title file name but the other 3 had to have altered image file titles in order to publish properly, the issue seems transient and very random to me.
Is it possible that it's just some random WP glitch that's hitting some posts and not others?
Can anyone make heads or tails out of this?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.