We are getting this error, but ONLY when using the search block and ONLY when logged in as a specific user. This error doesn't occur on the actual /gsearch page and it doesn't occur to the anonymous user. That's why this is different from http://drupal.org/node/1304668.

We are caching blocks and caching pages for anonymous users. I saw there are other modules that have this issue and it was solved by changing some code. I made the following change in /sites/all/modules/google_appliance/google_appliance.module

128 // block search form
129 $blocks['ga_block_search_form'] = array(
130 'info' => t('Google Appliance search form'),
131 'cache' => DRUPAL_NO_CACHE, // changed from DRUPAL_CACHE_GLOBAL
132 );

That still didn't work.

I have come to the end of my ability to figure this out. I hope someone can help.

Here are my performance settings:

Cache pages for anonymous users CHECKED
Cache blocks CHECKED
Compress cached pages. CHECKED
Aggregate and compress CSS files. UNCHECKED
Aggregate JavaScript files. CHECKED
jQuery compression level: Production (minified)
jQuery and jQuery UI CDN: None

The issue still occurred after I unchecked "Cache pages for anonymous users" but it stopped occurring when I unchecked "cache blocks".

Here is our list of enabled modules. Let me know if you need anything else from me as far as settings are concerned.

Chaos Tool Suite
Context
Date/Time
Fields
Embedded Media Field
File entity
Media and related modules
Conditional Stylesheets
Custom Breadcrumbs
DB Maintenance
DHTML Menu
Document
Entity API
Entity tokens
Libraries
Linkit
Menu Block
Menu breadcrumb
NYSOPWDD Mail Settings
Pathauto
Scheduler
Search 404
Site Verification
Token
Search by Page
Search Configuration
Google Analytics
Taxonomy Block
Taxonomy Menu
Themekey
jQuery Update
Superfish
Wysiwyg
Views
Webforms

Or does anyone know a way to stop a specific block from caching? I can't find a thing.

Comments

mpgeek’s picture

Status: Active » Postponed (maintainer needs more info)

@loopy1492, I've had this exact problem with the block search form while logged in. In our case, the search form was the only form in a block on all pages, and we found that disabling block caching fixed the problem (using D7.14). We also addressed the block caching issue here: #1595254: Block search form action is incorrect for searching (w/ suggested fix). Does the problem go away if you disable block caching and clear all caches?

loopy1492’s picture

Yeah. I have to disable block caching in order to get the search to work. I'll look at your thread and see if I can't use your suggestion.

loopy1492’s picture

Hmm. I did try the DRUPAL_NO_CACHE thing already but I will try it again. Maybe I forgot to run cron/reset the cache or something last time. I'll keep you posted.

loopy1492’s picture

It actually seems to be working. I'll wait until tomorrow and some searches have been tried over the course of a day before I claim victory.

loopy1492’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This seems to be working using the following solution:
http://drupal.org/node/1595254

loopy1492’s picture

Issue summary: View changes

clarified