Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Export properties not working 7 months 2 weeks ago #8976

  • jhealy
  • jhealy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hello,

I have a 3.11 (git v.3.11.19) install running in a linux container as microsoft azure web app. php version 8.1.

In project prperties, the export functions are not working (offline zip, archive zip, deployment zip). When the buttons are clicked nothing happens.

However, bootstrap templates can be exported (both deployment and archive zips).

I have looked through the forum and made sure of the following -

php zip extension module is enabled
ini settings are -
upload_max_filesize="50M"
post_max_size="52M"

upload_tmp_dir is set to /home/site/wwwroot/tmp

I have also updated the export.php file as suggested here - www.xerte.org.uk/index.php/en/forum/bugs...-zip-stopped-working


running in development mode produces the following in debug.php when clicking 'get offline zip' -

2024-04-08 10:59:47 /home/site/wwwroot/modules/xerte/export.php130Temporary zip file is : /tmp/xerteExportVdypjK
2024-04-08 10:59:47 /home/site/wwwroot/library/Xerte/Zip/Native.php42Welcome
2024-04-08 10:59:47 /home/site/wwwroot/website_code/php/xmlInspector.php261Trying to simplexml_load_file : /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham/template.xml
2024-04-08 10:59:47 /home/site/wwwroot/modules/xerte/export.php156Deployment archive
2024-04-08 10:59:47 /home/site/wwwroot/modules/xerte/export.php172 use html5
2024-04-08 11:00:11 /home/site/wwwroot/library/Xerte/Zip/Native.php67Adding index.htm (from: /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham//index.htm) to zip
2024-04-08 11:00:11 /home/site/wwwroot/website_code/php/scorm/scorm_library.php499Zipping up:
2024-04-08 11:00:11 /home/site/wwwroot/library/Xerte/Zip/Native.php67Adding xttracking_scorm2004.3rd.js (from: /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham//xttracking_scorm2004.3rd.js) to zip
2024-04-08 11:00:11 /home/site/wwwroot/library/Xerte/Zip/Native.php67Adding xttracking_scorm1.2.js (from: /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham//xttracking_scorm1.2.js) to zip
....... (many more zipped files) .......
2024-04-08 11:00:16 /home/site/wwwroot/library/Xerte/Zip/Native.php67Adding apiwrapper_2004.3rd.js (from: /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham//apiwrapper_2004.3rd.js) to zip
2024-04-08 11:00:16 /home/site/wwwroot/library/Xerte/Zip/Native.php67Adding apiwrapper_1.2.js (from: /home/site/wwwroot/USER-FILES/2003-sqkw68-Nottingham//apiwrapper_1.2.js) to zip

then nothing, back to -
2024-04-08 11:00:18 /home/site/wwwroot/website_code/php/database_library.php177Running : SELECT * FROM sitedetails

So i am a little stumped, any help would be greatly appreciated. Very happy to provide any additional info required. Thank you for Xerte and all that you do to support the community.

Please Inloggen or Create an account to join the conversation.

Export properties not working 7 months 2 weeks ago #8977

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Can you check whether the php-zip extension is enabled?
The following user(s) said Thank You: jhealy

Please Inloggen or Create an account to join the conversation.

Export properties not working 7 months 2 weeks ago #8978

  • jhealy
  • jhealy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi Tom, thanks for your reply.

yes zip is enabled. It is listed in php modules when running php -m command in the terminal shell and also I get an 'ok' when checking in app using -

echo "zip: ", extension_loaded('zip') ? 'OK' : 'MISSING', '<br>';

Please Inloggen or Create an account to join the conversation.

Export properties not working 7 months 2 weeks ago #8979

  • jhealy
  • jhealy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
a quick update, 'get deployment zip.' is now working.

'get archive zip.' and 'get offline zip.' are still not working with the same debug.php output as mentioned in my first post.

Please Inloggen or Create an account to join the conversation.

Export properties not working 7 months 2 weeks ago #8980

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
That is really weird. The limits in php.ini you mention are limits for uploading resources. So that should not influence download/export at all.

Could you please make sure $development is set to true in config.php (around line 43). I think you already did this, because of the logging to error_logs/debig.log.

But, after veryfying that the $develpment flag is set, could you check the Apache/PHP error log (/var/log/apache2/error.log by default on Ubuntu) for any errors?

Please Inloggen or Create an account to join the conversation.

Export properties not working 7 months 2 weeks ago #8981

  • jhealy
  • jhealy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Thanks Tom, apache logs when trying to export offline zip produces the following:

2024-04-08T14:57:39.860278575Z 127.0.0.1 - 08/Apr/2024:14:57:36 +0000 "POST /website_code/php/templates/get_template_info.php" 200
2024-04-08T14:57:42.615799407Z 127.0.0.1 - 08/Apr/2024:14:57:39 +0000 "POST /website_code/php/templates/get_template_info.php" 200
2024-04-08T14:57:42.826984308Z 127.0.0.1 - 08/Apr/2024:14:57:41 +0000 "GET /properties.php" 200
2024-04-08T14:57:43.969955312Z 127.0.0.1 - 08/Apr/2024:14:57:43 +0000 "POST /website_code/php/properties/properties_template.php" 200
2024-04-08T14:57:45.930719239Z 127.0.0.1 - 08/Apr/2024:14:57:45 +0000 "POST /website_code/php/properties/export_template.php" 200

2024-04-08T14:58:02.574337889Z NOTICE: PHP message: PHP Warning: file_get_contents(themes/Nottingham/default/default.info): Failed to open stream: No such file or directory in /home/site/wwwroot/modules/xerte/export.php on line 48

2024-04-08T14:18:37.219695236Z cp: target '/etc/pki/ca-trust/source/anchors' is not a directory
2024-04-08T14:18:37.905910300Z Updated CA certificates
2024-04-08T14:18:38.857305008Z {"EventId":0,"LogLevel":"Information","Category":"Program","Message":"Entering app startup."}
2024-04-08T14:18:39.867202784Z Hosting environment: Production

Please Inloggen or Create an account to join the conversation.

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

Search