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.
Drupal 7.9
After copying the theme to sites/all/themes it crashes the default XAMPP installation. Haven't had such problems with other themes. Haven't found so far the reason or error why this might happen and tried only with Windows and none of *nix platforms. Ofcourse there can be some issues with apache / php config why this happens, but memory limits are high and other sites and themes works perfectly.
If someone can verify the same results and get's an hang of it what happens would be nice, because the theme looks promising.
Comment | File | Size | Author |
---|---|---|---|
#29 | arctica_dev.zip | 421.76 KB | JurriaanRoelofs |
Comments
Comment #1
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedI found that The problem is that XAMPP crashes when the .info file contains a theme setting default that has more than 382 characters.
I'm not sure why that is but it's a problem because the "meta" variable is over 1000 characters.
This variable contains device/browser related tweaks. I do want to keep this as a variable because different designs may require different tweaks to browser zooming/scaling.
For now I'll just separate the meta tags (tweaks) from the scripts (browser bugfixes) in that default settings, so that I'll only have to load 320 characters for the meta tags. I'll have to get the scripts into the theme some other way, I'll probably add checkbox settings.
If anyone knows a better solution please let me know.
I'll upload a fix tonight but for now if you want to use the beta3 you can get around the problem like this:
1. Open up the .info file of Arctica AND the starter themes (whether you use them or not)
2. At the bottom, clear out the settings[meta] default setting so that it looks like this:
3. Clear all caches. Otherwise the new .info files will not be loaded.
4. Now you should be able to load the theme settings page.
Strangely this problem only occurs in XAMPP and not in my NIX systems.
Comment #2
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedfixed in beta4
Comment #3
dddave CreditAttribution: dddave commentedAbove is the signature of the crash I get everytime I try to put this theme into the folder. I am using Aquias Development Stack btw.
Apache error log shows this for my various trials:
I have not yet tested on a completely vanilla install. The current sites all had various other themes in the folder but as far as I understand this complex this shouldn't cause problems.
Comment #4
dddave CreditAttribution: dddave commentednarf...
Comment #5
dddave CreditAttribution: dddave commentedJust confirmed with another install (multisite). This time I did put the theme into a dedicated themes folder just for one of the sites and only this site crashes. The other sites remain unharmed. The crash appears when I try to load the "Appearance" settings. I am going to investigate further...
Comment #6
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHi dave, very strange, I'll bet it's because of the .info file again.
Are you also on windows?
Comment #7
dddave CreditAttribution: dddave commentedYup. I am using the Acquia xAMP stack. Planing on digging into it this afternoon.
Comment #8
dddave CreditAttribution: dddave commentedFirst finding: Definitely something with the info file. Deleting all three info files prevents crashing. Now to find the cause in the files...
Comment #9
dddave CreditAttribution: dddave commentedgr........
Comment #10
dddave CreditAttribution: dddave commentedOk, something is broken with the
settings[meta]
line. Deleting this line entirely prevents the crash. Dunno what is the problem exactly though...btw: Same problem exists with Tundra. Tundra causes a crash and after deletion of the bogus line in the info file(s) the theme appears on the appearance/list page without crashing Apache.
Edit: The settings[meta] line is presented in one long line. I changed it to look like the same entry in TouchPro which didn't help. But deleting any part like
<meta http-equiv="cleartype" content ="on">
prevents the crash. Note that this part in TouchPro does NOT cause a crash...Comment #11
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHi, I tried to fix this earlier in this thread by reducing the meta setting to less characters, and now it appears it has to be even smaller. This is really annoying because I don't want to remove any more meta tags from the default settings. I'm not sure how to fix this, maybe I'll have to write a custom function just to replace this single settings default.
Comment #12
mariusm CreditAttribution: mariusm commentedHello,
In all .info files ( 3 )
replace
settings[meta] = '
with
settings[meta] = ''
Comment #13
Petemoss CreditAttribution: Petemoss commentedRe: #12
Replacing the single quote with the double quote for the settings[meta] solves the crashing problem. But it affects the integrity of settings[meta]. The "UX Tweaks" in theme settings is now empty.
The search for a correct solution continues ...
Comment #14
Petemoss CreditAttribution: Petemoss commentedWe establish the fact that the
settings[meta]
line in the .info file is the problem.A fix is to break the
settings[meta]
into two lines, and then change the code logic to combine them.Step 1: Break meta into meta1 and meta2 in .info file, and set meta to empty.
Note: Do this for Arctica, Arctica_starterkit, and Arctica_starterkit_bigtheme .
Step 2: In the /arctica/features/arctica-layoutkit/ directory, edit the "layoutkit-theme-settings.inc" file as follows.
Note that the default value of meta is now the concatenation of itself, meta1 and meta2 :
'#default_value' => theme_get_setting("meta") . theme_get_setting("meta1") . theme_get_setting("meta2"),
================================================
This fix solves the crash problem and maintains the integrity of the code logic.
This fix also applies to the Tundra theme which has the same problem.
Comment #15
shp CreditAttribution: shp commentedThere is more simple solution. It works for me:
P.S. Don't forget to modify all 3 info-files.
Comment #16
DruBerrymore CreditAttribution: DruBerrymore commentedThe solution in #15 does not work. Nothing is changed in the settings[meta] . It's still the same long meta. It still crashes.
The solution in #14 works.
Comment #17
shp CreditAttribution: shp commentedNo, I've removed line breaks at the beginning and at the end of the string.
Before:
After:
And - I've checked once more - this modification makes Arctica to work for me (on WinXP-SP3, Apache 2.2.14, PHP 5.2.11).
Comment #18
DruBerrymore CreditAttribution: DruBerrymore commentedOK, the explanation makes it clearer. Removing line breaks of the settings[meta] string solves the problem. Solution #17 works for me now on WAMP. I consider this problem now fixed.
Comment #19
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedThx for your help guys much appreciated. I thought i had it fixed at #2 so this time i want to be sure before i create another release.
Can everyone confirm the latest dev does not crash your site? Ill leave this open til wednesday and make a release if theres no problems with the dev.
Comment #20
shp CreditAttribution: shp commentedarctica-7.x-1.x-dev (December 26, 2011 - 12:01) works fine both on Win & Linux.
Comment #21
dddave CreditAttribution: dddave commentedSo why the freck isn't it working for me? Going to investigate tomorrow but atm I have no clue...
Comment #22
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHow about if you reduce the setting in the dev version to 1 meta tag? I think the number of characters might make the difference
Comment #23
DruBerrymore CreditAttribution: DruBerrymore commentedI confirm that arctica-7.x-1.x-dev (December 26, 2011) works on WAMP and LAMP.
Comment #24
mariusm CreditAttribution: mariusm commentedarctica-7.x-1.x-dev (December 26, 2011)
Don't work in wamp (64) windows ultimate
Comment #25
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedAllright that's 2 guys already that have their wamp stacks blow up, I guess I have to do some concatenation of meta tags like Pete suggested.
Comment #26
dddave CreditAttribution: dddave commentedMy dabbling around with the built from the 26th wasn't successful. I stand put to test anything new...
edit: I got a combination of Arctica, Tundra and TouchPro to NOT crash. I deleted all meta lines in the info files of the various starterkits so that only info files in the arctica, tundra and touchpro folders remained. I also had to change a lot stuff like
content ="on"
tocontent="on"
.Themes seem to work ok but I am just starting to fool around now...
Comment #27
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedCan you tell me what your environment is exactly? What lamp stack and what version of windows?
It's hard for me to work this out without being able to reproduce.
I'll install the Acquia stack when I have time and see where that takes me.
Comment #28
dddave CreditAttribution: dddave commentedW7 Home Premium (64Bit) but I am going to test on the latest version of the Acquia stack today. They upgraded Apache since the last time I checked and maybe this solves the problem.
Edit: Nope. On a vanilla install running the latest stack from Acquia all I got are crashes. The dev desktop is sporting Apache 2.2.21 and Mysql 5.1.59-community. Do you need anything else?
Comment #29
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedI can now confirm Acquia Drupal stack crashes when Arctica is added. It seems to have a smaller .info string length limit.
If you remove all contrib stuff (or start with a fresh install) and install attached theme (just Arctica core with modifications) do you have a crash?
For me this is working on the acquia-drupal stack on W7 X64. If this still crashes for you, try removing more meta tags from the .info file at line 130 until you can refresh the page without crashing. If this is in fact necessary the bug might be hardware dependent.
Comment #30
dddave CreditAttribution: dddave commentedWorking for me too.
Comment #31
dddave CreditAttribution: dddave commentedCreated issue for Tundra #1391898: Crashes Apache on Aquia Stack.
Comment #32
dddave CreditAttribution: dddave commentedJust out of curiosity: Any plans here?
Comment #33
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedyes, this week I've not been able to work in Arctica due to time constraints. Next week I should be able to get a new release out, I hope.
Comment #34
dddave CreditAttribution: dddave commentedThanks for the update.
Comment #35
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedfixed in next release
Comment #36
strategictech CreditAttribution: strategictech commentedYou can fix this by setting the
pcre.backtrack_limit and pcre.recursion_limit lower!
you can do this in settings.php I opted to set it in my .htaccess like so:
php_value pcre.backtrack_limit 100
php_value pcre.recursion_limit 100
Comment #36.0
strategictech CreditAttribution: strategictech commentedAdded drupal version