Problem with dropdown menus

Problem with dropdown menus

by Alberto PM -
Number of replies: 11

Hello.

I just made several moodle updates, from version 2.2.4 to 3.6.2+. Now I'm working with Boost theme.
The Moodle is in a Windows (IIS) server.
I'm having several problems that I think are related to each other.

First, entering into admin I get this in www.mysite.com/moodle/admin (image1) There's a loop in .../admin/upgradesettings.php

Second, I've got 3 language packages installed (english, spanish, galician) but the dropdown menu to choice languages is no longer available (is not been showed) and all information is displayed in english even if I choice as my preferred language another one (image2)

Third, the user dropdown menu doesn't work (image3). If I click in the user name (or chevron) a slash (#) is added to URL

or an slash followed by a string (for example: .../admin/search.php#linkappearance (image3)

Could anybody point me in the right direction to solve those issues?


Thanks in advance.

Attachment image1.png
Attachment image2.png
Average of ratings: -
In reply to Alberto PM

Re: Problem with dropdown menus

by Alberto PM -

The third image

Attachment image3.png
In reply to Alberto PM

Re: Problem with dropdown menus

by Alberto PM -

Hello

In order to complete information, I've noticed that menus like Courses doesn't expand but collapse. Also, as it been said, if I'am in a course (so the courses menu is expanded), the menu expands and collapse fine.


Hope anybody can help me.

Thanks in advance

In reply to Alberto PM

Re: Problem with dropdown menus

by Ken Task -
Picture of Particularly helpful Moodlers

Don't use Windows myself, but ... so 2.2.4 one should have 'marched' to get to 3.6.x+.

You didn't do any hyperjump did ya?

Unless you were doing upgrades through versions via git, the additional language packs need to be reinstalled?   Still have the old 2.2.4 code directory? Look in moodlecode/lang/ for your language packs ... copy the ones missing into /lang/ of new code.

On the new settings screen, just click save settings for now ... looks like you'll have to revisit that later.

Did you have any additional plugins in the 2.2.4 related to LTI?  If I re-call correctly, that version of Moodle did have an addon to be able to 'publish' LTI.   Look in moodlecode/local/. If you find the old mod to publish LTI still in new code ... remove the folder for the old mod in local.

Manually remove the contents of moodledata/cache and moodledata/muc and moodledata/localcache

Contained in more than one of the above is a cache for the theme ... boost didn't exist with 2.4 so you might have some cached stuff from old themes that's causing you issues.

Safe to do as Moodle will re-populate as one clicks around.

Would also work on getting server setup with a valid CA cert and run the moodle as https.

Best guesses ...

'spirit of sharing', Ken


In reply to Ken Task

Re: Problem with dropdown menus

by Alberto PM -

Hello Ken.
Thank you very much for replying so soon.
I have installed versions 2.7.20, 3.0.10, 3.1 and finally 3.6.2+.

Yes, I still have the files in the old version 2.2.4 but there is only the English language in moodle-2.2.4/lang. I can see the other languages in the folder moodledata/lang Don't they have to be there?
What I had done is reinstall the language packs, but I still have only the folder /en in moodle/lang

I don't know if I understood you correctly, but there's nothing in the local moodle folder (.../moodle/local) except the .txt file that I attach.
There's a lti folder in moodle/mod, should I remove it?

I've just removed the files in moodledata/cache, moodledata/muc and moodledata/localcache

Yes, you are right with getting a server setup with a valid CA cert and run the moodle as https.

Thanks so much!

In reply to Alberto PM

Re: Problem with dropdown menus

by Ken Task -
Picture of Particularly helpful Moodlers

In a '3.5.4 (Build: 20190114), default lang is en and found in moodlecode/lang/

The other language packs are found in moodledata/lang/ - that's moodledata/lang/

A site that offers courses Eng., Spanish, and in Chinese has en_local es es_mx zh_cn directories there.

Back in version 2.4.x there was an addon - not part of core - for LTI Provider ... thought that might have been the issue with LTI you are having.   No ... leave the lti directory in mod.   That belongs there ... it's part of core.

Work on cert ... after you get the cert installed and once you get the server responding port 443 you will have 2 things to do to Moodle:

1. change config.php file.

2. do https search and replace on DB.  URL: yourserver/admin/tool/httpsreplace/

Advise backing up the DB before using the search and replace tool.

'spirit of sharing', Ken





In reply to Ken Task

Re: Problem with dropdown menus

by Alberto PM -

Hi Ken

Thanks a lot for your appreciated help.

SSL cert is just installed and working.

I still don't know what's going on with languages. I hope this new information will be useful. Please take a look at the attached image. I can't expand Courses neither user navigation.


Any help will be appreciated


Cheers

Attachment courses.png
In reply to Alberto PM

Re: Problem with dropdown menus

by Ken Task -
Picture of Particularly helpful Moodlers

After getting the cert installed and server responding to port 443, did you change the config.php file and run /admin/tool/httpsreplace/ ?

If you ran the httpsreplace that converted a bunch of internal URL's ... which might explain both issues.

Do a dump of your database and using text editor search the .sql file for the site name ... www.x.... to see if https:// is in front of the URL.

Check server logs for the 'course' link thingy ... use FireFoxes console and hit the site to see what's up with that. ?????

Strange because on can navigate to course via browser URL line.

'spirit of sharing', Ken


In reply to Ken Task

Re: Problem with dropdown menus

by Alberto PM -

Hi Ken

How can I check if server is responding to port 443?
I'll run /admin/tool/httpsreplace but I've found several tables in db with http instead of https.
I'm going to change all of those.

Strange thing happens with Course link... It stays without expand if I'm in dashboard (for example), but it works like a charm if I'm in a course!
What could be the reason?


Thanks a lot!


In reply to Alberto PM

Re: Problem with dropdown menus

by Ken Task -
Picture of Particularly helpful Moodlers

Check 443 with browser by adding the port ... https//serverFQDN:443

Or, if you had curl on a system local terminal/command line one could use a curl command to check things ... curl -I https://serverFQDN:443./

For Moodle curl -I https://serverFQDN/moodle/

"found several tables in db with http instead of https. I'm going to change all of those." ... careful there ... the ones you want to change are the internal URL's ... http://yourserver/ to https://yourserver/ ... you might want to change all URL's as those could be links to content in courses.

If I could only do 'Vulcan Mind Melds' I might be able to tell you why/give you reasons remotely site un-seen and no access to everything on your server ... but like I told ya, don't do Windows.   Besides this is 'free advice' ... and ... everyone gets to choose their own 'poison' for server platform. smile

'spirit of sharing', Ken


In reply to Alberto PM

Re: Problem with dropdown menus

by Luis de Vasconcelos -

You're using IIS so:

  1. Open the IIS Manager.
  2. Expand Connections to your site, if you haven't changed the IIS defaults it will probably be Default Web Site.
  3. In the Actions pane on the right of the IIS Manager click Bindings.
  4. You'll immediately see whether your site is bound to port 80 or 443. If it's port 80 then IIS hasn't been setup for HTTPS. You need to install a certificate and add the 443 binding.
  5. If there is a binding for port 443 click in it then click Edit. Check that port 443 is bound to a valid SSL certificate and that a valid host name is specified.
  6. Exit IIS manager and restart the IIS services.
  7. Reload your Moodle site. What happens?
In reply to Luis de Vasconcelos

Re: Problem with dropdown menus

by Alberto PM -

Hi Luis.
Thank you very much for your interest!
I was talking with the server support and they told me everything is ok about por 443 and SSL certificate.
What must I check for?