Quantcast
Channel: Installing and upgrading help
Viewing all 46905 articles
Browse latest View live

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

by Matt T.  

sudo apt-get install python-software-properties


Then run those other commands

You'll also need to sudo a2dismod php && sudo a2enmod php56 afterwards


"Call to undefined function display_auth_lock_options()"

$
0
0

by Andreas Stassen.  

Hallo, 

at the beginning: my english is not so good ... sorry!

after an update I receive the error-message: "Call to undefined function display_auth_lock_options()" 

I can login as Admin 

I can see the Website-Admin-menu

I can open the tree of the menu

... I CAN NOT OPEN ANY LINK in the menu tree 

Re: "Call to undefined function display_auth_lock_options()"

$
0
0

by Howard Miller.  

You have an optional authentication plugin installed which you forgot to update.

Re: Invalid admin setting (auth_cas/field_map_profile_field_Parental Salutation)

$
0
0

by Trevor Fidler.  

Seems the cause was a custom user profile field added by a plugin, which had a space in the shortname. Removed the space and it all worked fine.

Re: Moodle on macOS Server (some infos & some issues...)

$
0
0

by Matt T.  

Bit of a stretch to call it spyware. Your privacy concerns re. Google may be valid, in which case Chromium is a better alternative.

I think firefox's devtools got better recently. Previously if you wanted something decent you had to use firebug extension. So it'll probably suffice.


Without a screenshot, I can't see what resources are causing mixed content issues. But almost certainly it's resources that are reliant on what is in $CFG->wwwroot. Without preceding wwwroot with https://, those resources will be loading insecurely and blocked by good browsers.

Also without wwwroot as https, you will be redirected back to http:// 


You need to change that setting first, and then look at solving the issue. Can you disable force HTTPS, then change the webroot to https, and tell us if you can browse the site with https? 

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

by Ken Kelchner.  

I ran sudo apt-get install python-software-properties and it looked like it ran through everything

I ran the other sudo command and got the following::

sudo a2dismod php  and  got php does not exist!

sudo a2enmod php56  and got php56 does not exist!

Moodle Template with Essentials theme

$
0
0

by Dan Bell.  

Currently we have an instance of Moodle 3.3.1 with Essentials theme (3.3.0.2 (Build: 2017040301)) installed and set up in a manner that has been approved by my organization. The current instance has plenty of courses, users and data. The goal is to be able to pick up this instance with essentials (and its current settings), and apply it to a fresh blank database (no courses, users or previous data with exception to essentials settings) on another server. This is to avoid building it completely from the ground up, again. I'm not sure what tables contain the essentials settings. 

Is there an easy solution? Or a complicated solution? Any advice?

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

$
0
0

by Makmesh iKiev.  

Thanks, that was really helpful


Re: site already registered after an upgrade

$
0
0

by Helen Foster.  

Hi Jerry,

As Deependra mentions please email support@moodle.org if you have any problem registering or updating your registration, then we can help you.

Use of undefined constant CONTEXT_CACHE_MAX_SIZE - assumed 'CONTEXT_CACHE_MAX_SIZE

$
0
0

by Paul L.  

Php error logs have countless entries of the following:

PHP Notice:  Use of undefined constant CONTEXT_CACHE_MAX_SIZE - assumed 'CONTEXT_CACHE_MAX_SIZE' in ....\lib\accesslib.php on line 5226

Referenced line of code from accesslib.php is:
....
    protected static function cache_add(context $context) {
        if (isset(self::$cache_contextsbyid[$context->id])) {
            // already cached, no need to do anything - this is relatively cheap, we do all this because count() is slow
            return;
        }

LINE 5226->        if (self::$cache_count >= CONTEXT_CACHE_MAX_SIZE) {
......
    }

Site seems fine but the error log is swamped, grows way to big with this messaged repeated so much. I would like to see this warning gone if there's no use for it?

There is one other message I receive, not sure if its related but it occurs often as well:
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.
 in Unknown on line 0
We do not use the profiler.

========================

Environment moodle 3.1.5+ on a windows 2008r2 web/dataserver uses mysql, php 5.6.24

Re: Use of undefined constant CONTEXT_CACHE_MAX_SIZE - assumed 'CONTEXT_CACHE_MAX_SIZE

$
0
0

by Howard Miller.  

I can't see why that wouldn't be defined. It's supposed to be at around line 185 of the same file. 

However, I only have the very latest version of 3.1 so, just in case, I would upgrade to the latest on the 3.1 branch (currently 3.1.7) just to be safe. That should be easy (i.e. risk free)

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

volgens Matt T.  

That's what happens when I try recall package names from memory

do again but with "php7" and "php5.6"

Re: Moodle Template with Essentials theme

$
0
0

volgens Matt T.  

I don't think there's an easy way to do this without bulk deleting users and courses on a cloned instance, which you could do a number of ways, for instance using moosh - https://moosh-online.com/commands/ - and a script.

Re: Moodle Template with Essentials theme

$
0
0

volgens Deependra Singh.  

Before you are going to do anything you make a backup of your current instances (Database, Moodledata, and code base). 

I think there is only manual way to get your theme settings on new system. But if you are not using different themes for different courses because it make complicated.

what i understand you need only theme settings with fresh database?

I think It is possible using manual way. you just go '

  • Site administration / ►
  • Appearance / ►
  • Themes / ►
  • Essential 

you just save the all settings in a Excel sheets. And set it into the new system. Its take so much time. Its good but time consuming .

But you also make sure in the Essential theme there is no culmination on code level.

I hope maybe someone give you better reply. 


Re: Moodle Template with Essentials theme

$
0
0

by Howard Miller.  

The only 'sane' way to do this is to migrate (see Moodle_migration) the entire site to a new instance. Do not think in terms of apply to an empty, clean site. It doesn't work that way. You are simply copying the data you have. 

Then delete all the users (using the bulk user functions). That's as close as you will get and is relatively safe. 


Moodle 3.1 to 3.3 Unoconv doesn't work anymore

$
0
0

by Urpo Karhula.  

Hello,

I'm having problems with Unoconv after upgrading Moodle 3.1 sites to Moodle 3.3. 


1. Test unoconv path -page says "The unoconv path appears to be properly configured." but when I press "Download the converted pdf test file." I get an error;

"Coding error detected. It must be fixed by a programmer. id is required to delete".

2. Also no PDF is generated for the student submissions in the grading window in assingment from any file (PDF, ODT, DOCX)

This happens in Moodles that have been updated from 3.1 to 3.3, they are all on the same server as are some other Moodle 3.1 installations and in these Unoconv works fine. So it seems 3.3 upgrade is the fault.

Do anyone else have similar problems? Please comment here;

https://tracker.moodle.org/browse/MDLSITE-4616


Using different Collation?

$
0
0

by Urpo Karhula.  

Hello,

It is ok to use different collation than the default utf8mb4_unicode_ci? I would like to use utf8_swedish_ci because of the german umlaut bug in Glossary;

https://tracker.moodle.org/browse/MDL-23277

Can changing it cause problems?

Re: Using different Collation?

$
0
0

by Howard Miller.  

Are you talking about a new site or an existing site. It's difficult to change the collation for an existing database as it has to be consistent throughout all the (text) fields in all the tables. 

I've not seen anywhere that says you *have* to use a particular collation. 

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

by Ken Kelchner.  

Matt - Thanks for the followup.  School is starting tomorrow so I will have to wait to run these commands.  Once I get PHP 5.6 insalled what is my next step?  Get the 2.7 stable version to install?  Thanks. - Ken

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

by Matt T.  

Check the site is working as expected on 2.6, then take a full backup and perform the 2.7 upgrade as outlined here.

You should refer to the documentation, but in summary, you take a full backup of your code directory + moodledata + take a database dump. Then you replace the code files with the new ones (2.7) and load the upgrade script through the browser.

Or, as is preferred by most here - you can run the upgrade script in shell, which prevents timeouts and is generally more reliable. On ubuntu, that would be, e.g.

sudo update-alternatives --set php /usr/bin/php5.6
sudo -u www-data php /var/www/admin/cli/upgrade.php


Once you're on 2.7 you can jump up to 3.3 by repeating the same process, and consider going back up to php7 for performance improvements. (reverse all commands, essentially)

Some here recommend doing such a jump in stages - perhaps to 3.1 first then to 3.3. You can also sit on 3.1 for a while as it's LTS and has security updates. But, provided you take backups and don't care about downtime during upgrade processes, you may as well try jump straight to 2.7 to 3.3 and extensively test the site. Up to you. 

Viewing all 46905 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>