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

Problem restoring courses on upgrade

$
0
0
by Tracy Hodges.  

We are trying to restore courses from our live version of Moodle (v3.11.10+) to our sandbox site (v4.1.5+) and are encountering some problems.

1) Some courses are not restoring at all and simply return the message "error connecting to the server" when trying to drop the backup .mbz file in.  Filesize 285,215 kb.

2) Some courses are restoring and seem to be OK once the restore has complete, but are returning the message "Technical information and warnings" and

"Warning: file_exists():open_basedire restriction in effect. File (/db/access.php) is not within the allowed path(s): (/var/www/vhosts/[url]/:/tmp/) in /var/www/vhosts/[url/url]/lib/accesslib.php on line 2569"

"Error output, so disabling automatic redirect."

I am not familiar with php or these error message, so if someone is able to provide me with some understanding of what these error messages mean, in laymans terms, and how we go about resolving them, that would be greatly appreciated. 

Thanks in advance. 


Re: Multi domains

$
0
0
by Howard Miller.  

You can't. Moodle is not capable of doing this. You can only have one $CFG->wwwroot setting.
 
You may want to explain what security issue you think this is fixing? There may be some other way...

Re: Problem restoring courses on upgrade

$
0
0
by Howard Miller.  

The easy problem first. "open_basedir" is a php.ini setting that restricts PHP to writing data only in certain, specified directories. Although it's theoretically possible to get Moodle working with open_basedir enabled, it's not a good idea. So, your first step is (if at all possible) to get this removed. This is a setting in php.ini (and then restart server) and/or you may need to speak to your host support.

This could easily account for all the problems you are seeing.

Database connection error when updating php

$
0
0
by Louis-Philippe Paquet.  

Hello,

We have a weird bug when upgrading PHP on our Moodle 4.1 site.

When trying to update PHP from 8.1.22 to 8.1.27 while upgrading Moodle from 4.1.6 to 4.1.8, our users started getting Database Connection Failed errors like this:
image.png

After investigating, we found that database connections between moodle and our database (MariDB 10.6.11) never closed automatically, filling the max connection limit and eventually causing this error. Reverting to PHP 8.1.22 fixed the issue.

We recently had to upgrade to Moodle 4.1.9, and we tried updating PHP to 8.1.28, hoping that our problem would be fixed. It was not, so we reverted back to PHP 8.1.22. 

We are on Windows Server 2016, with the database being on a separate server from the application.

We want to avoir being on older versions of PHP due to security issue, so if someone has information on this problem or solutions to try, it would be greatly appreciated.

Re: Database connection error when updating php

$
0
0
by Emma Richardson.  

Are you sure that you included the mysql module in the new version of php?

Re: Database connection error when updating php

$
0
0
by Howard Miller.  

No idea, but where did your PHP build come from? If it's not from a "reliable" source then there may be something wrong with the MySQL extension.

Moodle installation screen not appear in web browser

$
0
0
by Akash premnath.  

I have used modle version 404 stable and php version PHP 8.3.6 (cli)  after all basic configuration  when i try to access from browser web page is not working i have attached Screenshot below . Please let me know how to fix this issue.

 

(Edited by Mary Cooch to delete screenshot - original submission Wednesday, 24 April 2024, 4:52 AM)

Re: Moodle installation screen not appear in web browser

$
0
0
by Visvanath Ratnaweera.  

Display PHP info outside Moodle as explained in PHP#Displaying_phpinfo_outside_of_Moodle and put it in the root of the Moodle code directory - that is where config.php resides. Then call yoursite/phpinfo.php and make sure you get a page like this:

Re: Moodle installation screen not appear in web browser

$
0
0
by Akash premnath.  

i have followed the steps which have mentioned still php page doesn't working


Re: Moodle installation screen not appear in web browser

$
0
0
by Visvanath Ratnaweera.  

Then it won't. You need to start at Before you post.. Read this...

In the meantime you may want to ask the moderator to delete the screen-shot, it exposes your IP address!

Help My moodle is not visible anymore

$
0
0
by Luc Maes.  

Hello,

If I want to access my moodle it seems to be dissapaired

If I look at the file manager everything seems ok, I just took a backup some days ago

Maybe, .... since I'm preparing a migration to a other hosting, the problem is that I used the same email adres to register my new moodle wich is already installed

can anybody help please, .... this is like a horror for me

thanks

Re: Help My moodle is not visible anymore

$
0
0
by Howard Miller.  

You've not given us much to work with sad

So, you go to the URL where you expect to see Moodle and what (exactly) happens?

What changed? Something did. Even if you don't think it's related. Has anything been updated (did you ignore any emails from the hosting company etc.)
 
It's nothing to do with registering Moodle.

Re: Installation Error

$
0
0
by Trevor Hughes.  

My apologies - I am new to the forum and what is needed.

I downloaded Moodle 4.3.3+ build(20240405) from Moodle.org directly, transferred files to a new hosted server, updated php, and had to tick a few boxes. Moodle installation now loads- and the first page of requirements are all met successfully.

The next page is plugins - and it says 78 plugins need to be installed. Unfortunately, clicking on next gets to this error on the plugin quiz_statistics. I assume it is not appropriate to post the website URL here for security reasons?

Unfortunately, I have no idea where to even start.

Trevor

image.png

Re: Installation Error

$
0
0
by Howard Miller.  

I'm struggling here. I've not seen that before.

This is going wrong in the code that verifies XML files that define the database tables. The only thing I can think is that something went wrong copying the files to your hosted server. Files are corrupt or missing. That's where I would start.
 
Somebody else may be along with a more inspired explanation.

Re: Database connection error when updating php


Re: Database connection error when updating php

$
0
0
by Howard Miller.  

What do the database connections claim that they are doing when you run 'processlist'? I'm guessing 'sleeping' but it's probably worth a check.

Custom CSS modifications when upgrading moodle version

$
0
0
by João Tentis.  

Hi guys,

The new version of moodle was released some days ago as we all know and I want do upgrade my moodle, but it is in production, so I have to be extra careful. I do not have any other way to do it but manually, so my problem is with all the custom modifications I did with my CSS files.

So, just to be sure, all I have to do is, after I do all the necessary stuff on the Upgrading Docs, I simply just remove all the CSS files from the upgraded version and paste my old ones? Just the same way as config.php, right?

Needless to say, I have already made all the backups I need.

Re: Custom CSS modifications when upgrading moodle version

$
0
0
by Howard Miller.  

What CSS files are you talking about? Moodle doesn't have "custom CSS files" - unless you mean you customised core code. Which while you CAN you probably should not. You are finding out why. There's no guarantee that the same files will work in the newer version. You'll need to test that for yourself.

What you really wanted to do was to create a custom theme. It's not as bad as it sounds, as (apart from some boilerplate) you only need to supply the bits that are different.

Re: Custom CSS modifications when upgrading moodle version

$
0
0
by João Tentis.  

Yeah, that's what I did, I changed the core files by creating SCSS files to add the custom styles I wanted.

I'll do things the right way and create a custom theme since it's all bugging now haha

Thanks for the response anyways!!

Re: Database connection error when updating php

$
0
0
by Louis-Philippe Paquet.  

Yes, they're sleeping. They only close on the mariadb timeout value.
Viewing all 46757 articles
Browse latest View live


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