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

Re: 3.9.2+ fresh install - installation session start failure, "headers already sent" PHP error

$
0
0
by John Schinnerer.  

Update - did checkouts for all but the patched file. Git status now:
----------------
$ git status
Refresh index: 100% (21186/21186), done.
On branch MOODLE_39_STABLE
Your branch is up to date with 'origin/MOODLE_39_STABLE'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified: lib/dml/mysqli_native_moodle_database.php

Untracked files:
(use "git add ..." to include in what will be committed)

lib/dml/mysqli_native_moodle_database.php.bak-2020-10-04

no changes added to commit (use "git add" and/or "git commit -a")
-------------------

So the only file modified is the one I had to patch to fix this bug:
https://tracker.moodle.org/browse/MDL-69196

I looked at where I patched the code and it looks clean. Plus that code only executes once, setting up to create DB tables, and is already over and done with at this point.

NOTE that purge_caches.php did NOT resolve this. It generated a perms error because when I ran it from CLI I had to sudo and initially forgot to add the option
-u www-data
and the purge code apparently modifies the directory perms to match the user calling the code so it was setting them to root not www-data.

Still have the same header already sent error, presumably from whatever generates the "==" chars.
Unless someone has something else to try with the current stalled-out install, I will have to nuke everything and start over.

Re: 3.9.2+ fresh install - installation session start failure, "headers already sent" PHP error

$
0
0
by John Schinnerer.  

FWIW for anyone else trying to troubleshoot this:
Just for lulz I dropped all the tables in the DB (without nuking the whole fileset).
The install then goes to the first screen, as it sees the empty DB.
The chars "==" appear at the start of every page in the install steps up thru creating DB tables.
As before, after "continue" from success creating DB tables, I get the same error as above, all from "headers already sent"

Re: 3.9.2+ fresh install - installation session start failure, "headers already sent" PHP error

$
0
0
by John Schinnerer.  

Thank Ken but I think you're missing my response that there is no problem hitting the moodle 'site'.
Apache config is all good and working. I wouldn't be getting web UI install pages and then error messages on a page if I couldn't hit the moodle site in the first place.

FYI /content/ is the server base directory for all site content, or, placeholder for vhosting config of content that is not static or HTML-munging-based like PHP. Different domains are in subdirectories, e.g.

/content/domain-one.tld/html/
/content/domain-two.tld/html/
...and so on.

Moodle Mobile slow after Moodle 3.9 upgrade

$
0
0
by HueyZher Ng.  

Hello everyone, 

Previously, the Moodle Mobile app has no issue when our Moodle Site is running on version 3.8 

Once upgraded to 3.9, the Moodle Mobile was so slow in accessing in all the pages e.g. dashboard, course page, calendar, messages etc. Our moodle site (3.9.2) is running fine with 7vCPU and 16GB RAM.

Our Moodle Mobile is on premium plan. 

Has anyone experience this? 

Please share if you have solve this occurrence. 

Many thanks

Re: Updating problem

$
0
0
by Louie Angelo Villegas.  

UPDATE!

I have already fixed the problem. I have disabled the Atto HTML editor and used TinyMCE HTML editor instead.


Error while installing moodle 3.9

$
0
0
by Toni Schmitt.  

I am installing moodle on a VirtualMachine. If I use the Webinstaller (/moodle/install.php) I get following error:

Fatal error: Cannot use 'object' as class name as it is reserved in /var/www/html/moodle/lib/setuplib.php on line 66

Using php7.4, added all Packages as required and recommended in moodleDocs

Re: 3.9.2+ fresh install - installation session start failure, "headers already sent" PHP error

$
0
0
by Alain Raap.  

Just my thoughts on your config file, there are no session CFG setting yet I see. Where are the session files of Moodle written? Otherwise php will follow the path in php.ini

If it is in a php folder, then Apache doesn’t have enough rights, because only root may write there. Probably this isn’t the problem but I was just thinking out loud.

Have you tested your php with another simple test? Like a page with phpinfo() ? Or with a page that creates a session?


Topics bulk upload with date and time

$
0
0
by Atsbha Mebrahtu.  

please help me in preparing and uploading course's topics(titles) in csc file format.


Re: Error while installing moodle 3.9

$
0
0
by Visvanath Ratnaweera.  

What is the Moodle version you are trying to install? Only version 3.8.3 upwards are PHP 7.4 compatible.

Re: Request help on how to create customized Transcript

$
0
0
by System Administrator.  

We use the word Transcript instead of Marksheet. So we need to arrange every Terms(semesters) marks accordingly. Sample attached below. Kindly throw some light on how to do this.

Name : Student's name                                                   Category : MBA

Roll No : Student's roll no                                                 Batch : 2020-22

Term-I

subject code                                       subject name                                                 credit             Marks

M-001                                                  Economics                                                        3                   7(out of 10)

.

.

Term-II

subject code                                       subject name                                                 credit             Marks

M-002                                                  Business Ethics                                                  3                   6(out of 10)

.

.

upto Term V

After migration images link not working

$
0
0
by Angelos Kinas.  

Hello, i have a big problem.
Yestarday i did migration from old server to new (Own server VPS) on the old server everything worked fine 

but when I did the transfer! I connected moodle to the database, the photos of the courses do not appear! when I open them in a new tab it shows: No file input! I updated to the latest version of moodle 3.9.2 and the problem persists. while all other files are displayed, photos and some videos are not displayed.

My new server specs is: Web Server: Vritualmin (Last) with php7.4 and Mysql

can somebody help me; thank you.

Re: After migration images link not working

$
0
0
by Ken Task.  

Did the migration involve a change in the fully qualified domain name of the server?   Moodle uses wwwroot variable in config.php to build full url's to images/files.

Also, did the migration involve moving from http:// to https:// ... see in your screen shot a 'not secure' icon.

IF either above is true, then you need to run search and replace ... to find oldurl and replace with new url + change http:// to https://

https://docs.moodle.org/39/en/Search_and_replace_tool

Do heed what it says ... ** backup your database and know how to restore it in case something goes wrong **

'SoS', Ken

Re: After migration images link not working

$
0
0
by Angelos Kinas.  

Hello, and thank you!
No the domain is tha same! without SSL withe the same web panel!
the only change is the newest php version php7.4 and the mysql8 (from oldest)
i did the migration with the guide of moodle!
im comfused!

Re: After migration images link not working

$
0
0
by Ken Task.  

A full site migration included code, db, and moodledata.

moodledata ownerships and permissions should be quite liberal - globall all must be able to at least read.

moodledata/filedir/ is where files uploaded to moodle are stored.

Files in filedir are not humanly recognizable ...

Since you can see the filename of an image not display you need to query the mdl_files table of the DB for a filename to see the contenthash value.  In examples below you adjust replace for a known image file type ... like \%.jpg.   Example below for .gifs.

mysql> select filename,filesize,contenthash from mdl_files where filename like '%.gif';

Shows info like this:

+------------------------------+----------+------------------------------------------+
| filename                     | filesize | contenthash                              |
+------------------------------+----------+------------------------------------------+
| alien_eyes_md_wht.gif        |     8545 | 783adb04a7da39ed7e4db1a0c4e6debda24635f5 |
| alien_eyes_md_wht.gif        |     8545 | 783adb04a7da39ed7e4db1a0c4e6debda24635f5 |

The alien_eyes_md_wht.gif file is in

moodledata/filedir/78/3a/ and called 783adb04a7da39ed7e4db1a0c4e6debda24635f5

'SoS', Ken


Re: unable to create password for admin - moodle 3.8.3+

$
0
0
by Alexis Quezada.  

Hi, 

I change this but still I am unable to set a password.

I am having this error:



And I put this in the config.php :




Re: After migration images link not working

$
0
0
by Angelos Kinas.  

all the steps! is ok! on editing... i found the image! replace... and boom! nothing! but the problems is only on images... not to soundclips or videos.
slasharguments turned off! the server is another but the domain, the web server , the php and mysql versions, folder, paths, permissions...everything is the same!

Re: After migration images link not working

$
0
0
by Angelos Kinas.  

i found the problem! is the PHP 7.4 Version. i changed to PHP 7.2 and all works fine on moodle 3.8. maybe the moodle is not ready for php7.4. Thanks for again!

Re: Delete multiple users by CSV with only their emails

$
0
0
by Randy Thornton.  

You can get a list of all the users and all their fields using the Bulk user actions tool. Documentation for that is here: https://docs.moodle.org/39/en/Bulk_user_actions. Using that you can download the user list as a csv file and then you can remove all the various columns you don't need for the upload.

Username is always a required field when using the User upload tool since it is guaranteed to be unique (while names and emails are not.)

CentOS 7 vs CentOS 8

$
0
0
by Bruce Musinguzi.  

I have installed Moodle on CentOS 7, I wanted to install a fresh Moodle but wondering whether i should move on to CentOS 8. I plan to venture into server clustering later.

Does any one know whether or not CentOS 8 is better than CentOS 7 as far as Moodle is concerned???

Re: After migration images link not working

Viewing all 46829 articles
Browse latest View live


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