Could not execute script : service.php

Could not execute script : service.php

por N W -
Número de respostas: 3

Hello

Moodle 3.9 2  internal server error:

Could not execute script "...public_html/lib/ajax/service.php",

How can I debug this error please?

Média das avaliações:  -
Em resposta à N W

Re: Could not execute script : service.php

por Benjamin Ellis -
Imagem de Particularly helpful Moodlers
Hi,

How are you calling the script? If you trying to access it in the browser, it will cause an error - though it would be a JSON error. Have you checked the permissions in the public_html directory?
Em resposta à Benjamin Ellis

Re: Could not execute script : service.php

por N W -
Hello Benjamin
Thank you for taking the time to respond.

I did get this Syntax error:
Unexpected token [ in JSON at position 1432

The error logs show
SoftException in Application.cpp:630: Could not execute script "/..../public_html/lib/ajax/service.php", referer: https://mysitesite/

Another experienced Moodler also suggested changing all files/folders group permissions to execute to none.
Which file(s) in the public html directory contain the permissions and what should they be changed to? I'm a teacher, not a programmer so I apologize if this is obvious.
Thanks!
Em resposta à N W

Re: Could not execute script : service.php

por Ken Task -
Imagem de Particularly helpful Moodlers
"...not a programmer..." ... so this question/discussion should not be in 'Developers Forum' but in 'General Help'.

And I'll repeat ... IF server running suPHP it's a permissions issue ... group cannot have execute attribute.

How you change that ... hmmmm - cPanel file browser (since you used Softac to upgrade).

'SoS', Ken