Migrating Theme from Windows to Linux

Migrating Theme from Windows to Linux

by Yehuda Zimmerman -
Number of replies: 4

I created a theme that works in Moodle 2.2.x on a Windows XP machine. Now I am migrating to Ubuntu. I copied the theme directory, cleared the theme cache, rebooted, etc., but I still can't see my theme in the Theme Selector window.

In addition, even on the Windows machine my theme did not appear in the list of themes in the Site administration > Appearance > Themes tree.

Any help is greatly appreciated!

Average of ratings: -
In reply to Yehuda Zimmerman

Re: Migrating Theme from Windows to Linux

by Frank Ralf -
Hi Yehuda,

Make sure that your files have the correct line ending when uploading them from Windows to Linux. Any good text editor should change them if needed, e.g. Notepad++ (http://notepad-plus-plus.org )

See http://en.wikipedia.org/wiki/Newline for details.

hth
Frank
Average of ratings: Useful (1)
In reply to Yehuda Zimmerman

Re: Migrating Theme from Windows to Linux

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

I would suggest your first step would be to check the permissions on the theme folder. I have often found transfering files from Windows to Linux or the other way I seem to end up with restricted permissions - and that's nothing to do with moodle, it happens with other files too, depending on how they are transferred.

As for not appearing on the Appearance>Themes tree - this isn't a full list of themes, only themes which have a settings page of their own, so if your theme doesn't have its own settings page it wouldn't be expected to appear there.

Richard

Average of ratings: Useful (1)
In reply to Richard Oelmann

Re: Migrating Theme from Windows to Linux

by Yehuda Zimmerman -

I set the permissions to the same as the standard theme, but it didn't help!