wordpress posts not showing in frontend or backend - php

I installed a new wordpress blog today (v3.4.2, Windows 2008 R2, IIS7.5, SQL Server 2008 R2). I have already done this several times, and I have never had this happen before.
When I create a new post and publish it, everything looks fine. When I go to view it through the link in the edit post page, everything looks good. Then I open the blog homepage and I don't see the post in the latest posts. When I go back in to wp-admin I see that there is (1) post in "all posts", but the list is empty.
I tried creating a second post, and when I view it from the editing page, I can see it and the one I "lost" before. I tried to see maybe there was a difference in the URLs, but they are the same.
Anyone seen this before? It is driving me insane.
I tried turning off all plugins and also switching to another theme, and nothing.

I found the solution. Apparently, due to some regex issue in the abstraction plugin, mysql's limit was not being translated to sql server's top.
Found the solutions here:
https://wordpress.stackexchange.com/questions/51134/dashboard-says-no-posts-found-even-though-there-are-some-posts
Give credit where credit is due :)

Related

Wordpress website displaying OLD content... sometimes

Context: I have a WordPress site on Bluehost with a theme by Thrive. I set the 'homepage' to a Landing Page that I'm dubbing id 51 (post id is 51). We launched the website with a new Landing Page (id 399). This page is completely fresh, new title, new content, new everything. I changed the "Front Page" or "Homepage" in the General > Reading to this new LP. Everything seemed to be flawless. I deleted the old page (moved it to trash, but never emptied it). This same day, we noticed that when we type in our URL on this nice MacPro on Chrome, everything is fine; however, when browsing to the same URL on, say, Safari, it somehow pulls up that old content--deleted content.
I'm clearly not knowledgeable, but I can get into and investigate things:
So far, I've tried:
clearing individual browser caches from a visitor's perspective. Unsuccessful.
Purging All from the cache within WordPress
This appeared to work for maybe 8-12 hours before we discovered the browser went BACK to the BAD/OLD content. I will say, by Default, I believe Bluehost has that cache level set to 1, maybe? Assets only? 2 months ago, I set it to 3 with performance in mind while building out the website. Could be storing there? ...but I PURGE it, and it returns later... That doesn't compute in my computer. Now, I've set it to 0 and the issue is currently gone, but I'm not gonna hold my breath.
I restored the old page, id 51, from the trash, and tried renaming the slug hoping it wouldn't find it, haha. Then, I even imported the correct, modified theme template from post 399 to post 51 hoping I could just treat the wound rather than solve it. (Thrive has an "architect" feature for WYSIWYG building so I kinda cut and paste.) This appeared to work temporarily as well.
My next step was to dive into the database. I've gone through the entire thing, even unrelated website databases on my host through phpmyadmin. I can't find a single reference to the old title, slug, or its content. post id 51 has my updated information as well. In fact, it's showing all of the corrected content from when I overwrote it.
All that said, The page is totally fine, and ALWAYS fine on Chrome, but Safari browsers seem to work for a while, then revert to this pesky page. I don't know enough about how a page loads to trace 1) why it loads incorrectly on a particular browser, and 2) where it would even pull outdated, DELETED content/data from to begin with...
I just feel like I broke something, and currently, am praying to the WordPress gods that 0 caching will permanently solve this ghost-site issue...
I'll update this in a few days if the problem stays away, or sooner if it persists. Hopefully, someone can point me in the right direction. Sorry for the lengthy novel. Trying to be detailed as this is my first post and I wanna be as detailed as possible as I'm just not knowledgeable enough... Thank you.

Facebook can't scrape meta data after I've moved Wordpress to new server

I've recently transferred my Wordpress website to a new server and all seemed to go smoothly. However we've discovered that Facebook can no longer pick up data for our posts.
We posts news stories to Facebook and usually it populates the header, excerpt and image as soon as we post the URL to our page, however it is no longer doing this.
Facebook Open Graph debugger shows that Facebook is seeing a 404 page for all posts published AFTER the server move. It's displaying no image and the title shows the archives list for that date. The same issue happens when someone 'likes' an individual post using the social button directly on the website.
Important to note that any URLs for posts published before the server move work fine. This data can be found by Facebook without a problem.
The website is www.thisisardee.ie. Below are examples of a post before and after the transfer, so you can see both.
BEFORE (working): http://www.thisisardee.ie/2016/03/09/ardee-western-bypass-backed-transport-authorities/
AFTER (not working): http://www.thisisardee.ie/2016/03/23/mcguinness-recalls-brussels-terror-fear/
Any help would be hugely appreciated. It's massively affecting our website as people are sharing our posts on Facebook and they're appearing without image or correct title. It looks awful.
Thanks in advance.
Finally found the reasoning behind this.
After the move to Cloud hosting, from Shared hosting, I had updated my DNS records. However, I never updated my IPv6 record.
This wouldn't normally be an issue (and it explains why 99% of websites/services had no issue scraping/using my site) but Facebook appears to prioritise IPv6 over everything. So it was using my IPv6 record which was pointing to my old server and an old version of my website. Hence, it was pulling in no information for the page.
I'm surprised it was still linking to the new page after we manually put in the image and title when posting to Facebook.
I spotted this after my Share hosting plan was officially cut off today, therefore deleting my old website. The links began showing a 404 error.
Hopefully this can help others, as I've seen a lot of people with a similar issue but no solution. Update your IPv6 record as Facebook uses it!

Wordpress website doesn't show any content

I have built a pretty big wordpress website, and wanted to move to different hosting and domain...
I moved files, database, changed wp-config file and even changed all mentions of old domain to new one in the mysql database content.
Also, I had to change TYPE=InnoDB to ENGINE (manually), but I don't think it could cause some problems.
So, the problem is that, the website doesn't show any content, menues... etc. I can only see header and footer. Admin Panel works but when I go to pages/media It shows 0 result... nothing is there. However, phpMyAdmin shows that the pages, posts... etc. is on place.
What could the problem be?
Thanks
The problem was in database compatibility, I set it as MySql323 and it worked for me.

Advanced Custom Fields Issue

So, there's a code that I've recycled multiple times on sites as it's well liked by my company. I am trying to update and recreate my portfolio due to my old hosting company wiping my entire file system. My fault for not having a back up, but lesson learned. Makattak.com Using this code here, I am unable to get anything to display.
A site I've used it on is here: Bowhunting.com
Here is a photo of my repeater field in ACF. I followed the same structure but still cannot get anything to display.
Can anyone offer some suggestions as far as what I am doing wrong? I've tried cutting things out, I've tried rebuilding from scratch, I just can't seem to get the loop to happen.
I am using the latest version of WordPress, and the latest purchased copy of ACF: Advanced.
I know this my sounds stupid but, did you assign the template to a page and select the page on the wordpress Reading settings?
Thanks to both Dre and Raul Cruz, I was able to find the issue.
I didn't set the Reading Settings to Home Page, static.
I revamped my code to change the_sub_field('field'); to
get_sub_field('field')
a change I made while debugging but didn't revert back
There was an issue with my syntax, and when writing the code back in, line by line, testing after each line, I was able to get what I needed back in working order
Thank you both for the help.

Prevent script from overriding page title in Joomla 1.5

I'm working on a project that is built on Joomla 1.5. I've been trying to set the title of the pages for different views and everything works fine except for that title of the document is set to as the project name once the document is loaded completely. However, I can clearly see the title set by me as the document title while it is loading. Also, when I checked in firebug, I found that some script is overwriting document title over and over again on a span of 2 sec. I checked almost all the settings pages to disable this but couldn't find any such option; I'm not a Joomla expert. Also, I don't want to delete that script manually, so if someone has any idea about how to fix it, I'd really appreciate it.
PS: I searched for solution before posting this so please, no -1.
So apparently, there was a script in a file chat.js on our server that was updating the page title every 2 seconds. So lame that I didn't realize it could be such a minor mistake. I wasn't able to find it as it was being included only in some views. Anyways, sorry for wasting your times. If anyone of you've faced a similar issue, please do check your script in Javascript debugger.

Categories