Active
Project:
Fences - Semantic field markup and classes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jan 2015 at 13:15 UTC
Updated:
31 May 2016 at 07:27 UTC
Jump to comment: Most recent
Comments
Comment #1
goldThis does not appear to be an issue with Fences. The error suggests it's a copy/paste error in a theme rather than something from this module.
Closing this. If you can provide more detail to identify the issue within Fences feel free to reopen.
Comment #2
henrijs.seso commentedUnassigning author. I got this too. When using drush aliases, not with plain drush in working directory.
Comment #3
forestmars commentedThis bug is a craymaker. (Also, a heisenbug?)
WRT #1 it is *definitely* not a copy/paste error in a theme, since it occurs with vanilla Bartik.
WRT #2 Disabling Semantic Panels didn't suppress this bug for me. The only thing that suppresses the bug is disabling fences.
With Fences enabled, drush insists every function in template.php is being redeclared, regardless which core or custom theme is the enabled default theme (with the exception, of course, of Stark, which has no template.php.)
Tested with both 7.x-2.0-beta1 & 7.x-1.x-dev with the same results.
Re-opening as a matter of record, as there is evidently a bug in there, albeit an elusive one.
Comment #4
creatile commentedI can reproduce the bug easily with drupal-7.41 with the following action :
drush dl drupal
Install drupal 7.41
Then here are my terminal actions :
Comment #5
creatile commentedI started a new test :
drupal-7.41
drush 5.9
php 5.4
The problem appears with token pathauto and fences enabled
Comment #6
j.cowher commentedA workaround that works for me when this happens is to "sudo" the Drush command, e.g.
sudo drush cc allComment #7
johnalbin99% of the time, using "sudo" is not the answer. And it has nothing to do with this issue either. If someone told you to "try the command with sudo" if something doesn't work, that was bad advice.
Anyway…
This bug is probably caused by this code in fences.admin.inc:
Note that Fences is using "include_once" to try to prevent the template.php from being included more than once. If you just "include" it and that template.php has already been included before, you'll get the "Cannot redeclare preprocess in template.php" error.
The next step is to look in token or pathauto to see if it is including template.php and how it is doing it.