Unable to edit quizzes after changing from http to https

Unable to edit quizzes after changing from http to https

Russell Thomson -
回帖数:3

Moodle 3.8.1+ (Build: 20200117)

I have converted all the URLs on my webpage to https:\\ but I am unable to edit the quizzes. Screenshot. Also, when I click on a link, the URL appears but quickly changes to the dashboad URL. Any ideas? No error messages appear. Thanks and regards

Editing embedded quizzes

回复Russell Thomson

Re: Unable to edit quizzes after changing from http to https

Ken Task -
Particularly helpful Moodlers的头像

I hope that what you've posted (http:\\) is NOT what was used in any of your multiple attempts to convert site from http:// to https://.    See the difference? http:\\ the slashes lean to left and are NOT valid protcols.  Valid protcol would be https:// - slashes lean to right.

For the change in protocol for your entire site, not only does the DB need multiple table changes, but the config.php file must also be changed.

So what does the following line in your config.php have for a setting?

$CFG->wwwroot   =

Also, login to your moodle following this path:

https://www.russell-english.com/e-learning/

Look at the lock in the URL line in front of https://

The lock there shows a valid set up for SSL/TLS ... LetsEncypt is cert.

Click the button you have for 'Moodle'.

What's happened to the URL line?  Note the lock has changed to an icon that indicates your Moodle isn't running https://

And the moodle code appears to reside in /english/e-learning/ of your site ... that's what I see in the URL line.

I don't have an account and can't see the course you are working in (not available to Guest).  Guest link is broken as it appears to be set to go to a /english/e-learning/user/policy.php php script.  Clicking Guest sends user to above url but that reports "Oops! That page can’t be found." but if one scrolls down to the bottom of the page one can find the moodle button for agreeing to button and one is finally in the moodle as guest.

** However ** in looking at the lock ... it shows insecure.

See attached screen shot.

Anyhoo, you login ... navigate your site:

Record to a text file the url you clicked *and* the condition of the lock in the URL line on each click you make to get to the quiz you are attempting to edit.

If the links/lock changes, your attempt to convert might have done some but not all internal links.

If editing begins ok, but can't show some boxes for editing it's an indication the internal link to pull up the editor which is called by URL can't.   Thus no box to edit ... or error.

The entire time I am in guest, the lock in the URL line doesn't change nor it's status ... site insecure lock icon.

Have you mixed code of Moodle with something else?

Reason asked ... when I visit the link to contact:

/2016/07/19/contact-details/

Those folders are not part of core code ... but maybe a customized page you made back in 2016?

Do you have a wordpress or pieces of a word press mixed in all of this?

I get a similar screen and a button to login to Moodle.

That button goes to: https://www.russell-english.com/english/e-learning/ ... the moodle code as guest after a brief stop at home page of the moodle which renders like a mis-matched config.php file would render, I can click coures ... but *NONE* of the courses I tried are open to Guest. :|

URL shows lock broken.

Bottom line ... doesn't look like your attempts to convert http:// to https:// were sucessfull.  config.php file might have the https:// protocol but links internal as still http://

Think you've reached critical mass with this and only an inspection of a DB dump ... an .sql file ... with a text editor that has search and replace will one be able to sort this out. 伤心 

'SoS', Ken

附件 Screen Shot 2020-02-04 at 11.38.12 AM.png
回复Ken Task

Re: Unable to edit quizzes after changing from http to https

Russell Thomson -
I realise that it's time I stood on my own two feet and greatly appreciate everything you have done for me; it's more than obvious that I couldn't have done it alone.

When you cut the strings, I totally understand that I will return to the forums for any further help that I need. However, I would greatly appreciate one personal get out of gaol free card.

I really couldn't have asked for a better tutor during this time. You have been patient and dogged in pursuit of the objective and an invaluable help.

Thanks very much Ken and best regards,
回复Russell Thomson

Re: Unable to edit quizzes after changing from http to https

Ken Task -
Particularly helpful Moodlers的头像

Welcome! And thanks for your kind words!

'SoS', Ken