Wordpress site only half loaded - php

I got a call from a customer who's Wordpress site is not working and I started taking a look at but I cannot understand what's going on there.
On the same server (only another directory) there are other wordpress setups running and they are working perfectly fine. So that's the first part that is kind of ... interesting.
When I logg in to the WP-Admin and access the page again it loads without any problems. Everything is displayed correctly. Same if I add a PHP GET-Parameter like ?anythinginteresting.
In the apache error logs I only find "PHP Notices" - nothing I would worry about.
Any hints? I'm going out of ideas right now...

Seems to be a caching issue as mentioned by #michealrmcneill it comes from the WP-Super-Cache Plugin. This plugin is not "knocked out" when disabled in WP-Admin it needs to be deleted in /wp-content/plugins/wp-super-cache/* to be removed. Addionally there are two files: wp-content/advanced-cache.php and /wp-content/plugins/wp-cache-config.php that are related to the plugin.

Related

Code changes not taking effect on Drupal site

I'm sure this has been asked a dozen times here, but nothing I've found online or on here has helped. There's something strange about the Drupal site I'm currently working on - I've worked on 10+ other sites at this company with no problem - in that none of the code changes I make seem to have any effect. Anything I do through the admin backend appears immediately, but when I try to change the text in a custom page template and push it live, nothing happens.
What I know/did:
I know I'm pushing correctly because when I go in the file manager on the live server and look at the files I pushed, the changes are present.
I am sure that I am changing the correct file because when I try it locally and on our staging server, the corresponding pages update immediately.
I cleared out the site's cache in the admin menu, in Configuration -> Development -> Performance -> Clear all caches.
I asked the hosting company if there was a cache to clear on their end, they said no.
I deleted the uploaded theme from the server completely. The theming is still present, though the images are broken links. So the site theming is still cached somewhere. (I then replaced the theme folder)
I then contemplated quitting web development and opening an orphanage in Pakistan
What I did not do:
I did not run root/update.php. I figured this would recache the database and that wouldn't affect text in a custom page template (I also searched for that original text in the database to make sure).
Does anyone have any other ideas I could try?
It could be nginx cache on the server. Or PHP opcache could prevent you from seeing PHP code changes.
But if you still see deleted Drupal theme, it is rather some proxy or maybe something right in your browser instead of the server.

Wordpress Admin doesn't load css files and images

I'm having a serious problem. I have wordpress 3.9 installed on my server. the problem is that my website front end loads good, but my back end just loads text :
I have updated/reinstalled wordpress but nothing has happend. What should I do?
Thanks for help.
I'm 100% sure that if you simply do the following, you'll figure out what's wrong and fix it.
Deactivate all plugins without use of your WP-Admin.
Activate them, 2 or 3 at a time, and determine which plugin is the culprit
If none of these plugins are the culprit, go to the WordPress site and download WordPress. With an FTP utility such as FileZilla or another client if you already have one, then upload the entire wp-admin folder to your server, overwriting older files.
Your WordPress admin will be fine after these steps. And of course, never alter any core WordPress files -- ever. The only files you should ever tinker with are files in your child theme, which is something you should be using.
Would be great to have a bit more information about this topic. First of all: Is this a new problem respectively did the admin run without errors before? (3.9 sounds like the page is not a new clean install).
Usually I would start debugging the page via e.g. firebug => Check the Stats of the CSS-Files.
If they load correctly (200) check if they are empty or incomplete (Incompleteness can be checked via diff against the original file ... most IDEs will handle that for you)! If they aren't you have probably just diabled CSS in your browser for the URL of the admin-panel.
If they don't load, try to check why! If the files exist its most probably an error in your .htaccess (wrong rewrite, blocked directory, etc.).

Wordpress blank page after activating theme, but works in other server

I'm trying to activate a Wordpress theme but all I got is a blank page, also the admin page goes blank.
Version of WP is 3.9.1, Mysql 5.1 compatible and PHP 5.2.4 compatible too with WP. The theme in question is MH Magazine and I have it in another server with the same configuration and is working ok.
Even I tried to do a backup of the working site and place it in the production server and still goes blank.
I tried uploading the max_memory_limit in php and no luck. Error log and show php errors doesnt show anything, when I check only says the site name HTTP 1.1 500 - If I set wp_debug to true says HTTP 1.1 200.
File permissions are ok too.
A SIMPLE FIX FOR NON TECHIES (Like me really)
Loads of forums recommend various code changes and things to try, non of which worked, so I logically worked through the process more simply and solved it myself (in my case). White screen for everything, including front end and Admin. I tried everything going!
Essentially I'd asked Wordpress to link to a theme, which it did, but now I can't change it back. As it wouldn't automatically switch back to default themes, as suggested by others as a result of simply deleting the theme folder via ftp, I would have to force that myself. Without access to the admin panel, how would I change the link (easily)?. Well I can't, so instead I need to force the change of what it links to instead!
In the end I basically logged in via FTP, went to the wp-content folder, then to themes, located my list of theme folders and changed the theme folder name of the one recently selected and causing the issue, by just adding an x at the end (random letter). Then I changed the theme folder 'default' to the name of the theme which was causing the issue, then refreshed my site in the other window, at which point it displayed again. So the hard coded link never changed, but the basic files it links to now have.
The site was now back up, thank god! I then logged into the Wordpress admin panel and updated my version of Wordpress, as to be honest it had been a while and it was a little out of date, so a likely culprit for the cause of the error. Once updated, I then went back into the FTP window, renamed the folder back to 'default', and then removed the 'x' character from the end of the actual theme folder that I wanted to use. And ta dah, it now works beautifully with the theme I wanted! Without any fancy code changes or messing around with reinstalling or removing etc. BOSH!!
Hope this helps a few people out. (obviously it's different strokes for different folks)
To get this out of comments --- this is a community wiki answer.
Are your two servers running on the same platform (Linux? Win?) or different ones?
Do you have the same collection of plugins on both platforms?
Here are some things to try.
do View Source on your white screen of death and see if there's anything in the source view that can help you diagnose your problem.
deactivate all your plugins, then try the theme.
if it doesn't work, then this theme is broken on this server setup.
reactivate the plugins one by one. One of them will probably give you the white screen of death. Then you know that plugin is incompatible with that theme.

is ACL the reason for my buggy module?

I've made a custom module that successfully adds a new menu in the admin->configuration section and saves some settings to magento config, and also creates a table at first run/install. Everything works great locally, but when I move the module to another server I get a 404 error when clicking the link added in the admin area, and nothing seem to work - for maybe a couple of hours. Eventually it just starts to work. I've usually just came back the next day and the 404 is gone and everything works as expected, but if I try to clear all caches, reindex the site, even manually clearing the var folder - nothing will help. It will still give me a 404 error until a couple of hours or a day later.
I don't fully grasp what I should do to avoid the error - but I'm just confused as to how this problem can go away by itself after a while?
Thanks in advance!
This is very common when installing a new extension (that adds Admin pages). All you need to do is log out, and log back in.

Identify pages which refreshes automatically in my site

I have a site which uses wordpress. For some reason, some of my pages keep refreshing continuously. I am not able to replicate the issue continuously. However, in random I have seen some pages keep refreshing automatically. When I retry the same pages after few mins, it is working fine. My users also experiencing the same problem. When they report me the issue with a url and if I check that page it is working fine. So, I am sure the issue is there but unable to replicate the problem or troubleshoot the issue.
This is not a browser or system issue. The issue occurs with registered and unregistered users.
So, I need your help on this to troubleshoot this problem. Is there anyway to find out whether the page is keep refreshing by adding some code in wordpress theme php files like writing some sort of logs, etc.? So that I can try to troubleshoot the problem.
The same theme with plugins works fine in another site with other hosting provider. I have also checked with my hosting provider. They replied back and said they are not able to find any issues on their side and cannot help further, as the issue occurs in random.
Thanks in advance :)
This sounds like your site may have been hacked. Check the page source (View Source or Ctrl + u) for <script> tags that you don't recognize. If you are unsure, try disabling all of your plugins and use the default theme. If the issue persists, then it is most likely an issue with your site being hacked, and you should reinstall WordPress from scratch, and do fresh installs of all plugins and themes. If you are using a custom theme, upload a version that you know was working. Also, be sure to change passwords for your dashboard and hosting account.
If disabling a plugin or using the default theme makes the issue go away, then it's a bug with that particular theme/plugin. In this case, report the bug to the appropriate party (person/company responsible for the particular plugin/theme that's causing the issue).
How to Debug
Try to find a way that you can consistently test for the problem. For example, if you can refresh 20 times, and it happens twice every time, then you have your test to use. It sounds like it won't be as simple as this, but that's the basic idea... find the minimum number of times it takes to come across the issue on a regular basis, and test for it 3 times for each plugin you disable (and when you turn the main theme back on).

Categories