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

Re: Fresh install 3.9.2+ gives "error communicating with server" after DB table creation

$
0
0
by Leon Stringer.  

Try adding error_reporting(E_ALL) to lib/classes/session/manager.php at line 129 just above the call to self::$handler->start():

 129             error_reporting(E_ALL);
 130             if (!self::$handler->start()) {
 131                 // Could not successfully start/recover session.
 132                 throw new \core\session\exception(get_string('servererror'));
 133             }

Hopefully this will result in additional messages on screen when the error occurs.

It looks like Moodle suppresses PHP error reporting for session start even if it's enabled in config.php. In fairness, with the default session settings I've only ever seen this error when the disk is full.


Re: Getting ERROR: Incorrect Number of query parameters. Expected 2, got 0. after migration.

$
0
0
by Leon Stringer.  

This looks like a known bug in the Visitor Counter block. It may be due to this plugin not handling IPv6 addresses.

Moving the blocks/counter subfolder out of the Moodle source code folder should work around the issue and allow access to the site.

Note: Moodle 3.5.1, released July 2018, is over two years behind the latest update for security and bug fixes, Moodle 3.5.14, released September 2020.

Re: Problem with H5P slideshow powerpoint

$
0
0
by Kevin Baglieri.  

Hi Beatriz,

Thank you so much for your answer.

Have a lovely day! smile

my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Mat Connolley.  

Installing Moodle 3.9.2+ (Build: 20201002)

I'm getting the errors:

mysql_full_unicode_support#File_format
Your database uses Antelope as the file format. Full UTF-8 support in MySQL and MariaDB requires the Barracuda file format. Please switch to the Barracuda file format. See the documentation 
Check
mysql_full_unicode_support#Large_prefix
For full support of UTF-8 both MySQL and MariaDB require you to change your MySQL setting 'innodb_large_prefix' to 'ON'. See the documentation for further details.
Check

I can't change the global variables for innodb_file_format, innodb_large_prefix, innodb_file_per_table across the entire MySQL Server

I've added a .my.cnf file in the root of the directory under which I'm installing Moodle and restarted the MySQL Server but it doesn't seem to be having any effect.

Is there a way to change these settings locally rather than globally?

Re: Fresh install 3.9.2+ gives "error communicating with server" after DB table creation

$
0
0
by John Schinnerer.  

Thanks Leon, I will give this a try as soon as I can make time.
Moodle suppresses PHP error reporting for session start regardless? I would call that a bug for sure.

The drive is not full; many GB of space.

If there are perms issues with my moodle data directory, it does not stop the session files from getting written. It also did not stop the moodle data subdirs from being created at some point in the install process. So I am assuming those perms are OK, pending getting any error messages to the contrary.

Re: Getting ERROR: Incorrect Number of query parameters. Expected 2, got 0. after migration.

$
0
0
by Mudabbir S.  

Thank you very much Leon!

Solution provided by you worked very well.

All students who were facing issue are now able to login.

So nice of you.

Regards.

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Leon Stringer.  

These are global settings that apply to all databases on the MySQLserver.

If it's not possible to switch to the recommended configuration then you must create the Moodle database with the utf8 and utf8_unicode_ci character set and collation respectively (instead of the recommended utf8mb4 and utf8mb4_unicode_ci settings).

In Moodle it's much easier to enable full UTF-8 support at installation rather than migrating to this at a later date, and the offending InnoDB settings were deprecated and have now been removed from MySQL and MariaDB. What's getting in the way of changing these?

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Ken Task.  

The .my.cnf file is really for user of the system (usually a superuser) to have passwordless access to the DB server as well as settings for the mysql client (command line).  

From what you've described sounds like you are on shared hosting and the database server is also a shared DB server (cannot change globals).

Look at your config.php file in moodle code for the DB host ... bet that line does *not* say 'localhost'.

If you are on shared hosting, how was the moodle installed?  Many providers offer a scripted install from server apps like 'Softaculous' or some other - 'one click wonders'.

Word of caution ... those may not upgrade very well.  And, because those scripts are $$ none here in community forums can speak to their failures ... even though hosting provider might point you to these community forums - which are free and not $$ supported.

Be a good idea to collect specifics about your hosting - not only php version mysql version moodle version, etc.

'SoS', Ken



i can not unistall OpenID Connection plugin (auth_oidc)

$
0
0
by Ruperto Leal Ruperto.  

Hello,

I have a MOODDLE 3.5.2 in which I have the OpenID Connection plugin (auth_oidc)
 installed and I need to uninstall it because its presence prevents me from updating to 3.9.2,
 a version for which it is incompatible ... The "uninstall" button does not appear. 
I have checked if it was due to having a user who had signed up using that method,
 I have deleted only one there was, but the uninstall button is still not present.
 I have removed the server folder, I do not know if this method is the one more correct, 
in which case as soon as I open the MOODLE, it tells me that it is not present 
on the disk and asks me if I want to download the latest update so I have it installed again .... 
What do you recommend that I do to remove this plugin ??
thanks in advance,
Ruper

note: MOODLE 3.5.2

Re: Fresh install 3.9.2+ gives "error communicating with server" after DB table creation

$
0
0
by Alain Raap.  

Maybe you can test your database connection with this little script on your webserver. It returns the tables of your Moodle database.

Not seeing "Upload a file option" when creating a new resource

$
0
0
by Jordi Romeu.  

I have a problem. In a customers installation, the administrators are not able to upload files. If you go to any course page, edit it, and add a resource, in the resource page you can see the "Selected files" box. But there's no option to upload files.

On the files box, there's the "drag&drop not supported" message.

If you click the file button, you have different options: content bank, url download, server files, etc... But there's not the "upload file" option.

Have checked file permissions on moodledata folder, and checked plugins options to trying to find some misconfiguration. But can't find nothing.

Can you help me please?

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Mat Connolley.  

I've tried changing the data collation to utf8_unicode_ci although there are no tables in it yet. The installation still won't get beyond the Server checks screen.

The database server is shared so we can't change InnoDB settings globally.

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Mat Connolley.  

The config.php does have localhost for the dbhost. I'm trying to install using the web installer; our provider doesn't offer any installation apps unfortunately.

Installation - Moodle 3.9.2+ (Build: 20201002)
PHP v7.3
MySQL v5.6

Any other suggestions gratefully received!

Ang: Not seeing "Upload a file option" when creating a new resource

$
0
0
by Preben Pedersen.  

Hi Jordi,

Seems like it might be disabled. Try and go to MOODLE_URL/admin/repository.php and make sure 'upload a file' is enabled.

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Leon Stringer.  

If config.php has already been created ensure 'dbcollation' is set to utf8_unicode_ci:

$CFG->dboptions = array (
 ⋮
  'dbcollation' => 'utf8_unicode_ci',
);

I'd recommend using a different database server if the existing one doesn't support the configuration Moodle recommends.


Re: Ang: Not seeing "Upload a file option" when creating a new resource

$
0
0
by Jordi Romeu.  

Sorry Preben,

But can't find 'upload a file' or similar in /admin/repository.php.

It's moodle v 3.9.

I attached my file.

Error after installing plugin

$
0
0
by Siyabonga Gwala.  

Hi,


I have just started using Moodle.

We had someone else set it up for us.

I have been playing around in Moodle with a team to create an Online version of our Life Skills service due to Covid19.

We needed to be able to customize the reports that we pull regarding our candidates since "Activity Completion" Report lacked some information.

I downloaded the plugin "Configurable Reports" - "block_configurable_reports" and installed it via zip.

After this I got error shown in the attached screenshot.


How do I resolve this?

Any assistance is greatly appreciated and please tell me if you need more information.


Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Mat Connolley.  

Aha - changing the value in the config.php seems to have solved the problem on the server check screen so I'll continue with the installation.

Thanks for the help, and I've taken on board the recommendation about using a different database server. I'm trialling the Moodle installation right now so I'll see how it pans out with the current database server.

Ang: Re: Ang: Not seeing "Upload a file option" when creating a new resource

$
0
0
by Preben Pedersen.  

Ah sorry, i might not have been clear enough.

It is not the file you should be looking for, but the settings of your moodle environment through your webbrowser.

I don't know what domain your installation is not, but you just need to add '/admin/repository.php' at the end of it, to access the repository settings, fx http://moodle.org/admin/repository.php.

You can also click your way through Site administration -> Plugins -> Repositories -> Manage repositories.

Re: my.cnf for just one MySQL database not entire SQL Server

$
0
0
by Ken Task.  

Ok, changing DB values in config.php got you rolling, but is DB server localhost or a shared DB server (ip or some internal hosting fqdn)?

localhost would mean you have control over config of DB server.  A shared DB server means you don't.

Yes, you could slide along with utf8 settings for shared DB server, but what of future versions of Moodle - 3.10 and 4.0? utf8mb4 is 'the future' me thinks and so in fairly short time frame you might be looking at moving upwards with hosting package or another provider.

'SoS', Ken

Viewing all 47097 articles
Browse latest View live


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