Open maxplus opened 10 years ago
@labboy0276 i think there is a function in kalatheme which checks for the update module. we should make sure that we add something to this error message so the user knows they also need to turn the update module on to build subthemes. @katypool, we should add this into the documentation as well.
If you want Kalatheme to be able to use custom Bootstrap libraries or generate subthemes automatically please properly configure your webserver and turn on the updates module"
@pirog can we just make ti a dependency and call it a day?
@labboy0276 i don't know if we can make it a dependency of the whole project. there are a lot of reasons why someone might not want to turn on the update module and a lot of people won't even need it because they wont use a subtheme or custom library.
@reynoldsalec or @andrewmallis do you have any thoughts on this? maybe its not a big deal to just make it a dependency?
Running Kalatheme 7.x-3.0 on MAMP, PHP 5.3.27
I must be missing something. When I attempt to add the openmind Custom Bootstrap library, the template.php and main.css files are blank (except for comments at the top).
Any thoughts?
I think that is the expected behavior. They are just placeholder files for your new sub theme.
On Wednesday, July 30, 2014, jtjones23 notifications@github.com wrote:
Running Kalatheme 7.x-3.0 on MAMP, PHP 5.3.27
I must be missing something. When I attempt to add the openmind Custom Bootstrap library, the template.php and main.css files are blank (except for comments at the top).
Any thoughts?
— Reply to this email directly or view it on GitHub https://github.com/drupalprojects/kalatheme/issues/123#issuecomment-50707821 .
Cheers,
Mike Pirog Kalamuna www.kalamuna.com
@jtjones23 I believe your issue relates to #203 and not to this issue.
I can confirm that kalatheme_backend_check() is checking whether the update module exists along with server related checks to see if we can do our stuff:
function kalatheme_backend_check() {
// Verify FTP support
$ftp_installed = extension_loaded('ftp');
// Verify SSH support
$ssh_installed = extension_loaded('ssh2');
// Verify web server write permissions
$install_permissions = kalatheme_has_write_access();
// Verify update module is enabled
$updates_module = module_exists('update');
return (($ftp_installed || $ssh_installed || $install_permissions) && $updates_module);
}
In kalatheme_backend_check_form() line 91 kalatheme_backend_check() is being used and then error messages about webserver config are being output if it returns FALSE
. This seems far too vague a message for just the webserver related stuff let alone the fact that this message could fire in the event that everything is fine except for the fact that the update module is off.
Here's some questions I have:
So, I just noticed also that these messages are often printed out as part of the form itself rather than using drupal_set_message() so perhaps that could help us solve the issue of vague messages.
I don't believe a theme can enable/disable modules…
Declaring update module as a dependency is poor form; it is a memory hog on production during each cron run.
The help text message in #205 addresses what I believe the scope of this issue, which I have retitled.
The wiki page has also been updated.
Moving this to QA
Guys,
I had a lot of problems fighting the error message in the theme settings "If you want Kalatheme to be able to use custom Bootstrap libraries or generate subthemes automatically please properly configure your webserver."
Now I found out with viewing the Kalatheme code, that you not only need 775 permissions for your themes and libraries folder, BUT YOU ALSO NEED TO ENABLE THE UPDATE MODULE!
I always disable the "update module" because it makes development much slower,...
Maybe something to write down as requirement in the WIKI? https://github.com/drupalprojects/kalatheme/wiki/Configuring-Server-for-Automatic-Kalatheme-installation