Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a sandbox distro I'm working on / learning with. When I build with themekey 7.x-3.0-beta1 included, the distro won't install (the install screen doesn't display and there's no meaningful php errors or log entries). After some trial and error I determined the issue was with themekey. I swapped in themekey 7.x-2.5 and the distro installs just fine.
Sorry I haven't had a chance to look into this deeper yet.
Comments
Comment #1
mkalkbrennerProbably found the cause:
Fatal error: Cannot redeclare themekey_update_7300() (previously declared in /Volumes/Local Storage/git/themekey_7.x/themekey.install:568) in /Volumes/Local Storage/git/themekey_7.x/themekey_redirect/themekey_redirect.install on line 44
Comment #2
mkalkbrennerI committed http://drupalcode.org/project/themekey.git/commit/f490938
Maybe that solves your issue.
Comment #3
inteja CreditAttribution: inteja commentedI've tried 7.x-2.5, 7.x-3.0-beta1 and your latest dev with the patch applied but still getting "this web page is not available" (chrome) when I use either of the latter two versions. As soon as I swap to 7.x-2.5 the site is accessible again.
Comment #4
inteja CreditAttribution: inteja commentedAfter more testing, the issue is only evident on my local dev environment. Works fine on remote dev environment, so I need to look into the differences between the 2 environments.
Comment #5
mkalkbrennerI'm really interested in your findings.
Mabye you have to lower the error reporting level of your PHP to get a hint.
Are you using APC? Depending on it's configuration it has to be restarted when you update the code.
Comment #6
dazweeja CreditAttribution: dazweeja commentedI just solved a similar issue - 7.x-3.0-beta1 working fine on one site, migrated to another and I can't even load the modules page if the 'themekey' module is in the modules directory (even if disabled).
You're probably not going to believe what the problem is - the 'description' in 'themekey_redirect.info' is too long. Chop off the last sentence and the modules page loads again. Why it works on one site and not another is a mystery, as it was a mysql dump migration.
Comment #7
mkalkbrennerYou're right. The description has to be limited to 255 characters:
https://drupal.org/node/542202#description
Comment #8
mkalkbrennerFixed in 3.x-dev.
Comment #9
mkalkbrennerOne more detail: The truncation of strings changed between different MySQL versions. Former versions truncated the string silently while newer versions cause a PDO Exception. I guess that this is the reason why it "worked" on some (or most) systems.