Project:Color.module: Next generation
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

BS"D

I have installed the ng.color module to use with Nista theme and so far I am waiting 1/2 hour for it to generate schemes! The bar is still moving so I assume it is active and not frozen.

How long should the process take?

Thanks!

Comments

#1

Priority:critical» normal

No, it definitely should not take 30 minutes. More like 15 seconds.

Any screenshots? Error log files?

Do you have php5-gd installed? Nista will generate images. Can you see if generated schemes for a theme like cleanstate works?

I'm changing the priority unless you can make this reproducible. If you give me more information I can still help.

#2

I've seen the same behavior, with thousands of directories and files being created in sites/domain/files/color. I'm just getting started trying to use the color_soc module.

Here are my steps:

  1. Start out with the new zenland theme, which supports the current color module. I made sure that the current color mechanism worked with it.
  2. Install the color_soc module as per directions (disable color, unpack, enable, upgrade).
  3. Add color=TRUE to zenland.info
  4. Add
    <?php
    function zenland_color() {
      include_once
    './' . drupal_get_path('theme', 'zenland') . '/color/color.inc';
      return
    $info;
    }
    ?>
    to zenland/template.php
  5. Go to the Zenland theme configuration, click Generate themes and enable.
  6. Stopped it after a few minutes by going to the Recent Log Entries page.

I had a large number of two particular errors in my log:

  • # warning: Invalid argument supplied for foreach() in ...sites\all\modules\color_soc08\color.generate.inc on line 70.
  • # warning: Division by zero in ...sites\all\modules\color_soc08\color.batch.inc on line 204.

In addition, I had two other errors at the top of the log:

  • # user warning: Field 'premade schemes' doesn't have a default value query: INSERT INTO color (`name`, `type`, `fields`, `replacement methods`) VALUES ('zenland', 'theme', 'N;', 'N;') in ...sites\all\modules\color_soc08\color.batch.inc on line 94.
  • # warning: Invalid argument supplied for foreach() in ...sites\all\modules\color_soc08\color.batch.inc on line 133.

If I had to guess, I'd guess that the page that says hook_color() can return an array identical to that returned by color.inc isn't quite correct.

#3

using cleanstate it's forever to Generating schemes on my local machine, but fine on webhosting. Alhtough on local, everything is just normal...not that slow. any settings should done on local machine?

btw, when looking at the browser status ... the keep changing .., completed 240 of 241 items, then 241 of 242 items ..and keep runnings ... does not look right here.