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

theme installation/unistallation problem #24

Closed
Gabri opened this issue Jan 22, 2012 · 4 comments
Closed

theme installation/unistallation problem #24

Gabri opened this issue Jan 22, 2012 · 4 comments
Labels
Milestone

Comments

@Gabri
Copy link

Gabri commented Jan 22, 2012

I encounter (again) problems on installation of a theme (zip made with the shell script).
After the installation I cannot see the default image of the theme and the information contained in the yaml file (the 'settings' field of 'module' table is NULL).
Then if I try to uninstall the theme I have an error message at the top of the page:
"Error uninstalling theme '[Theme name]'"
So I checked the error.log file. I discovered that during these opeations (install/uninstall) I have this stack trace:

2012-01-22 15:03:12 Error: [NotFoundException] The requested file was not found
#0 /home/gabri/workspace/uacepquickapp/app/Cake/Controller/Controller.php(933): MediaView->render(NULL, NULL)
#1 /home/gabri/workspace/uacepquickapp/app/Cake/Routing/Dispatcher.php(111): Controller->render()
#2 /home/gabri/workspace/uacepquickapp/app/Cake/Routing/Dispatcher.php(86): Dispatcher->_invoke(Object(ThemesController), Object(CakeRequest), Object(CakeResponse))
#3 /home/gabri/workspace/uacepquickapp/webroot/index.php(47): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#4 {main}

I have this stack trace twice for every operation (with same text and timestamp too)

Initially I tought that the problem could be the fact that I used (in the first test) a Theme name with a quote character inside; anyway trying to make a TestTheme with no strage chars and I have the same behavior.

I hope it helps

@Gabri
Copy link
Author

Gabri commented Jan 22, 2012

Maybe the stack trace isn't related to the problem.
Clicking on 'set as default' link the operation works fine (I tried with 2 different themes and the Default too) but the stack traces were always shown in these operations too

@quickapps
Copy link
Owner

I was unable to reproduce this issue. (fresh new install from github package)
Shell seems to work fine, Ive created a new theme and:

  • installation, ok
  • set as default, ok
  • theme's thumbnail image, shows ok
  • uninstall, ok
  • "the 'settings' field of 'module' table is NULL": This is completely normal, if you have not configured your theme after installation there are not settings.
  • "NotFoundException": this is may be related to the missing theme's thumbnail

Can you check this?:
Check the method admin_theme_tn in controller: Plugin/System/Controller/ThemesController.php
And try to find the cause of the thumbnail issue. Because I was unable to reproduce this issue.

Also, after theme installation clear all your cache files on /tmp/cache

I think that all this may be related to some enviroment factors.
Anyway, I'll keep trying to reproduce this, and find the cause.

Thanks!
Chris

@Gabri
Copy link
Author

Gabri commented Jan 22, 2012

Found the problem! :)

The issue regards the Theme name!
During the theme production, shell sais:
"Alias name of the theme, in CamelCase. e.g.: "MyTestTheme" [R]"
And every time I typed something like "DummyTheme" or "TestTheme"
Everything works fine if I don't use the suffix "Theme".
In wiki I haven't found that is not possible to use that suffix, but probably it could be good to check on shell script this kind of constraint (if it is) and ask to type again a new name.

In my case:
Theme name: TestTheme
the function admin_theme_tn produced a path like this: "/home/gabri/workspace/uacepquickapp/Themes/Themed/Test/"
and not "/home/gabri/workspace/uacepquickapp/Themes/Themed/TestTheme/"

I think the uninstallation issue has a similar problem even if I put the suffix "Theme" on the unistallation url it raises the same message.

@quickapps
Copy link
Owner

Interesting, I'll take a look and try to fix it.
Theme suffix is not forbidden, so this may be an QA's core issue.

@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