Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.
  • Page:
  • 1
  • 2

TOPIC:

Cannot Export LO 8 years 2 months ago #3502

  • g-marsh
  • g-marsh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Cannot Export LO 8 years 2 months ago #3507

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1290
  • Thank you received: 308
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

Please Log in or Create an account to join the conversation.

Cannot Export LO 8 years 2 months ago #3508

  • JohnSmith
  • JohnSmith's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 397
  • Thank you received: 71
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

Please Log in or Create an account to join the conversation.

Last edit: by JohnSmith.

Cannot Export LO 8 years 2 months ago #3510

  • g-marsh
  • g-marsh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Thanks Tom.
PHP version is 5.4.45

Please Log in or Create an account to join the conversation.

Cannot Export LO 8 years 2 months ago #3511

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1290
  • Thank you received: 308
Please see John's answer as well.

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

Please Log in or Create an account to join the conversation.

Cannot Export LO 8 years 2 months ago #3512

  • g-marsh
  • g-marsh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.056 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search