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

Re: SVG File not being Served, downloads instead

$
0
0
by Tim Martinez.  

We just upgraded to 3.10.6 and found the same issue. We traced the problem to line 2533 in lib/filelib.php.

The following code has been added:

// Make sure we force download of SVG files for security reasons (https://digi.ninja/blog/svg_xss.php).
if (file_is_svg_image_from_mimetype($mimetype)) {
     $forcedownload = true;
}
All SVG files that are part of plugins now force downloads. This has broken some interactives we wrote and stored as files in a Moodle course. A quick workaround is to comment the lines out. A better solution would be for Moodle to allow serving SVG files from trusted users.


"Error writing to database" when restoring course

$
0
0
by Felipe Almeida de Souza.  

Im using Moodle 3.6.3+ (Build: 20190322) and trying to restore a course from a 3.6 version. I have transfered 20 courses with no problem, but i have 5 with this "error writing to database".

Searching on the forum i discovered that is a old bug already fixed. And i already tried increase max_allowed_packet like the oficial documentation says: https://docs.moodle.org/310/en/error/moodle/dmlwriteexception

Can you guys give me a help? 

Sorry about my english, Isnt my first language.


Duplicate entry '0-0007725566-1' for key 'mdlq1_user_mneuse_uix'

INSERT INTO mdlq1_user (username,idnumber,email,icq,skype,yahoo,aim,msn,phone1,phone2,institution,department,address,city,country,lastip,picture,url,description,descriptionformat,imagealt,auth,firstnamephonetic,lastnamephonetic,middlename,alternatename,firstname,lastname,confirmed,policyagreed,deleted,lang,theme,timezone,firstaccess,lastaccess,lastlogin,currentlogin,mailformat,maildigest,maildisplay,autosubscribe,trackforums,timecreated,timemodified,trustbitmask,password) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

[array (

0 => '0007725566-1',

1 => '',

2 => 'cintiaamelo@ig.com.br',

3 => '',

4 => '',

5 => '',

6 => '',

7 => '',

8 => '',

9 => '',

10 => '',

11 => '',

12 => '',

13 => '',

14 => '',

15 => '187.38.63.103',

16 => '0',

17 => '',

18 => '<p></p><br />',

19 => '1',

20 => '',

21 => 'manual',

22 => '',

23 => '',

24 => '',

25 => '',

26 => 'CINTIA APARECIDA ROMEIRO DE',

27 => 'MELO',

28 => '1',

29 => 0,

30 => '0',

31 => 'pt_br',

32 => '',

33 => '99',

34 => '1492469889',

35 => '1628209488',

36 => '1627221181',

37 => '1628209488',

38 => '1',

39 => '0',

40 => '2',

41 => '1',

42 => '0',

43 => '1488022500',

44 => '1622634057',

45 => '0',

46 => 'restored',

)]

Error code: dmlwriteexception

Rastreamento de pilha: 

line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown

line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()

line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()

line 1245 of /backup/util/dbops/restore_dbops.class.php: call to mysqli_native_moodle_database->insert_record()

line 1147 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::create_included_users()

line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_create_included_users->define_execution()

line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()

line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()

line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()

line 385 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()

line 219 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()

line 143 of /backup/restore.php: call to restore_ui->execute()

Synchronize users of moodle courses with teams users

Re: Synchronize users of moodle courses with teams users

Re: "Error writing to database" when restoring course

$
0
0
by Howard Miller.  

"Searching on the forum i discovered that is a old bug already fixed"

Link please?

Problem after installation via command line

$
0
0
by Linux Freebsd.  

Hello!
I am doing the installation via the command line. I am attaching a snapshot of my command list below:


After starting the installation command, I saw an error in the console (selected with red line) and i'm interrupted the process:

After that, I deleted and recreated the database, database user, and all directories required to install the program. I also specified the permissions and repeated the installation until complete:

But when I opened the service page, I encountered many 404 errors and a broken home page interface:


Question: what I missed during the installation, please help in resolving the issue. Thanks in advance!

Re: Problem after installation via command line

$
0
0
by Linux Freebsd.  

OS: Ubuntu 20.04
Version Moodle: moodle-3.11.2
Nginx: nginx version: nginx/1.18.0 (Ubuntu)
PHP: PHP 7.3.30-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Aug 26 2021 15:56:09) ( NTS )
DB: Server version: 10.3.31-MariaDB-0ubuntu0.20.04.1

The 404 error in the console and the broken interface are observed everywhere after I log in with the administrator account.

Re: Problem after installation via command line

$
0
0
by Leon Stringer.  

The chdir(): Permission denied (errno 13) can be ignored. The install script changes to the Moodle source code directory – /var/www/html/moodle in this case – and then attempts to change back to the original directory – /root in this case. Since user www-data cannot access /root the warning appears.

The 404 errors look like a problem with the web server software configuration. Possibly it's not configured for slash arguments. The solution depends on which web server software you are using, for example Moodle Docs for Nginx.


Re: Problem after installation via command line

$
0
0
by Ken Task.  

Since this is a fresh install ... question ... why are you not using git to acquire the core code?

https://docs.moodle.org/311/en/Git_for_Administrators

Since Moodle releases new code (fixes/security patches) frequently (2 weeks?) and one cannot stay a 3.11.x forever so one can acquire point releases easily + on the horizon 4.0 ... git is a huge advantage since you don't suffer from 'clas' (command line avoidance syndrome).

I've always found it easier when using CLI to reduce the paths in the command by cd to something close to the work area ... like cd /var/www/

Also, CLI will use environment of user ... do you have multiple versions of PHP installed?   If not, then one could use just 'php' in front of scripts .... IF 'which php' finds the php-cli needed.

My 2 cents!

'SoS', Ken

Re: "Error writing to database" when restoring course

Re: SVG File not being Served, downloads instead

Re: "Error writing to database" when restoring course

$
0
0
by Howard Miller.  

That's nothing to do with your problem. A different error message and different table.

I think your problem is caused by a site admin user (that isn't called 'admin') in the backup file. Although, I'm not 100% about the circumstances. In your case, what user has username '0007725566-1'??

Re: "Error writing to database" when restoring course

Re: Problem after installation via command line

$
0
0
by Linux Freebsd.  

Thanks a lot to everyone for the answers.
The question was in the web server software configuration - nginx is not configured for forward slash arguments.
Moodle Docs for Nginx was resolve my question.

Re: "Error writing to database" when restoring course

$
0
0
by Felipe Almeida de Souza.  

In all 5 courses with this error, the users showing on the debug are students


Re: "Error writing to database" when restoring course

$
0
0
by Felipe Almeida de Souza.  

Im gonna have a look at this link and give you a feedback. Thanks

Unable to create an admin account during installation

$
0
0
by Nuron Wahid Khairil Ismail.  

I use

moodle : 3.10.6+

OS : Ubuntu 18

PHP : 7.2

webserver : nginx

control panel : virtualmin

mysql : 5.7


on creating an administrator account error, please enlighten the masters


Re: Unable to create an admin account during installation

Can't update Moodle Database

$
0
0
by anton plashkevich.  


Hello, there was such a problem when I load the plugin for the Moodle bridge, the Moodle database is not updated, can anyone have encountered such a problem thanks

Trouble Migrating Moodle v3.10.3

$
0
0
by Jason Vanstone.  

Hello Moodle Team,

 I recently migrated Moodle from 1 server to a new 1.  The new database is the backup of the old database. Filedir is a direct copy of the old server. All the File were brought over from the old site.  I am able to login and that is about it. Im using v3.10.3.

 This is the error I am getting:

   https://choicelearning.charlie.chameleonhosting.com/sandbox/my/

Can't find data record in database table course_categories.
Debug info: SELECT id,parent FROM {course_categories} WHERE id = ?
[array (
0 => '1',
)]
Error code: invalidrecord
Stack trace:
  • line 1646 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 6745 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 676 of /course/classes/category.php: call to context_coursecat::instance()
  • line 1226 of /course/classes/category.php: call to core_course_category::can_view_category()
  • line 1342 of /course/classes/category.php: call to core_course_category->get_not_visible_children_ids()
  • line 318 of /course/classes/category.php: call to core_course_category->get_children()
  • line 1305 of /lib/navigationlib.php: call to core_course_category::user_top()
  • line 3503 of /lib/navigationlib.php: call to global_navigation->initialise()
  • line 3548 of /lib/navigationlib.php: call to navbar->has_items()
  • line 4536 of /lib/outputrenderers.php: call to navbar->get_items()
  • line 44 of /theme/boost/layout/columns2.php: call to core_renderer->region_main_settings_menu()
  • line 1374 of /lib/outputrenderers.php: call to include()
  • line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 165 of /my/index.php: call to core_renderer->header()

If I go to https://choicelearning.charlie.chameleonhosting.com/sandbox/admin/

I get:

Coding error detected, it must be fixed by a programmer: Request for an unknown renderer core, admin, maintenance

More information about this error

×Debug info:
Error code: codingerror
×Stack trace:
  • line 447 of /lib/outputfactories.php: coding_exception thrown
  • line 2362 of /lib/outputlib.php: call to theme_overridden_renderer_factory->get_renderer()
  • line 874 of /lib/pagelib.php: call to theme_config->get_renderer()
  • line 548 of /admin/index.php: call to moodle_page->get_renderer()
Please let me know if you need anymore information!

Jason

Viewing all 47313 articles
Browse latest View live


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