Closed (fixed)
Project:
Authenticated User Page Caching (Authcache)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2012 at 15:19 UTC
Updated:
19 Jun 2012 at 11:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
stred commentedhere is the patch
Comment #2
stred commentedanother problem, the authcache.js is not included form authcache_init
why not simply call
drupal_add_js(drupal_get_path('module', 'authcache') .'/authcache.js');?
and in authcache.js $.cookie must be replaced by jQuery.cookie
Comment #3
jeanj commented... yes, same with me - on my site the debug function is not working.
I looked throught the source code and found that for both scripts (authcache.js, authcache_debug.js), the function drupal_add_js(dirname(__FILE__) created a path like http:\\mydomain.com\myinternal_path\somejavascript.js ... which will not work. As a quick fix, I hard coded the correct path, but still no cookie is set ...
Comment #4
stred commentedrequire_once is broken as well on line 37 in authcache.inc
should be
require_once drupal_get_path('module', 'authcache') .'/ajax/authcache.php';
Comment #5
socialnicheguru commentedfor the first patch, i get this on the 7.x march 2012 dev release
m/all/authcache$ git apply *patch
authcache_invalidate.patch:8: trailing whitespace.
$num_deleted = db_delete('sessions')
authcache_invalidate.patch:14: trailing whitespace.
authcache_user_login($edit = NULL, $user);
authcache_invalidate.patch:15: trailing whitespace.
drupal_set_message(t('%num user sessions have been invalidated.', array('%num' => $num_deleted)));
error: patch failed: authcache.admin.inc:170
error: authcache.admin.inc: patch does not apply
Comment #6
simg commentedThanks guys. Apologies for the delay in responding, for some reason Authcache issues aren't appearing on my d.o homepage, so there I was happily believing there was zero issues and (zero interest) in Authcache D7.
Patch applied to the dev version along with issues raised in #2 #4
I'm not ( yet! :) ) a Drupal core guru by any stretch, so your assistance / patience is greatly appreciated :)
Comment #7
simg commented