Moodle Theme package file loading and Invalid zip file error


Author Message
Jimi

Posted: 10/31/2014
Quote message 

Hi I've installed moodle 2.5.8 and created a theme in artisteer.

I uploaded the theme to the server and it loaded fine and showed up in the theme selector.
But when I try to add a scorm file the package loader site on loading, this doesn't happen with a default theme.

I tried installing the theme through the plugin installer i get the error.
"Invalid structure of the ZIP package"

thanks for any help
 
Tanya
Artisteer Team

Posted: 10/31/2014
Quote message 

Hi,

Please make sure that your template includes at least one sidebar.

Best regards,
Tanya
 
Jimi

Posted: 11/1/2014
Quote message 

Thanks Tanya.
its a 3 column template.
I've turned debugging on and the error is in the renderers.php.

I can send you the file if you like.

removing the custom menu makes no differance

line 148 = $content .= html_writer::start_tag('ul', array('class'=>'art-hmenu') );
line 232 = }

Strict Standards: Declaration of theme_hrbusinessv1_core_renderer::block() should be compatible with core_renderer::block(block_contents $bc, $region) in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 232 Strict Standards: Declaration of theme_hrbusinessv1_core_renderer::custom_menu() should be compatible with core_renderer::custom_menu($custommenuitems = '') in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 232 Notice: Undefined variable: content in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 148
 
Jimi

Posted: 11/4/2014
Quote message 

any help would be appreciated..
 
jimi

Posted: 11/4/2014
Quote message 

I may not have made it clear.

this bit is the error generated when debugging is on..

Strict Standards: Declaration of theme_hrbusinessv1_core_renderer::block() should be compatible with core_renderer::block(block_contents $bc, $region) in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 232 Strict Standards: Declaration of theme_hrbusinessv1_core_renderer::custom_menu() should be compatible with core_renderer::custom_menu($custommenuitems = '') in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 232 Notice: Undefined variable: content in /home/sites/hrbusinessservices.org.uk/public_html/home/theme/hrbusinessv1/renderers.php on line 148
 
Christian

Posted: 1/14/2016
Quote message 

Hi Jiri

Just now I am working on my first Moodle theme with Artisteer, ran into the same problem, and found a solution:
- The reason for Moodle not accepting the Artisteer-generated zip-file is that Artisteer puts all generated subfolders directly into the zip-file.
- The correct way is: first to put all subfolders into one single folder (same name as the whole project and the zip-file itself) and then putting this single container folder into the zip-file.
- When exporting for Moodle, I therefore leave the "Create Zip File" option in Artisteer unchecked, as that would only lead to the error you detected. Instead, I export the project to an uncompressed folder. Then, outside of Artisteer, I create a zip-file from this exported project folder. The software I use is Winrar (http://www.win-rar.com), as a name for the zip-file I use the project name. The resulting zip-file is accepted by Moodle with no problems.

Hope this helps, Christian