Hello Everyone,
I'm having a frustrating problem with the cache I'm hoping someone can help with. Here's the situation:
I have a site running drupal 4.6.4 that runs fine. Until I turn on the cache. Here's what happens:
1. First I enable the cache
2. Then I clear the "cache" table
3. Then I logout of drupal and, as an anonymous user, navigate to the home page.
4. The home-page displays correctly. As this is the first visit to the home since enabling the cache, the home page should get cached now.
5. Then I navigate to node X
6. Node X displays fine (and should get cached at this point)
7. I then navigate backto the home page... and get a blank page.
In general, nodes that have never been cached show up fine the first time I navigate to them, but show as blank pages on second and subsequent visits. If I log in, the problem with the blank pages goes away, and comes back again when I log out (this at least is logical). The problem occurs using both Firefox and IE.
Here is a sample header from one of the blank pages (obtained using Firefox developer toolbar):
Response Headers - http : // yaqtest . yaq . es /
Date: Sat, 15 Jul 2006 18:50:20 GMT
Server: Apache/2.0.51 (Fedora)
X-Powered-By: PHP/4.3.10
Last-Modified: Sat, 15 Jul 2006 18:09:58 GMT
Etag: "7a6e3c7776aa6886d162ca7c0f26ea29"
Content-Encoding: gzip
Content-Length: 1
Content-Type: text/html; charset=utf-8
200 OK
I'm running: apache 2.0.51, PHP 4.3.10, Mysql 3.23.58.
Anybody have any ideas?
Thanks!
Comments
If you can, disable all your
If you can, disable all your modules and test the cache - I know my module for one plays havoc with caching as there aren't any instructions anywhere about how to deal with it and I'm not learned enough to be able to follow someone elses code to work out for myself what to do. Re-enable each module one by one until you find the culprit and then file a bug report ;o)
...If it's not that, perhaps check your caches db structure? Maybe it needed to have something done to it with update.php and for whatever reason it didn't get done? Check it out? I'd even consider installing a clean test site and testing the cache feature from that - if a blank test site shows the same symptons at least you then know the problem lies with your own system and not Drupal...
Pobster
Did clean install - problem persists
Hi,
I did a clean install of Drupal 4.6.5 and created one story node. Then I enabled caching, and I'm having the same problem.
Then I did a clean install of 4.7, created some nodes, and enabled caching. The strange thing is that caching with 4.7 seems to work, while the clean install of 4.6 doesn't.
Does this give anybody any aditional clues as to where the problem may lie?
Thanks,
Steve
Steve
Revista Y AHORA QUÉ | Selectividad - Universidades - Foro Blog Chat Estudiantes
Blank pages
Blank pages are often a result of memory exhaustion. Try increasing the memory limit in php.ini and/or check the php error log.
This is just a general tip, I haven't had problems with the cache functionality in Drupal.
MySQL
You have a old version of Mysql(Mysql 3.23.58.)
I dunno if this can be the cause of your caching-problem, but maybe it's time to upgrade to 5.01 ?
morphir.com
Memory is at 32M - and cache still doesn't work
I even did a fresh install of 4.6.5 and of 4.7. The problem still exists on 4.6.5, but not on 4.7. See my response above to pobster.
I know what you're gong to say, "update to 4.7 and your problem should be solved". Unfortunately, my site has a lot of customization to the user and profile modules, and it's going to be a while before I can port them to 4.7, so I need to fix the problem in 4.6.
Any hints as to where to look next would be very welcome.
Thanks!
Steve
Revista Y AHORA QUÉ | Selectividad - Universidades - Foro Blog Chat Estudiantes
I have the same problem
Hi folks,
I have the same problem. I use Drupal 4.7.2, and Curl enabled, Apache 1.3.27, PHP 4.4.1 and MySQL 4.1.9. I have my memory increased up to 36M. Cache has been enabled since the initial install. Modules appeared to be working so I started on content. After adding a primary link (content is plain text- no code) and/or changing the settings on one of the modules (sorry I don't remember- was doing a lot that day!) I logged out and had a blank index.php page- when manually entering other page URLS, they worked (oh, I do have clean URLs enabled). So I increased my PHP memory (as stated in search results) and the blank page didn't come back but this time the others pages went blank too! So I signed in again (using 'back button' to retrieve page) and disabled cache (as search results stated) and now my site is working, albeit rather slow for a test site without any graphics and only one 'added' node.
My logs- in Drupal (for some reason on my PHPinfo page it says log errors OFF)- don't list any errors and I'm using the Blue Marine theme. I do remember reading somewhere to add something to the .htaccess page (for 4.6), but couldn't find where I read that last and I do not know if it would work for 4.7.2 or actually resolve this issue. I know it's got to be something on my end but I'm not a programmer so I have no idea where to look and what to change/add.
If it is a module, do you have any suggestions on which module to test first and the signs I would get if it were that specific module making Drupal go buggy? Here's my list of add ons (from my changelog):
***Current 3rd Party Modules enabled (all mods current as of 7-13-05)***
Adminblock, AdvUser, AmazonTools, Captcha, Click, Contact_list, DiskNode, Feature, Feedback, FileBrowser, FileRequest, Flexinode, Forward, HelpTip, Image, Img_assist, LogInToboggan, Nice_menus, NiceLinks, Profile_Pages, RelatedLinks, Search404, Simple_Access, Simplenews, Smileys, SiteMenu, SystemInfo, Taxonomy_Access, Taxonomy_Context, Taxonomy_Theme, TextImage, ThemeDev, TinyMCE with TinyMCE (vs 2.0.6.1), spellchecker (vs 1.0.8) and compressor (vs 1.0.1), Troll, Upload_Image, UrlFilter, User_Status, UserReview, Views, VotingAPI
Trouble with Sitemenu and Feature- disabled 07-11-06
*** Drupal Core Modules enabled (all current as of 07-10-2006): ***
Aggregator, Archive, Block, Book, Comment, Contact, Filter, Forum, Help, Menu, Node, Page, Path, Ping, Poll, Profile, Search, Statistics, Story, System, Taxonomy, Throttle, Tracker, Upload, User, Watchdog
*** Removed the following Core Modules on 07-10-2006: ***
Blog, BlogAPI, Drupal, Legacy, Locale
Thanks in advance for any help!!
My experience with it so far
Hi Folks,
So I created a brand new DB/site for this issue and started by adding one mod at a time and really testing it. My cache (knock on wood) mostly works. For some reason, when I go to log in it doesn't log me in. I hit refresh on my browser and I'm logged in or if I just log in again it logs me in. And it works the opposite, meaning when I log out, it doesn't log me out. But that's at least better than blank pages.
Any comments as to the login lags would be great! But my only suggestion for blank pages is to check your modules very carefully as that's the only thing I can come up with at this time (but I'm a noob Drupaler!).
common issue
I have the login issue on every site I run, there are lots of threads about it. If you use phpeaccellerator caching is not *as* important, so maybe that's an alternative.
This one is promising:
http://www.cmsproducer.com/drupal-login-session-cookie-without-error
Too tired to test it :) Let me know if you do.
Thank you!!!
Hi Arkepp,
Thanks so much for you reply! I tried the patches listed above and none work :( Well, it sounds like Drupal core is working on a fix so I'll have to wait to update. Thanks again!
3 years - never worked
I've used Drupal for over 3 years ever since, 4.4?. The cache has never worked for me; it appears to be working, but serves blank pages. Have just updated to 4.7... thought cache works, but it doesn't, same old blank problem.
How do you turn cache of in the database?
Because I'm not able to log in anymore to turn it off. When I try to log in, I'm getting a blanc page.
Thank you very much in advance.
variable table
There's a table named variable, in it one row has name = cache