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

Re: Moodle 3.5.5 + 3.6 After successfully installation - Setup Main Admin Account, cannot see password input field

$
0
0
by Martin Williams.  

Where can I add it?


Re: Moodle 3.5.5 + 3.6 After successfully installation - Setup Main Admin Account, cannot see password input field

Re: Problem upgrading mod_booking

$
0
0
by Ralph Jones.  

Thanks for your reply. It works in moodle 3.4, so I switched to that for a while, which is why I am so long in replying.

Today I tried with moodle 3.5.6 (Build: 20190513) and mod_booking version 2019050400. I got the same error. 

I then saw on https://tracker.moodle.org/browse/MDL-64368 that php be upgraded to 7.2.14. I am using bitnami moodle as a base system, which still only supports php 7.1, but installed php 7.2.18 and tried again. This resulted in the same error though.

Note. I set 'dbcollation' => 'utf8mb4_unicode_ci' in config.php as recommended here. Could this be related?

Re: Moodle 3.5.5 + 3.6 After successfully installation - Setup Main Admin Account, cannot see password input field

Re: Error reading database - solved. BUT WHY???

$
0
0
by Lisle Waldron.  

Ok. I'll break it again later today. I'm pretty tired atm from some all nighters to nail down the issue.

Was the 3.4 site on the old host already Barracuda/utf8mb4_unicode_ci or was this changed as part of the migration to the new VPS?
No. It was not originally mb4. Godaddy's shared hosting cannot do Barracuda and they don't allow root access because of the nature of shared hosting to begin with.

When you see the "Error writing to database" are you logging in as a "manual" Moodle user or is this using some external authentication (e.g. external database)?
Manual Moodle. No authentication service nor database outside of the core moodle db.

If I am to understand you:
  • Log into the instance (as its currently working)
  • Enable debugging
  • Change the collation back to utf8mb4_unicode_ci 
  • Try to login
  • See error

or is it that I am adding code to the config.php file which would allow me to change the collation back to utf8mb4_unicode_ci and still have debugging occuring?

Thanks for the clarity thus far though.

Re: Error reading database - solved. BUT WHY???

$
0
0
by Lisle Waldron.  

Ok. When I break it again in a bit to log the errors I'll try this as a possible solution for the issue itself.

Thanks.

Problem with installing plugins using gui from the Moodle plugins repository

$
0
0
by Zoran Jancic.  

Windows server with IIS
Moodl 3.6.3+
PHP Version 7.2.14

Recently changed the host name so I changed the hostname in the config.php.

I'm trying to install plugins from the Moodle plugins repository using gui but keep getting the following error:

There is a request to install plugin Game (mod_game) version 2019042600 from the Moodle Plugins directory on this site. However, the plugin installation pre-check failed (reason code: remoteunavailable)

Debug gets me this:

  • line 226 of \lib\classes\update\api.php: call to core\update\api->call_service()
  • line 102 of \lib\classes\update\api.php: call to core\update\api->call_pluginfo_service()
  • line 1041 of \lib\classes\plugin_manager.php: call to core\update\api->get_plugin_info()
  • line 906 of \lib\classes\plugin_manager.php: call to core_plugin_manager->get_remote_plugin_info()
  • line 942 of \lib\classes\plugin_manager.php: call to core_plugin_manager->is_remote_plugin_available()
  • line 178 of \admin\tool\installaddon\classes\installer.php: call to core_plugin_manager->is_remote_plugin_installable()
  • line 43 of \admin\tool\installaddon\index.php: call to tool_installaddon_installer->handle_remote_request()
Installing plugins via gui works fine when I upload plugin's ZIP using "Choose a file" button or by dragging the ZIP file in the upload box. 

There's another problem that may be related to this. I'm using H5P plugin. Creating H5P activity works fine but when I later try to edit the activity, I get the following error: error/invalidhvp. 

Debug gets me this:

Debug info:
Error code: invalidhvp

$a contents:

Stack trace:

  • line 494 of \lib\setuplib.php: moodle_exception thrown
  • line 182 of \mod\hvp\mod_form.php: call to print_error()
  • line 481 of \course\moodleform_mod.php: call to mod_hvp_mod_form->data_preprocessing()
  • line 199 of \local\metadata\context\module\classes\context_handler.php: call to moodleform_mod->set_data()
  • line 421 of \local\metadata\lib.php: call to metadatacontext_module\context_handler->coursemodule_standard_elements()
  • line 749 of \course\moodleform_mod.php: call to local_metadata_coursemodule_standard_elements()
  • line 737 of \course\moodleform_mod.php: call to moodleform_mod->plugin_extend_coursemodule_standard_elements()
  • line 118 of \mod\hvp\mod_form.php: call to moodleform_mod->standard_coursemodule_elements()
  • line 204 of \lib\formslib.php: call to mod_hvp_mod_form->definition()
  • line 99 of \course\moodleform_mod.php: call to moodleform->__construct()
  • line 141 of \course\modedit.php: call to moodleform_mod->__construct()
I've read somewhere that it could be related to curl and remote files access so I checked if it's installed and enabled. It is. PHP info says: 
cURL support enabled
cURL Information 7.61.1 

I thought H5P plugin doesn't require remote files once all libraries are downloaded and installed.

Any advice would be appreceated.

Kind regards,
Zoran

Error writing to database More information about this error ×Debug info: Got a packet bigger than 'max_allowed_packet' bytes

$
0
0
by Lucky Ken.  

Hello,

When attempting to backup or import one of our larger courses, I'm getting the following error:

×Debug info: Got a packet bigger than 'max_allowed_packet' bytes

I have SSH access and already increased max_allowed_packet bytes and also increased compression by converting to Barracuda, however, I'm still not able to make the error go away. 

I understand that typically this error goes away when the max_allowed_packet bytes are increased to 100M, I've increased this to 1000M with no luck. Please if anyone can offer suggestions, I would be most grateful. : )


Re: Windows Portable Moodle and Relative Paths for 'dataroot'

$
0
0
by Travis Williams.  

Thanks for the link but yeah not really what I am looking for.

I am in the process of writing a script which updates the absolute path with the users current directory before launching Moodle - I am just trying to figure out which files I need to updated and if there are any DB entries which need to be updated as well?

Re: Windows Portable Moodle and Relative Paths for 'dataroot'

$
0
0
by Visvanath Ratnaweera.  

If this is a fresh start the moodledata directory is empty. Just change the $CFG->dataroot to your wish and start Moodle. It will initiate moodledata. Only restriction, it has to be an absolute path.

Re: Unable to access Moodle site….

$
0
0
by Visvanath Ratnaweera.  

You wrote: "moodle would be completely text-based". Could you elaborate on that?

Re: Error writing to database More information about this error ×Debug info: Got a packet bigger than 'max_allowed_packet' bytes

$
0
0
by Ken Task.  

What do your apache error logs say/show?

What is size of the .mbz file you are trying to restore ... yeah, ya said large ... but how large?

'SoS', Ken

Re: Moodle Migration Error

$
0
0
by Rajasekhar Kadimi.  

Thanks for your reply.

Yes, Installed new moodle is working fine now also.

Moodle Site


FYI - I had done migration steps as below,

1) Created a new database for migrated moodle and imported old/working moodle DB backup.

2) copied all moodle contents to a new folder i.e, migmoodle.

3) next, copied all moodledata contents to a new folder i.e, migmoodledata.

4) finally, I had made required changes in config.php with the migrated moodle names and DB details.

5) At last, accessed the moodle and got the same error "Error reading from database".


Just now also, I had tried same steps again and successfully got the same error sad


Kindly look into my steps and let me know if I made any mistakes in the migration process.

Re: Error writing to database More information about this error ×Debug info: Got a packet bigger than 'max_allowed_packet' bytes

$
0
0
by Lucky Ken.  

Hi Ken,

Thank you for replying here!

I'm showing something like this as the last entry in the error_log file below. What's funny is that after that -- there's a bunch of encryption so I don't know what that is that's showing there in the log because it's just random letters and numbers for about 5 screens. 

Since this is happening only on the one course, I'm not sure because every time I try to back it up, it won't even let me through. And if I try to import the contents of that course into another course, I get the same error. I hope this helps explain a little. : )

Wed May 15 22:08:42.387579 2019] [fcgid:warn] [pid 12607:tid 140194435032832] [client IPADDRESS REMOVED]
 mod_fcgid: stderr:   11 => 'e7632377c724a90b898f1bdac683aec5',, referer: SITE/course/view.php?id=25

Re: Problem with installing plugins using gui from the Moodle plugins repository

$
0
0
by Howard Miller.  

Short answer - your Moodle server can't talk to the Moodle plugin server. Or, it would seem, the remote HVP server.

I would start by checking that you can access the plugin server, manually from the server Moodle is running on. On Linux this would be by using the 'curl' command line. However, I don't know anything about Windows and I don't know how you would proceed. I expect Google does smile



Re: Issues installing Moodle 352 into wamp on localhost

$
0
0
by Waqas Ansari.  

I'm facing same issue. Will you please help me?

Re: Problem upgrading mod_booking

$
0
0
by Ralph Jones.  

In line 1783 of mod/booking/db/upgrade.php the following sql query is run:

   SELECT bo.id FROM mdl_booking_options bo WHERE bo.id > 0

In my database, the query "SELECT bo.id FROM mdl_booking_options bo" returns an empty set.

In lib/dml/moodle_database.php, the function get_in_or_equal explicitly returns an error if the array is empty.

Re: Problem upgrading mod_booking

Re: Error reading database - solved. BUT WHY???

$
0
0
by Leon Stringer.  

I'm suggesting:

  1. Enabling debugging by adding lines to config.php or via Site administrationDevelopmentDebugging changing Debug messages to "DEVELOPER".
  2. Changing collation back to utf8mb4_unicode_ci so that the problem occurs.
  3. Try to login.
  4. When the error appears you should see more information about the problem which will hopefully help us explain it.
It may be a case of following Alain's advice to resolve this.

Re: Invalid login, please try again (external MSSQL database)

$
0
0
by Danny at Hines Trucking.  

So, no one has any idea?

Viewing all 46902 articles
Browse latest View live


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