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

Content Bank

$
0
0
by rachit gupta.  

There's a new feature in 3.9where a user can upload or create h5p content. Does a user need to have an active h5p account all the time to use this feature without extra fees?


Re: Upgrading Moodle to 3.9 stable

$
0
0
by Ken Task.  

You have done an environment check to make sure you have what's needed for 3.9.x?  PHP version ... php extensions .. DB version ... DB character set collation ... site running https?

So the moodle in /var/www/html/ is active and wasn't installed via git.   The first action is to make a backup of what you have ... the moodle directory in /var/www/html/ ... a db dump ... and minimal moodledata/filedir/

Does the moodle in /var/www/html/ have addons already installed.  Does it have 3rd party theme (not core) installed?

Answer those please before proceeding ... and make a list ... a plugin that is no longer compatible would/could kill all this!

What you are essentially doing then is attempting to get a moodle under git.

So above is what is called a 'side load' (dunno if that is an official term but it does describe).

*Copy* the hidden .git directory and other hidden .git files at code root of /opt/moodle/ to /var/www/html/moodle/

in /opt/moodle/ these - first is a directory ... the others are files
.git
.gitattributes
.github
.gitignore

cp -rp .git* /var/www/html/moodle/

then cd /var/www/html/moodle/ and check git ...

git branch -a

You should see * MOODLE_39_STABLE at the top.

And to assure you are tracking the right branch ...

git branch --track MOODLE_39_STABLE origin/MOODLE_39_STABLE

git checkout MOODLE_39_STABLE

Either/both of those won't re-acquire 39 code and might show you an error that is good! smile

I do git reset --hard also.

At that point, ready to upgrade.

in /var/www/html/moodle/

php admin/cli/maintenance.php --enable

php admin/cli/upgrade.php

IF all goes well

php admin/cli/maintenance.php --disable

php admin/cli/purge_caches.php

Check ownerships/permissions.

Hit site with browser.

'SoS', Ken

Re: Can't turn on editing mode (topic course) after upgrading to moodle 3.9

$
0
0
by Martín Echegaray.  

Thanks João!
That solved our problem. Edit settings and button display change to that option enabled our "Turn editing on" button in grader report. Adaptable theme and Moodle 3.8 here.

Unoconv in 3.9

$
0
0
by Dennis Fulton.  

Has anyone been able to get unoconv document converter working in 3.9?  I have upgraded to CentOS 8 to get the PHP and MariaDB versions upgraded so I can install 3.9.  3.9 is running but I can't get unoconv working.  

Git branch not showing 3.9

$
0
0
by Yong Ra.  

Hi everyone,

When I run git branch -a command, MOODLE_39_STABLE branch is not showing. What can I do?


Thank you,

Re: Unoconv in 3.9

$
0
0
by Ken Task.  

To get that working ...

unoconv is a python script.   Version of unoconv?

Python version?

That calls libreoffice in a headless mode ... so libreoffice installed and version?

For it to work in headless mode, a listener has to be created ... have you created a listener?

Any and all above have means of testing ... each piece.  Have you done any testing?   Beginning with Unoconv through the listerner - following that path?

I take it you have read:

https://docs.moodle.org/39/en/Universal_Office_Converter_(unoconv)#CentOS_.2F_RedHat

Modifier here might be CentOS 8 itself ... which is fairly new.

Is seLinux still there and enforcing?

'SoS', Ken


Re: Unoconv in 3.9

$
0
0
by AL Rachels.  

I have unoconv 0.8.2 working just fine with Moodle 3.9, Centos 7, mysql 5.6.47, php 7.2.2, and SeLinux set to enforce, so it can be done.

Re: Git branch not showing 3.9

$
0
0
by Ken Task.  

What does, from moodle code directory, the following show?

fgrep '$release' version.php

One cannot 'hyperjump' a moodle if version is 'too old'. 

So do a site Environment check to make sure you have required versions of PHP and MySQL/MariaDB + php extensions + DB file system/character set collation for version 3.9.highest.

'SoS', Ken



Re: Git branch not showing 3.9

$
0
0
by Howard Miller.  

did you run...

git fetch --all

first?

Re: Unoconv in 3.9

$
0
0
by Dennis Fulton.  

Centos 8 with Python3, LibreOffice 6.4, PHP 7.4, unoconv 0.9
Was working on CentOS 7 and Moodle 3.8

Re: Unoconv in 3.9

$
0
0
by Ken Task.  

Ok, that covers versions and the fact it used to work with CentOS 7 and 3.8 ...  that was then ... this is now! smile

Focus  .... what have you done to test other than the 'test' link in Moodle code?

Listener set up?

Debug says what ... if anything?

Something outside of Moodle that might help:

https://sos.sosoftexas.org/scripts/uno_ghost/unoghosts.zip

Download zip to server in some test directory on the server.

Unzip ... read the 00-READMEFIRST.txt file.

Don't have CentOS 8 anywhere yet ... BTW, you did not have to use CentOS 8 to get higher versions of PHP nor MariaDB etc.  Reputable 3 part repos do supply what's needed ... epel, remi, webtatic, mysql's own repo, etc. 

https://www.cyberciti.biz/faq/how-to-enable-and-install-epel-repo-on-centos-8-x/

Not sayin' start over ... but will say that compared to many folks in these community forums (including myself) you are on 'leading edge' (at present 'bleeding edge' [a little] :\)

'SoS', Ken

Re: Unoconv in 3.9

$
0
0
by Dennis Fulton.  

Got going.  The issue was that the script was calling for /usr/bin/python which doesn't exist since I have python3.  So I added a symbolic link from python to python3.  It is now happy.

Thanks your for your help!!

Dennis

Re: Unoconv in 3.9

$
0
0
by Ken Task.  

Ok, CentOS 8 from a VB image from osboxes ... installed just today.

Moodle 3.9.x installed via git just today.

Unoconv successfully installed and converted docx -> PDF both scripts provided you for testing and via 3.9 after setting up.

Installed python3 ...  in unoconv had to change first line - the shebang! line
from
#!/usr/bin/env python
to
#!/usr/bin/env python3
because I had installed python3 - in CentOS 8 repos there are python2 and python3

LibreOffice I tried to install minimal ...
dnf install libreoffice-data.noarch \
libreoffice-core.x86_64 \
libreoffice-help-en.x86_64 \
libreoffice-draw.x86_64 \
libreoffice-pyuno.x86_64 \
libreoffice-calc.x86_64 \
libreoffice-pdfimport.x86_64 \
libreoffice-impress.x86_64 \
libreoffice-math.x86_64 \
libreoffice-writer.x86_64 \
libreoffice-graphicfilter.x86_64 \
libreoffice-ure.x86_64 \
libreoffice-ure-common.noarch \
libreoffice-filters.x86_64

601 Meg

but it also installed libraries ... bunch of space.

Acquired the uno_ghost test files from sos.sosoftexas.org.

Ran the bench scripts contained there in.

./uno-bench hp-unoconvtest.docx

What that outputs might help you trouble shoot.

Script did complete successfully - clip below ...
.....

Selected output format: Portable Document Format [.pdf]
Selected office filter: writer_pdf_Export
Used doctype: document
Output file: file:///var/www/html/uno_go_test/hp-unoconvtest.pdf
DEBUG: Terminating LibreOffice instance.
DEBUG: Waiting for LibreOffice instance to exit.
[root@osboxes uno_go_test]# ls -l hp-unoconvtest.pdf
-rw-r--r--. 1 root root 13070 Jun 19 20:10 hp-unoconvtest.pdf

Set up the listener as per docs:

https://docs.moodle.org/39/en/Universal_Office_Converter_(unoconv)#CentOS_.2F_RedHat

Stepped through Admin interface set up for document conversions

and the path to unoconv ... test path OK
And downloaded the converted.pdf test file.

So ... doable for sure.

'SoS', Ken


Re: Moodle Server on Android Tablet

$
0
0
by Visvanath Ratnaweera.  

Thanks for the feedback, especially testing the last week's release with Moodle 3.9.

Your question on packaging Moodle completely in a tablet computer, Marcus has answered the technical part. But there is also a fundamental question. The https://docs.moodle.org/en/Philosophy of Moodle is based on https://docs.moodle.org/en/Pedagogy#Social_Constructionism_as_a_Referent and as such peer interaction plays a major role. The original activities are based on that. Over the years more and more self-learning activities were added but still it is not Computer Based Training, nor it tries to be. My personal opinion, the Moodle world does not deny John Hatty. ;)

It would be interesting to know how you designed the teaching. Is the tablet a one time (knowledge) transfer like a book or is there some kind of guidance/control in the form of a teacher? Then how do they interact?

Re: Upgrading Moodle to 3.9 stable

$
0
0
by Govind Gaundalkar.  

Thanks..

You have given elaborate steps.Thanks for the pain that you have taken to explain the idea.

I have done everything as told by you and now I can see my site showing no updates needed.

Can you suggest any link where I can see how to do scaling of a moodle site .It should explain the steps and the idea behind it.

Regards

Govind



Integrating automatic users

$
0
0
by Carlos Cadabeira.  

Dear friends, I am looking at how to automatically integrate users to moodle users from an "external" website and also an automatic subscription to paid courses.

If you are so kind to instruct me a little, I will thank you. I am working with version 3.8 of moodle.

I suposed that use an api no???

Thank you

Re: Upgrading via Softaculous - remove install folder

$
0
0
by Barry Schoedel.  

I realize I am a late-comer to this discussion but I had the same question of the OP after a softaculous install. After reading the thread, despite the the many opinions and technical jargon offered by experts there is still an expectation that people who are installing Moodle have training using the command line, installing applications and managing folders on servers, using things like Git, etc.. And in Moodle's documentation there is the presumption that a person installing or upgrading Moodle already has this training. And, truthfully, this training is difficult to find on the Internet, in particular knowing which method it follow, what is best, etc.. So, moving from Softaculous to a manual or sftp method is a big leap for someone without this training. People like me - web designers who use markup language and a little JS, often don't have this experience working with servers, though we would like to have it. Typically the folks who work on the backend have more of this experience. If you all could point us in the direction of some good (free) training in this area, it would really help. Thanks. Barry

Re: Upgrading via Softaculous - remove install folder

$
0
0
by Ken Task.  

@moderator ... please move Barry's posting to a new thread so his question it's not buried/hidden in another thread.   It deserves a thread of it's own - IMHO.   (not advocacy).

@Barry ... Question ... where do you host?

Brief explanation as to why that question is significant ...

Hosting Providers: Site Ground is not Go Daddy is not Rackspace is not Digital Ocean is not OVH.

Panels provided by Providers: cPanel is not Plesk is not DirectAdmin is not Webmin

Accounts: share hosting (and any/all offered with that tag) isn't VPS (and any/all offered with that tag).

Where you host could have very good docs/tutorials, etc. ... but it would be specific to their hosting and maybe not specific to Moodle.  IF one finds a doc/tutorial, many times it was for a version 2.x ... we're not in Kansas any more!

'SoS', Ken


Re: Upgrading via Softaculous - remove install folder

$
0
0
by James Steerpike.  

If only there was some Learning Management Software that could be used to train people to install Moodle. wink.
Back the call to move to a new area. And seriously, is there a Moodle course to cover this?

Error DDL sql execution error (mod_h5pactivity)

$
0
0
by Benjamin Waller.  

Hello all,

I have run into an error when completing the final step when trying to upgrade the Moodle database.

I am upgrading from 3.7 to  Moodle 3.9 (Build: 20200615)

I first ran all the server checks good all green ticks.

Other checks found the: mysql_full_unicode_support - check  only so i don't think this is a problem.

See error below:

mod_h5pactivity

DDL sql execution error

More information about this error

Debug info: Table 'mdl_h5pactivity' already exists
CREATE TABLE mdl_h5pactivity (
id BIGINT(10) NOT NULL auto_increment,
course BIGINT(10) NOT NULL,
name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
timecreated BIGINT(10) NOT NULL,
timemodified BIGINT(10) NOT NULL,
intro LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
introformat SMALLINT(4) NOT NULL DEFAULT 0,
grade BIGINT(10) DEFAULT 0,
displayoptions SMALLINT(4) NOT NULL DEFAULT 0,
enabletracking TINYINT(1) NOT NULL DEFAULT 1,
grademethod SMALLINT(4) NOT NULL DEFAULT 1,
reviewmode SMALLINT(4) DEFAULT 1,
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_h5pa_cou2_ix (course)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci
COMMENT='Stores the h5pactivity activity module instances.'
;
CREATE TABLE mdl_h5pactivity_attempts (
id BIGINT(10) NOT NULL auto_increment,
h5pactivityid BIGINT(10) NOT NULL,
userid BIGINT(20) NOT NULL,
timecreated BIGINT(10) NOT NULL,
timemodified BIGINT(10) NOT NULL,
attempt MEDIUMINT(6) NOT NULL DEFAULT 1,
rawscore BIGINT(10) DEFAULT 0,
maxscore BIGINT(10) DEFAULT 0,
scaled NUMERIC(10,5) NOT NULL DEFAULT 0,
duration BIGINT(10) DEFAULT 0,
completion TINYINT(1),
success TINYINT(1),
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_h5paatte_tim2_ix (timecreated)
, KEY mdl_h5paatte_h5ptim2_ix (h5pactivityid, timecreated)
, KEY mdl_h5paatte_h5puse2_ix (h5pactivityid, userid)
, KEY mdl_h5paatte_h5p2_ix (h5pactivityid)
, UNIQUE KEY mdl_h5paatte_h5puseatt2_uix (h5pactivityid, userid, attempt)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci
COMMENT='Users attempts inside H5P activities'
;
CREATE TABLE mdl_h5pactivity_attempts_results (
id BIGINT(10) NOT NULL auto_increment,
attemptid BIGINT(10) NOT NULL,
subcontent VARCHAR(128) CHARACTER SET utf8 COLLATE utf8_general_ci,
timecreated BIGINT(10) NOT NULL,
interactiontype VARCHAR(128) CHARACTER SET utf8 COLLATE utf8_general_ci,
description LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
correctpattern LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
response LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
additionals LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
rawscore BIGINT(10) NOT NULL DEFAULT 0,
maxscore BIGINT(10) NOT NULL DEFAULT 0,
duration BIGINT(10) DEFAULT 0,
completion TINYINT(1),
success TINYINT(1),
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_h5paatteresu_atttim2_ix (attemptid, timecreated)
, KEY mdl_h5paatteresu_att2_ix (attemptid)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci
COMMENT='H5Pactivities_attempts tracking info'
Error code: ddlexecuteerror

Stack trace:

  • line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
  • line 1098 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
  • line 427 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
  • line 372 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
  • line 830 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
  • line 565 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 711 of /admin/index.php: call to upgrade_noncore()
Has anyone else had this issue? I would appreciate any assistance with this.

Cheers,

Ben

Viewing all 47442 articles
Browse latest View live


Latest Images

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