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

Cannot Export LO 2 years 3 months ago #3502

  • Greg Marsh
  • Greg Marsh's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
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
The administrator has disabled public write access.

Cannot Export LO 2 years 3 months ago #3507

  • Tom Reijnders
  • Tom Reijnders's Avatar
  • Offline
  • Administrator
  • Posts: 756
  • Thank you received: 139
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
The administrator has disabled public write access.

Cannot Export LO 2 years 3 months ago #3508

  • John Smith
  • John Smith's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 360
  • Thank you received: 55
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 https://github.com/thexerteproject/xerteonlinetoolkits/tree/develop/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
Last Edit: 2 years 3 months ago by John Smith.
The administrator has disabled public write access.

Cannot Export LO 2 years 3 months ago #3510

  • Greg Marsh
  • Greg Marsh's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
Thanks Tom.
PHP version is 5.4.45
The administrator has disabled public write access.

Cannot Export LO 2 years 3 months ago #3511

  • Tom Reijnders
  • Tom Reijnders's Avatar
  • Offline
  • Administrator
  • Posts: 756
  • Thank you received: 139
Please see John's answer as well.

Do you have 3 files in library/Xerte/Zip:
Factory.php, Interface.php and Native.php?
The administrator has disabled public write access.

Cannot Export LO 2 years 3 months ago #3512

  • Greg Marsh
  • Greg Marsh's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 9
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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.274 seconds
Powered by Kunena Forum

Donate

Sponsor us

The Xerte Community is a volunteer-based organization. Please help us to continue that!