Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

Cannot Export LO

Plus d'informations
il y a 10 ans 5 mois #3502 par g-marsh
Cannot Export LO a été créé par g-marsh
We upgraded from V2 to V3.1 in January and the authors say this is the first time they have tried to export.
I have a very simple LO - just a couple of very small text pages.
I try to export it but when I click on Get Deployment Zip nothing appears to happen.
I have tried this in IE, Firefox and Chrome browser with similar results i.e. no export.

There were no error messages in the PHP error log.
Empty files were created such as, /tmp/xerteExportKzfWy4

I set $development = true; in config.php, restarted Apache and retried the export.

This time I got the following error in the PHP error log,
[Thu Feb 18 14:07:42 2016] [error] [client 164.11.232.43] PHP Fatal error: Class 'Xerte_Zip_Factory' not found in /var/www/modules/xerte/export.php on line 124, referer: xerte.uwe.ac.uk/properties.php?template_id=476

I also had this in the /tmp/debug.log,
2016-02-18 14:07:42 /var/www/website_code/php/database_library.php175Running : select templatedetails.template_name as zipname, templaterights.template_id, logindetails.username, originaltemplatesdetails.template_name,originaltemplatesdetails.template_framework from templaterights, logindetails, originaltemplatesdetails, templatedetails WHERE templatedetails.template_type_id = originaltemplatesdetails.template_type_id and templaterights.template_id = templatedetails.template_id and templatedetails.creator_id = logindetails.login_id and templaterights.template_id= ? AND role= ?
2016-02-18 14:07:42 /var/www/modules/xerte/export.php112Temporary zip file is : /tmp/xerteExportKzfWy4

Zip appears to be enabled in PHP,
Output of php -i
-- snip --
zip

Zip => enabled
Extension Version => $Id: 6c872ebfb022206b0cc2a183c7a388c7b6ad8685 $
Zip version => 1.11.0
Libzip version => 0.10.1
-- snip --

Any thoughts or other tests I can run please?

Regards
Greg

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 5 mois #3507 par tom
Réponse de tom sur le sujet Cannot Export LO
What version of php are you using>

class Xerte_Zip_Factor is autoloaded using spl_autoload_register (library/autoloader.php)

But that requires a version of php > 5.1.2

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 5 mois - il y a 10 ans 5 mois #3508 par JohnSmith
Réponse de JohnSmith sur le sujet Cannot Export LO
Hi,

Did you download your zip file from Github or from this site?

Check that the files in the /library/Xerte/Zip folder are there on your install (see github.com/thexerteproject/xerteonlineto...op/library/Xerte/Zip )

Maybe even replace these Zip files with the ones from the latest v3.1 download. For some reason some of them are not being loaded...

John
Dernière édition: il y a 10 ans 5 mois par JohnSmith.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 5 mois #3510 par g-marsh
Réponse de g-marsh sur le sujet Cannot Export LO
Thanks Tom.
PHP version is 5.4.45

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 5 mois #3511 par tom
Réponse de tom sur le sujet Cannot Export LO
Please see John's answer as well.

Do you have 3 files in library/Xerte/Zip:
Factory.php, Interface.php and Native.php?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 5 mois #3512 par g-marsh
Réponse de g-marsh sur le sujet Cannot Export LO
John (and Tom),
Many thanks for the help. That seems to have done the trick. I have passed it to the authors for 'proper' testing.
I did not have the Zip folder or the Validate folder, which was causing another issue for me. I downloaded the files from github and all seems well now.
I don't know how I ended up with a partial installation. The original download was the V3.1 from the Xerte site in January.
Thanks again,
Greg

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.143 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo