Report any technical problems you discover and discuss solutions.

Error when importing .mp4 files

  • p.a.xavier@swansea.ac.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #4655 by p.a.xavier@swansea.ac.uk
Error when importing .mp4 files was created by p.a.xavier@swansea.ac.uk
I've tried importing an .mp4 file (5Mb) for use in the video page. When I select it to import it I get a message saying
error (Array = 1)

I have a similar problem with a larger file (10Mb), that time the error was:
Invalid backend response, Data is not JSON.

I'm running on a local XAMPP server, any ideas what I could try to get this to work? I have no problem with audio files or other file types.

Thanks

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

More
8 years 11 months ago - 8 years 11 months ago #4659 by tom
Replied by tom on topic Error when importing .mp4 files
Did you change the default upload limits of XAMPP?

You can change the upload limits (which are determined by php server settings, not Xerte) in the php.ini file.

in XAMPP you can fins this file in the php folder of your xampp installation.

The values you want to change are:
Code:
post_max_size = 8M upload_max_filesize = 2M

Change the number to the largest file you want to be able to upload.
Last edit: 8 years 11 months ago by tom.
The following user(s) said Thank You: p.a.xavier@swansea.ac.uk

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

  • p.a.xavier@swansea.ac.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #4664 by p.a.xavier@swansea.ac.uk
Replied by p.a.xavier@swansea.ac.uk on topic Error when importing .mp4 files
I've changed it to:
post_max_size = 10M
upload_max_filesize = 10M

There were two php.ini files that were similar or the same so I made the change in both.

I'm still getting the error, anything else I can try? I did try uploading a smaller .mp4 of 1.5 Mb and that worked fine so it does look like a filesize issue.

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

More
8 years 10 months ago - 8 years 10 months ago #4665 by tom
Replied by tom on topic Error when importing .mp4 files
Did you restart the apache webserver after the changes?

You can check the values that are used by opening
Code:
http(s)://<xerte url>/setup/phpinfo.php

in a browser.
Last edit: 8 years 10 months ago by tom.

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

Moderators: ronmjultenJohnSmith
Time to create page: 0.134 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo