Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module installation (of the zipped one packaged from shell script) #33

Closed
Gabri opened this issue Feb 29, 2012 · 4 comments
Closed

Module installation (of the zipped one packaged from shell script) #33

Gabri opened this issue Feb 29, 2012 · 4 comments
Labels
Milestone

Comments

@Gabri
Copy link

Gabri commented Feb 29, 2012

I've just created a Module (AddThis), it was packed in
/server/home/guidi/qa/webroot/files/AddThis.zip
I tried to install from backoffice, and doing this i had this blocking error for the entire website:

Missing Component
Error: .ModuleNameHookComponent could not be found.
Error: Create the class .ModuleNameHookComponent below in file: /dati/server/home/guidi/qa/Controller/Component/.ModuleNameHookComponent.php

load(string, array) APP/Cake/Controller/Controller.php line 611 → ComponentCollection->init(ModulesController) APP/Cake/Routing/Dispatcher.php line 100 → Controller->constructClasses() APP/Cake/Routing/Dispatcher.php line 86 → Dispatcher->_invoke(ModulesController, CakeRequest, CakeResponse) CORE/qa/webroot/index.php line 47 → Dispatcher->dispatch(CakeRequest, CakeResponse)
@Gabri
Copy link
Author

Gabri commented Feb 29, 2012

Maybe it's just a problem with Mac dotted file generated...
I'll try with a different server, maybe it's just a problem of this particular environment

@Gabri
Copy link
Author

Gabri commented Feb 29, 2012

Yes, on my local pc no problem. Tomorrow I'll try in the same server to uderstand better the problem.
So probably not a bug

@quickapps
Copy link
Owner

I think this can be related to the Hook-preloader logic,

System.Lib/HookCollection.php
find the line 351:

   $files = $folder->find('(.*)Hook(Component|Behavior|Helper|tagsHelper)\.php');

replace for this one:

   $files = $folder->find('([a-zA-Z0-9]*)Hook(Component|Behavior|Helper|tagsHelper)\.php');

That should ignore any class file containing non-alphanumeric chars on its name.

then clear your cache files on tmp/cache and try again

@Gabri
Copy link
Author

Gabri commented Mar 1, 2012

yes, that perfectly solves the problem!

@botchris botchris modified the milestones: 2.0, 1.x Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants