General developer forum

Pop-ups undefined and web services error

 
Picture of Tom Palaz
Pop-ups undefined and web services error
 
We're running moodle 3.2 on php 5.6 and when we recently setup our load balancer to redirect our site to https. We set our web root to https and enabled ssl proxy in config.php. Now we're getting "undefined" popups when browsing any page in moodle.



When I inspect the page, the Network tab is showing 404 errors when trying to access the service.php page:
https://moodle.conncoll.edu/moodle1718/lib/ajax/service.php?sesskey=XmELkqlGV5

Web services and mobile are enabled under Site Administration. I tried enabling Access-Control-Allow-Origin "*" in apache and still get a popup but with the error message "Web service is not available (it doesn't exist or might be disabled)" From looking in the console, it looks to be trying to access core_message_get_unread_conversations_count.

Does something else need to be done so that these web services work when using https?





 
Average of ratings: -
Picture of Tom Palaz
Re: Pop-ups undefined and web services error
 

I ended up disabling both web services and the messaging system under System Administration - Advanced Features, as we are not using them, and the undefined pop-ups disappeared. It's a band-aid to the CORS issue but works for us since we're not using those two items and gets rid of the annoying pop-ups.

 
Average of ratings: -