Post, Comments, Pages, etc, not showing up in Wordpress Admin - database

I recently moved my WordPress site from one host to another. I cancelled the previous host already because everything displayed just fine on the front end.
However, when I go to Admin Panel, I get a lot of empty pages. The comments, Posts and other pages display a correct count of items at the top, but the actual content is not displayed.
I have disabled all plugins, changed the theme, tried Wordpress Repair, none worked.
Also, some times when I refresh the page, the first item on the list appears, I refresh again, the page goes blank, I refresh again, the page appears but no comments.
The way it works, it almost seems like the script gets terminated while retrieving data.
Picture of Comments page
Picture of Comments page
I'd appreciate your help!

Seems like pages are not getting rendered due to some error. Kindly change the define( 'WP_DEBUG', true ); in wp-config.php to find them & troubleshoot. Once issues are fixed pages will render properly.

Related

Netlify Page Not Found/White Page

I have been trying to figure out Netlify redirects. My Netlify app is at this link (however this is a blockchain application and requires that you have metamask, so I will try to explain my problem so that you don't have to install it to actually answer my question): rekt.netlify.app
I have two main problems:
I have already tried the whole _redirects file with /* /index.html 200 in it. This works when I go to rekt.netlify.app/games and refresh, it will actually come back to that page. That's good. The issue is when I then go to rekt.netlify.app/games/Valorant for example, it will be a white page on refresh, and I cannot figure out why. In my react application, I have react router set up so the path is path="/games/:game"
I went to the Networks tab in the google inspect and I found that this was the request URL when I refresh the page on /games/Valorant: https://rekt.netlify.app/games/static/css/2.80dce9aa.chunk.css
As you can see, the issue is probably something to do with that /games/ comes before /static/ in the URL. I'm a beginner so I don't know what that actually means.
The second issue I am having is that, the img tags of the games load on the /games page, however, when you click on a specific game and attempt to go to a /games/Valorant for example the image will not load. I believe this is due to a similar problem. I have gone into Network tab of google inspect and when I look at the image being loaded in the /games page, it attempts to GET https://rekt.netlify.app/static/media/league_wallpaper.f5e6bf5f.jpg which works. However, when being loaded in the /games/Valorant page, it attempts to GET https://rekt.netlify.app/games/static/media/league_wallpaper.f5e6bf5f.jpg and this does not work, it's a blank page.
You can notice that the second link there has /games/ in it which I believe is preventing it from getting the image. Potentially the problem here is that anything more than one / in the URL is messing things up? I'm not sure. This is the link to my github project: https://github.com/jacob-tucker/ReKt
Edit: Here are some screenshots that will hopefully help. This first one shows that the request URL is trying to get the image from /games/static (which I don't think makes sense). This is happening on the /games/Valorant page.
And then here is a screenshot of /games/Valorant trying to load as well after I refresh the page and get a blank white screen (it returns a status code of 200 because I have /* /index.html 200 in my _redirects file.
I had a the same issue a while ago, I've just added
"homepage": "https://my-app.netlify.app",
in package.json and it worked perfectly.

Wagtail-Localize translated home page not connected to site

So the problem is simple:
Translated home page is not connected to any site. Everything is working kind of properly, I can open translated pages manually like this: /en/.... But for example there is no LIVE button on the translated page, to which i'm used to.
This is the main home page, my site defaults to.
And this is translated home page.
Also in the explorer, it shows a warning that this page is not connected to any site, which I think should not be.
Here in the red boxes it was written in what language each page is.
This is not a very big deal, but it's a little bit annoying and I'm planning to release this site in production soon, so editors may not understand which page to edit. How can I fix this? Maybe there is a way to change something in the database, so translated home pages are properly connected to the main home page?
I tried to delete database and remigrate everyting(which by the way gave me this error, I fixed it by adding locale_id=1 to the migration), nothing worked. I think this happened when I changed LANGUAGE_CODE from en-us to ru-ru, I'm not sure, but deleting and remigrating database should have fixed it but it didn't. :(
Somebody with 1500 reputation please create a wagtail-localize tag xD
Of course, posted a question, answer came up... Nevermind, I think many people will find this Q&A useful.
So the problem was in wagtail_localize.locales app, I changed it to wagtail.locales and everything is working now, I thought these apps are basically the same thing, but I was wrong.
.url function on pages was not working too because of this issue. Just replace the app!
Hope this helps! :P

cakephp pages not updating without browser refresh

I am working on a site using cakephp 2.10. It appears that the pages do not update unless the browser is refreshed. For example, I sign in as a user, it redirects me to the last page I was on before I left the previous time. (Correct function). But, when I go back to the main page, it shows me signed out. If I then refresh the page, it shows me signed in. I have tried clearing the files in the folders under app/tmp/cache/.... (persistent, model, etc) and I even tried turning debug to 3 to try and get the cache to refresh that way. I am baffled why this is working this way. Any thoughts would be appreciated. I have experienced this on three sites I am working on recently.

DNN custom skin made login page disappear

I am new to DNN and I'm trying to make a site with custom skin.
Skinning is all ok but once the superuser is time out, I couldn't login again.
The login page has disappeared and was being redirected to an empty custom skin page which only shows the header and the footer.
I have tried
localhost:1234/login
localhost:1234/admin
localhost:1234/?ctl=
but neither of them are working.
I tried to search for solutions but none of them seems to work and not relating.
Please show me a way, if I am missing somethings.
You might look at the Admin/Event Viewer page if you happen to still be logged in somehow (or eventlog table in the database) to see if there is an error being thrown, that isn't being displayed (because you aren't logged in).
That may point to the problem.
You might have a problem with a "container" that is missing thus the module isn't being loaded.
A few other things to try, try
localhost:1234/?ctl=login
localhost:1234/?ctl=register
See if anything loads for those.
Last resort, go into the database and NULL out the SKinSRC columns on the TABS table and see if you can find the default site Skin setting in the PortalSettings and make that null or something other than your custom skin.

Cakephp, weird performance issues

I've asked this question all over the web, but nobody has replied so far.
I have a Cake app on a live server. The problem is everything seems to be cached.
Let's say you're on the index page, hit "delete" link to delete a record, and you're redirected back to the index. The "deleted" record is still shown. If you hit the refresh button, the record is no longer shown and the flash message appears.
And it's like this all over the site.
I've disabled caching in config/core.php, sessions are pure cakephp (works the same with database and php sessions), debug is 0.
Server is PHP5.
Any idea is welcome!
What is your browser? I use Opera and I admit it doesn't manage the cache the way I'd want it to. I have to refresh, while Firefox works perfectly (or at least reload the page the way I'd expect it to while I'm debugging)
(from twitter #IvanBernat) have you tried to add meta tag for killing browser cache? use firebug and see if browser get 304 code for your file

Resources