Update to 3.10 and cannot access management site

Update to 3.10 and cannot access management site

by romano gino -
Number of replies: 11

Hello!!

Today I updated my Moodle site fromt 3.7 to 3.10 and everything went without problem, but when trying to access the administration menu of the site I can not, there is no navigation, only the first button of Administration is working, but all others: Users, Courses, Ratings, Extensions, Appearance, Server, Reports, Development, do not allow access. 

Any help you can give is appreciated.

I can access to these options trough search.

Best regards.

Imagen del problema, con acceso y sin acceso.

Average of ratings: -
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Ken Task -
Picture of Particularly helpful Moodlers

3 suggestions ...

1. purge all caches going directory to:

yoursite /admin/purgecaches.php

if not logged on, should force you to login and then forwards to that page.

2. if using another theme, set theme to either boost or classic set it via config.php file by adding a line:

$CFG->theme='boost'; (or classic)

3. Set debugging to developer level.... direct url:

yoursite /admin/settings.php?section=debugging

In addition ... any 3rd party plugins?

'SoS', Ken

In reply to Ken Task

Re: Update to 3.10 and cannot access management site

by romano gino -
Dear Ken

Thanks for your support. I have tried deleting cache, trying to change between classic and boost, and debugging as developer, but the problem is there. I believe it is something with the theme. I did not install any plugin after the update. In general, I do not have theme plugins, but tried to install one after this problem, but can not upload anything.

I installed Rebel theme 3.10, thinking that maybe this could solve the problem, but it is not working.

Best regards.
r.
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Ken Task -
Picture of Particularly helpful Moodlers

How did you upgrade?

Don't think installing a 3rd party theme will solve this.

And absolutely no debugging report by moodle!?!

Ok, how about web service logs ... error logs especially.

Got a WAF (web application firewall) installed like mod_security?  Check it's logs.

Got another admin level user?   Login with that user ... same?

How about running the environment check?

/admin/environment.php

'SoS', Ken

In reply to Ken Task

Re: Update to 3.10 and cannot access management site

by romano gino -
I have Cpanel, no linux nor php (except some basics).

I am going to uninstall every 3 part plugin, no other way. I have many themes from 2013.
Found this plugin with trouble when uninstalling (the only report):
[plugin] => theme_more
)
×Trazado de la pila (stack):
line 135 of /admin/plugins.php: moodle_exception thrown.

I will review the log carefully and will write when found the problem.

Thanks in advances.
r.
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Ken Task -
Picture of Particularly helpful Moodlers

The more theme is very old ... moodle 36 last version of Moodle to use it.

So remove that folder from code/theme/

In response to your other posting that shows logs ... yes, there are quite a few related to smtp server setup, but not the only ... last line shows an authentication - CAS.

But to get to SMTP server setup, go directly to:

/admin/settings.php?section=outgoingmailconfig

https://docs.moodle.org/310/en/Mail_configuration

/admin/testoutgoingmailconf.php

Did you do an environment check prior to attempt to upgrade?

Again ... how did you upgrade?

Did you follow these directions:

https://docs.moodle.org/310/en/Upgrading

or did your hosting provider have a 'one click wonder' button to upgrade? (Softaculous or something similar)

Again ... did you do an environment check before attempting upgrade?

/admin/environment.php

'SoS', Ken


In reply to Ken Task

Re: Update to 3.10 and cannot access management site

by romano gino -
I did Softaculous one click backup and update, but also full backup with Cpanel. Moodle was on Maintenance during this process.

I did not make the Standard procedure install package for Moodle. I installer new files over the old.

All my Environment is ok with green, except https. Other warning was utf8, but I changed it in SQL with no problem.

As the email seems to be the problem, I checked configuration and was ok, but when traying to send an auto-email to check operation, I had this message:

Información de depuración: COLLATION 'utf8mb4_bin' is not valid for CHARACTER SET 'utf8'
SELECT * FROM mdl_user WHERE LOWER(email) COLLATE utf8mb4_bin = LOWER(?) AND deleted <> 1 AND mnethostid = ? AND id IN (SELECT id FROM mdl_user WHERE email = ?)
[array (
0 => 'name@hotmail.com',
1 => '1',
2 => 'name@hotmail.com',
)]
Error code: dmlreadexception

Trazado de la pila (stack):
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1273 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1671 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1643 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 4979 of /lib/moodlelib.php: call to moodle_database->get_record_select()
line 387 of /login/lib.php: call to get_complete_user_data()
line 85 of /login/forgot_password_form.php: call to core_login_validate_forgot_password_data()
line 615 of /lib/formslib.php: call to login_forgot_password_form->validation()
line 551 of /lib/formslib.php: call to moodleform->validate_defined_fields()
line 661 of /lib/formslib.php: call to moodleform->is_validated()
line 47 of /login/lib.php: call to moodleform->get_data()
line 78 of /login/forgot_password.php: call to core_login_process_password_reset_request()

I chaged utf8 to utf8mb4_bin in SQL but seems that there are some problem in Moodle. I do not know how to change it in Moodle and did not found any explanation about.
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Ken Task -
Picture of Particularly helpful Moodlers

These forums support moodle only when users follow the recommendations made by moodle docs.

No Softac support here.  Softac is commercial.  No support for 'copying over files' as that is not the recommended method to upgrade - please re-read the official Moodle docs on upgrading ... link provided earlier.

As to DB character set and collation ... there are a couple command line script that will check all tables as well as provide fixes, but you must have terminal access to your files ... maybe via cPanel.

In code/admin/cli ...

mysql_collation.php        mysql_engine.php
mysql_compressed_rows.php

Suggest you re-read and follow the Moodle docs for upgrading.  If you continue to use or insist on Softac, then contact provider and get Softac to fix your site.  Don't think there is anyone in these forums that work for Softac - nor your provider.

Best of luck!

'SoS', Ken

In reply to Ken Task

Re: Update to 3.10 and cannot access management site

by romano gino -
Thank you for your time and advice. I will reinstall the backup and perform the installation as recommended by the Moodle website.
I learned a lot from this mistake.
Best regards.
r.
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

There are two database collation/character set combinations Moodle supports with MySQL (and MariaDB):

  1.  collation utf8mb4_unicode_ci with character set utf8mb4. This is the recommended setting supporting the full Unicode character set but some servers still don't support the index size this needs in which case they must use:
  2.  collation utf8_unicode_ci with character set utf8. This works but has some restrictions, notably that trying to use emojis will result in a database error.

So you probably need to change the 'dbcollation' in config.php to one of the above collations depending on the character set used by the Moodle database tables instead of 'utf8mb4_bin'.

If you need to migrate to the recommended utf8mb4 setting – the Environment report will contain a warning if this should be done – then you'll need to run the conversion scripts as Ken says.

Average of ratings: Useful (1)
In reply to Ken Task

Re: Update to 3.10 and cannot access management site

by romano gino -
Debug reports these:
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 28 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsmtphosts' or component 'message_email'. Perhaps you are missing $string['configsmtphosts'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 28 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'none' or component 'message_email'. Perhaps you are missing $string['none'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 29 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'smtpsecure' or component 'message_email'. Perhaps you are missing $string['smtpsecure'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 30 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsmtpsecure' or component 'message_email'. Perhaps you are missing $string['configsmtpsecure'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 30 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'smtpuser' or component 'message_email'. Perhaps you are missing $string['smtpuser'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 31 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsmtpuser' or component 'message_email'. Perhaps you are missing $string['configsmtpuser'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 31 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'smtppass' or component 'message_email'. Perhaps you are missing $string['smtppass'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 32 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsmtpuser' or component 'message_email'. Perhaps you are missing $string['configsmtpuser'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 32 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'smtpmaxbulk' or component 'message_email'. Perhaps you are missing $string['smtpmaxbulk'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 33 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsmtpmaxbulk' or component 'message_email'. Perhaps you are missing $string['configsmtpmaxbulk'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 33 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'noreplyaddress' or component 'message_email'. Perhaps you are missing $string['noreplyaddress'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 34 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'confignoreplyaddress' or component 'message_email'. Perhaps you are missing $string['confignoreplyaddress'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 34 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configemailonlyfromnoreplyaddress' or component 'message_email'. Perhaps you are missing $string['configemailonlyfromnoreplyaddress'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 37 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'sitemailcharset' or component 'message_email'. Perhaps you are missing $string['sitemailcharset'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 44 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configsitemailcharset' or component 'message_email'. Perhaps you are missing $string['configsitemailcharset'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 44 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'allowusermailcharset' or component 'message_email'. Perhaps you are missing $string['allowusermailcharset'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 45 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configallowusermailcharset' or component 'message_email'. Perhaps you are missing $string['configallowusermailcharset'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 45 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'allowattachments' or component 'message_email'. Perhaps you are missing $string['allowattachments'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 46 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configallowattachments' or component 'message_email'. Perhaps you are missing $string['configallowattachments'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 46 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'mailnewline' or component 'message_email'. Perhaps you are missing $string['mailnewline'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 48 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Invalid get_string() identifier: 'configmailnewline' or component 'message_email'. Perhaps you are missing $string['configmailnewline'] = ''; in /home/elgst/public_html/turismo/message/output/email/lang/en/message_email.php?
line 353 of /lib/classes/string_manager_standard.php: call to debugging()
line 7435 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
line 48 of /message/output/email/settings.php: call to get_string()
line 68 of /lib/classes/plugininfo/message.php: call to include()
line 76 of /admin/settings/messaging.php: call to core\plugininfo\message->load_settings()
line 8762 of /lib/adminlib.php: call to require()
line 26 of /admin/search.php: call to admin_get_root()
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; auth_plugin_radius has a deprecated constructor in /home/elgst/public_html/turismo/auth/radius/auth.php on line 36

All mistakes are around email server.
In reply to romano gino

Re: Update to 3.10 and cannot access management site

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The final line suggests the site has the RADIUS authentication plugin installed. This plugin was removed in Moodle 3.2 so the folder auth/radius certainly shouldn't be present. The other errors may be due to other files from older Moodle versions being present as Ken described.