Report any technical problems you discover and discuss solutions.

Uploading sub-template not working

Plus d'informations
il y a 6 ans 5 mois #6321 par tsalyers
Uploading sub-template not working a été créé par tsalyers
We're trying out the sub-template upload function on our test server before we upgrade to the most recent version on our live server, and we can't seem to get the upload to actually work.

I can select a file and fill out the text fields, but clicking the "Upload" button doesn't work. Looking in the network tab of Firefox's developer tools, I can see that the form submit works and does a POST to website_code/php/management/upload.php, but the HTTP status code coming back from that is 500 Internal Server Error. instead of 200 OK.

I'm not sure why it's failing at that point...does anyone have any ideas/tips/pointers for this?

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

Plus d'informations
il y a 6 ans 5 mois #6322 par ronm
Réponse de ronm sur le sujet Uploading sub-template not working
Hi
Just a guess but the following might be the issue. This is a bit of a departure from original set up guidance where only USER-FILES and import need to be writable because in this case the sub-template files need to be moved to the modules folder. So assuming you're on linux is the modules folder writable by the web server user e.g. Apache?

Try that and let us know?
HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

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

Plus d'informations
il y a 6 ans 5 mois #6327 par tsalyers
Réponse de tsalyers sur le sujet Uploading sub-template not working
Hi, Ron.

I tried changing the permissions on the modules directory, but still no luck. Is there a subdirectory it's trying to write to under modules?

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

Plus d'informations
il y a 6 ans 5 mois #6329 par ronm
Réponse de ronm sur le sujet Uploading sub-template not working
Hi Tom
did you try changing the permissions on modules and all of it's sub-directories?
At the moment if you really want to limit what you make write-able then I think specifically it's \modules\xerte\templates\ that probably needs to be written to by the web server user account.
HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

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

Plus d'informations
il y a 6 ans 5 mois #6334 par tsalyers
Réponse de tsalyers sur le sujet Uploading sub-template not working
No luck--I've made the entire modules directory and all of its children writeable just as an experiment, and I'm still getting the 500 error.

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

Plus d'informations
il y a 6 ans 5 mois #6335 par tom
Réponse de tom sur le sujet Uploading sub-template not working
Error 500 indicates a serverside error. Can you check the webserver error logs, for any php error, that would help us identify the issue?

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

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