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

I am getting an H5P error when inserting a HP5 file.


Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Binoit Xavier.  

Thanks Ken. This is a local instance of Ubuntu I am running a Virtual Machine (VM Workstation) The production is Moodle 4.1 (Build: 20221128) not clear as to how to proceed...

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Howard Miller.  

Ubuntu 24.04, by default, provides PHP 8.3. Moodle 4.1, however, does not support PHP 8.3. So you have a problem straight away.

It's possible to install older versions of PHP but you need to add a suitable repository. The usual is https://launchpad.net/~ondrej/+archive/ubuntu/php. There are plenty of examples of how to use it if you Google.

Alternatively, install the latest version of Moodle (4.4) that *does* support PHP 8.3.

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Ken Task.  

Looks like you've also changed your login name!!!!

First ... What Howard said! smile

So you have Moodle 4.1 (Build: 20221128) on production server running Ubuntu.

You should install same version on this test system.

Referring to:

http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

The row for 4.1, php highest 8.1, MySQL I'd advise 8.0 miniumum.

So we now know that versions we are going after in order to run a 4.1.highest.

That should help you adjust your install commands for PHP and all the extensions required + php-cli.

As I already mentioned, providers ... the good ones ... have docs of their own for AMP stack.   Is your production moodle hosted with DigitalOcean (DO)?

If so, here's DO's:

https://www.digitalocean.com/community/tutorials/how-to-install-php-8-1-and-set-up-a-local-development-environment-on-ubuntu-22-04

You would skip the composer part.

The moodle piece:

https://docs.moodle.org/404/en/Installing_Moodle

I suggest using Git versioning install.

https://docs.moodle.org/404/en/Installation_quick_guide

Does your system have a panel?   If not, suggest also installing Webmin - you've done that before I think.

'SoS', Ken

Re: Can not executing this prevent the CRON job from running

$
0
0
by Binoit Xavier.  

Thanks! Ken. I do have test Moodle instance but it's running AlmaLinux. I will to have setup a Ubuntu one...

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Howard Miller.  

This is the fun and games with LTS versions of Linux. You may be happy to have the advantage of not rebuilding your server but it's unlikely that the versions of some server software it came with will "survive" the lifetime of the basic LTS build. PHP 8.3 may be the latest *now* but won't be in 5 years time (although Ubuntu 24.04 will still be supporting it).

This is just one thing to consider. What can you leave to LTS and what might change and can better be provided through a PPA, a container or whatever?

I've said it before and will say it again - you can get a well-paid job as a Linux sysadmin smile

Re: MFA plugin and upgrade to 4.3

$
0
0
by Zoran Jančić.  

We had only few users with MFA enabled so we uninstalled MFA plugin, upgraded Moodle and enabled new MFA feature. Users set up their MFA factors again but it was no big deal because there were only few of them at the time. 

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Binoit Xavier.  

Thanks Ken for the detailed explanation. This is a local instance and not with a hosting provider.

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Binoit Xavier.  

This is scary! People coming with the mindset of potential cost savings are in for a great surprise...

Odp: Re: Odp: Re: Odp: Re: Odp: Re: get_striptags() error during initial setup (Moodle 4.04

$
0
0
by Marcin Łukasik.  

Afrter changing line 390 of lib/classes/formatting.php to:

      return $CFG->formatstringstriptags ?? 1;

I get:

Debug info:
Error code: codingerror

Stack trace:
line 924 of /lib/classes/user.php: coding_exception thrown
line 301 of /user/editlib.php: call to core_user::get_property_default()
line 153 of /user/editadvanced_form.php: call to useredit_shared_definition()
line 217 of /lib/formslib.php: call to user_editadvanced_form->definition()
line 155 of /user/editadvanced.php: call to moodleform->__construct()

Output buffer: Warning: Undefined property: stdClass::$navcourselimit in /home/eimspl/public_html/wizualnie/moodle/lib/navigationlib.php on line 3230 Warning: Undefined property: stdClass::$maxbytes in /home/eimspl/public_html/wizualnie/moodle/user/editadvanced.php on line 126 Warning: Undefined property: stdClass::$maxbytes in /home/eimspl/public_html/wizualnie/moodle/user/editadvanced.php on line 148 Warning: Undefined property: stdClass::$defaultcity in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 691 Warning: Undefined property: stdClass::$country in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 692 Warning: Undefined property: stdClass::$calendartype in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 697 Warning: Undefined property: stdClass::$defaultpreference_mailformat in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 713 Warning: Undefined property: stdClass::$defaultpreference_maildigest in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 715 Warning: Undefined property: stdClass::$defaultpreference_maildisplay in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 717 Warning: Undefined property: stdClass::$defaultpreference_autosubscribe in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 719 Warning: Undefined property: stdClass::$defaultpreference_trackforums in /home/eimspl/public_html/wizualnie/moodle/lib/classes/user.php on line 721 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 430 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 443 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 467 Warning: Undefined property: stdClass::$fullnamedisplay in /home/eimspl/public_html/wizualnie/moodle/user/editlib.php on line 473

Heh... It's looks terrible smile

I won't give up easily! smile

I will be grateful for your tips.

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Ken Task.  

So you could install Webmin 'crutch' to help with setup of cron jobs! smile

'SoS', Ken

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Ken Task.  

Here we go again .. moodle is an iceburg ... you have been involved in what is above the water line (ie, the app itself - moodle) but are now (installing a fresh sandbox moodle) working at just below the water line ... PHP + PHP extensions + DB server.

While one could do all that via command line only, it's nice to have a 'crutch' ... like Webmin/Cockpit ... to help with things like cron's.

It is what it is ... FREE app and FREE Linux distro has never equated to 0 cost ... but normally, it's the time of just one person - YOU - the admin of both the distro and the moodle.

Those that pay the bills, really don't consider the number of hours you put into such a project - you get paid an hourly wage.   The sooner you can ramp up how efficiently you can work which results in fewer hours spent, the better for you ... and your entity.

There is an un-intended consequence that bosses and those that pay the bills don't see nor consider ... you gain experience and expertise ... should you seek another position with another entity, you can include your experience/expertise with Linux server setups and apps like Moodle - that's a BIG plus ... they might be willing to pay you more than your current employer.

My 2 cents!

'SoS', Ken

Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: get_striptags() error during initial setup (Moodle 4.04

$
0
0
by Leon Stringer.  

It looks like the install didn't complete successfully. During installation tables are created and should get populated with values but that error suggests these are missing. You can check this with the SQL query:

SELECT name, value FROM mdl_config WHERE name LIKE 'defaultpreference_%';
+-----------------------------------------------+-------+
| name                                          | value |
+-----------------------------------------------+-------+
| defaultpreference_autosubscribe               | 1     |
| defaultpreference_core_contentbank_visibility | 1     |
| defaultpreference_maildigest                  | 0     |
| defaultpreference_maildisplay                 | 2     |
| defaultpreference_mailformat                  | 1     |
| defaultpreference_trackforums                 | 0     |
+-----------------------------------------------+-------+

I've shown the output from my test site.

This problem is often caused by some timeout preventing the install script from completing, typically a web server timeout or PHP's max_execution_time being exceeded.

To resolve this:

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Visvanath Ratnaweera.  

> moodle is an iceburg ... you have been involved in what is above the water line (ie, the app itself - moodle) but are now (installing a fresh sandbox moodle) working at just below the water line ...

Under water is dark - and scary!
big grin

Re: Getting error - Installation of new Moodle instance following the official document

$
0
0
by Binoit Xavier.  

Thanks Ken. Now my Ubuntu SSH access is not working (No matter whatever I try). I am going to reinstall the whole Ubuntu thing.

Re: Getting these messages from Moodle site to site admin

$
0
0
by Binoit Xavier.  

Hi Mary,

When mention 'Support availability' what are you referring to? Could you clarify?

Regards

Re: Cron job setup not working

$
0
0
by Binoit Xavier.  

Hi Ken,

In the doc that was shared with me by our previous team who setup this whole thing, where the CRON job is working successfully. The have mentioned the following "Cron jobs for the Moodle instances are run under the www-data user (crontab -u www-data -e)" How do you understand this, does this mean they have executed this sudo chown -R www-data:www-data /var/www/mywebsite/public/admin/cli/cron.php?

Regards

Re: Getting these messages from Moodle site to site admin

Re: Odp: Re: Odp: Re: Odp: Re: Odp: Re: get_striptags() error during initial setup (Moodle 4.04

$
0
0
by Leon Stringer.  

Also, I've reported the error in the error handling (that needed the change in lib/classes/formatting.php to see the real error) as MDL-82323.

Re: Getting these messages from Moodle site to site admin

$
0
0
by Binoit Xavier.  

Thanks Mary. Yes, I checked it is a different email.
Viewing all 47445 articles
Browse latest View live


Latest Images

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