Picture of Sébastien Bonte
theme uploading and previewing
by Sébastien Bonte - Sunday, 8 May 2016, 11:04 PM
 

Hi everybody,

I followed the modifying vanilla's theme wiki (change bower.json, zip with the directory files as said in the wiki), but without success.

1- When I use the root file as said in th wiki 

folder.zip/
    theme root folder/
        assets/
        fonts/
        ... etc.

I cannot upload the zip file, I have this error : 

Plugin upload failed

Error: Cannot find expected bower.json file in the plugin root, please check the structure of your zip file and try again.

2 - when i cut the root directory unlikely the wiki recommend :

folder.zip/
    assets/
    fonts/
    ... etc.

I got this error message :

 

Plugin upload failed

But in this case, the theme appear in the theme list, but when I run the preview, I have this error message :

Error

Error generating preview, please contact Administrator.

 

So what can I do ? Please I really need to change the theme ! I have searched on the forum and I saw many similars problems, I tried but it's still doen't work.

 

Thanks you

 

Picture of Dan Jonsson
Re: theme uploading and previewing
by Dan Jonsson - Monday, 16 May 2016, 9:54 AM
 

Got the same problem!

Trying to install the adapt-iceCream theme.

Need a solution with this!

At least I got the Authoring Framework to work!

D

Picture of Dillon Esterhuizen
Re: theme uploading and previewing
by Dillon Esterhuizen - Saturday, 21 May 2016, 12:05 AM
 

Hi there

I did not get the same error as you with regards to changing a theme, however, I did get your second error, i.e. "Error generating preview, please contact Administrator.". So for me, this happened when I clicked "Preview" and if you look at the information in the command line and it tells you there's a permission error, then my fix could help you.

So what I did to get around this was; I just changed the permissions for the adapt_authoring/ directory. I'm not sure what the ideal permissions are, or what user needs to have what permissions. But just make sure that for whatever user you are accessing adapt with (probably the same user you launched adapt with), has read, write and execute permissions. If you can't figure out which one, then just set the read, write and execute permissions to all users and it should work. I advise you to revisit those permissions and try to restrict them as far as possible that still allows adapt to work properly.

If you use Terminal on a MacBook, you can type something like "sudo chmod -R 777 /your/path/to/ adap_authoring/" without the quotations. Note that 777 gives full access to all users. Please make sure you change this sooner rather than later and make it more restrictive. Otherwise, you could look in the command line to see what file adapt doesn't have permission to read, then just change the permissions for that specific file or directory.

I hope this helps!

Picture of Heramb Naria
Re: theme uploading and previewing
by Heramb Naria - Tuesday, 7 June 2016, 1:57 PM
 

Dd you find a solution? I am facing the same issue ... 

Picture of Nick Petch
Re: theme uploading and previewing
by Nick Petch - Tuesday, 5 July 2016, 6:13 AM
 

Did you manage to find a solution to this? 

I'm facing the same issues,

I have even tested with untouched 'Adapt-contrib' plugins and they also get the same error.

Cheers