Closed (fixed)
Project:
Token
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Sep 2012 at 20:36 UTC
Updated:
6 Mar 2015 at 09:59 UTC
Jump to comment: Most recent
Comments
Comment #1
dave reidI would say re-download the files because your token.tokens.inc file is corrupt. There is clearly not another definition of token_token_info_alter() on line 83: http://drupalcode.org/project/token.git/blob/963569d1f28b2627ba7511b4cad...
Comment #2
socialnicheguru commentedthat was weird. you were right.
Comment #3
yareckon commentedAnother culprit for this is APC or other opcode cache that contains both the old and new function declarations. In my case this exact error was caused by APC. When I put a bunch of whitespace in the top of the affected file only one of the conflicting declarations changed line number which means that the other one was a phantom in some sort of cache. Restarting apache clears the APC cache. It's funny that the token module gets hit with this one. I think I have another site where it happened too... maybe something about that byte sequence triggers an APC bug.
Comment #4
sabarigr commentedI had the same problem while I was about to install the OpenDeals module. There was two token project references one in my drupal theme folder & another came with the OpenDeals project preattached. I removed the one within the OpenDeals module and got rid of this error. Hope this helps.
Thank you for reading..
Comment #5
rohnjeynolds commentedThis is an old thread but we just had the same error and traced it back to APC. Turning off APC resolved the issue, but that wasn't an option for us. We got relief by allocating more memory to APC in the environments where we were getting this error. In apc.ini (on Ubuntu), we changed this:
apc.shm_size=256Mto
apc.shm_size=512MAnd restarted the Web server.
There are posts on the Web reporting similar errors and suggesting that a bug in APC is the real culprit, but if you're not in a position to disable or replace APC, upping the memory allocation might be worth trying first.
Comment #6
Morten Najbjerg commentedI can confirm what rohnjeynolds says in #5. Thanks! APC seems to be the one causing the headache.
I experienced this in my local development environment using MAMP.