Could not execute script : service.php

Could not execute script : service.php

by N W -
Number of replies: 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?

Average of ratings: -
In reply to N W

Re: Could not execute script : service.php

by Benjamin Ellis -
Picture of 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?
In reply to Benjamin Ellis

Re: Could not execute script : service.php

by 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!
In reply to N W

Re: Could not execute script : service.php

by Ken Task -
Picture of 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