Hi I on Moodle 4.1.2+ (Build: 20230318) when inserting a HP5 file in a Question getting the following error. Appreciate any leads in fixing this error.
I am getting an H5P error when inserting a HP5 file.
Re: Getting error - Installation of new Moodle instance following the official document
Re: Getting error - Installation of new Moodle instance following the official document
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
Looks like you've also changed your login name!!!!
First ... What Howard said!
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:
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
Re: Getting error - Installation of new Moodle instance following the official document
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
Re: MFA plugin and upgrade to 4.3
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
Re: Getting error - Installation of new Moodle instance following the official document
Odp: Re: Odp: Re: Odp: Re: Odp: Re: get_striptags() error during initial setup (Moodle 4.04
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
I won't give up easily!
I will be grateful for your tips.
Re: Getting error - Installation of new Moodle instance following the official document
So you could install Webmin 'crutch' to help with setup of cron jobs!
'SoS', Ken
Re: Getting error - Installation of new Moodle instance following the official document
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
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:
- Delete and recreate the Moodle database (take a backup first as a precaution).
- Ensure the timeouts for your web server and PHP are long enough to allow the Moodle install to complete, or
- Perform the Moodle install using the command line as this isn't affected by timeouts.
Re: Getting error - Installation of new Moodle instance following the official document
Under water is dark - and scary!
Re: Getting error - Installation of new Moodle instance following the official document
Re: Getting these messages from Moodle site to site admin
When mention 'Support availability' what are you referring to? Could you clarify?
Regards
Re: Cron job setup not working
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
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.