By skmr on
I'm unable to access my themes page, the following error is thrown up while accessing. Any idea ?
Fatal error: Cannot redeclare chameleon_features() in /home/hanuman1/public_html/xboxcheat/themes/chameleon/chameleon.theme on line 11
Comments
You have duplicate files
On the themes page, EVERY file in themes/*/*.theme is evaluated once each.
If you (or someone) tried making their own theme by copying an existing directory (which is the correct step 1) but failed to rename every function inside the files to their new theme name (which is the neccessary step 2) you'll get this error.
Go in and physically remove/move the theme files you don't use out of the themes directory.
Find in files for that funcname chameleon_features and see where the dupe is.
Even just having a backup called "Copy of chameleon.theme" Is illegal, as the dir scan return it as another available theme.
PS - Same goes for modules, and NEVER have a module the same name as a theme.
.dan.
http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
thank you...
this is one of the rare times I can remember finding a simple, straightforward answer right after searching for the problem! Thanks .dan!