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

Error writing to database

$
0
0

by Blanca Rodríguez.  

Whenever I try to upload a new user, I get this warning 

I didn't use to get it, I have already uploaded like 11 users 

Does anyone know what this is about?


Re: Error writing to database

$
0
0

by Rahul Rai.  

Hello Blance

Please check your config.php.

This is your database issue. 



Re: Error writing to database

$
0
0

by Howard Miller.  

Switch on Debugging (<< that's a link).  Do it again. Hopefully you should see some additional messages. Let us know what they are.

We're hoping this will give a clue to the underlying problem.

Problems upgrading Moodle 3.3.1

$
0
0

by Studens Noozs.  

Hello!

As my original thread was locked, I have wrote the status update here. The problem was with our custom upgrade package (problems which were happened after archiving package with incorrect syntax on -Exclude parameter) which was resolved. Therefore this was not Moodle or Moodle plugins problem.

You can close / lock this thread, too.

Thanks!


Re: Problems upgrading Moodle 3.3.1

$
0
0

by Helen Foster.  

Hello,

Good to hear that you have resolved your upgrade problem. Thanks for letting us know. smile

I'm sorry you found your original thread locked by accident. It is now unlocked so maybe you'd like to add a reply there, and then I can then delete this thread?

Re: Use of undefined constant CONTEXT_CACHE_MAX_SIZE - assumed 'CONTEXT_CACHE_MAX_SIZE

$
0
0

by Paul L.  

My mistake, years ago I commented it out from line 185 and had our own value in the config.php file, the last upgrade I did not add the setting to config.php . So I just removed my comment out.

Thank you for pointing me in the right direction.

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

$
0
0

by Paul L.  

I receive the following php warning semi regularly in our php error log:

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.


We do not use the profiler and the dll is not in our installation. Investigating further in our IIS webserver logs revealed this error seems to be originating from the cron job, this is the message from the IIS log:

php[3152]
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.
 (c:\php\php.exe  -f e:\moodle\m23\admin\cli\cron.php )


Is there a Scheduled Task that I should disable?


====environment=========

moodle 3.1.5 windows 2008r2, IIS7.5

Re: Use of undefined constant CONTEXT_CACHE_MAX_SIZE - assumed 'CONTEXT_CACHE_MAX_SIZE

$
0
0

by Howard Miller.  

(Don't modify core code wink )


Re: Error writing to database

Re: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

$
0
0

by Bret Miller.  

It's a guess, your php.ini may enable the xhprof extension and since the dll doesn't exist, you get a warning. If you comment it out of php.ini, that should end the warning.

Configuring php.ini

$
0
0

by Rachel Horst.  


I was checking my moodle version (3.1.2) & PHP environment (5.6.31) and found this warning:

PHP setting should be changed.

PHP opcode caching improves performance and lowers memory requirements, OPcache extension is recommended and fully supported.

This directed me to a page on how to configure the php.ini file. 

First question is: Where can I find the php.ini file? 


Second bigger question.... once I've found the file do I make sure it says the following (as per the instructions on the link) by adding and deleting text?:

PHP.ini settings:

[opcache]
opcache.enable = 1
opcache.memory_consumption = 64
opcache.max_accelerated_files = 8000
opcache.revalidate_freq = 60

; Required for Moodle
opcache.use_cwd = 1
opcache.validate_timestamps = 1
opcache.save_comments = 1
opcache.enable_file_override = 0

; If something does not work in Moodle
;opcache.revalidate_path = 1 ; May fix problems with include paths
;opcache.mmap_base = 0x20000000 ; (Windows only) fix OPcache crashes with event id 487

; Experimental for Moodle 2.6 and later
;opcache.fast_shutdown = 1
;opcache.enable_cli = 1 ; Speeds up CLI cron
;opcache.load_comments = 0 ; May lower memory use, might not be compatible with add-ons and other apps.


Third question. I am using a non-Windows platform. Below are instructions. Do I add that text to the bottom of the settings listed above?

When using non-Windows platforms, you have to use the zend_extension configuration to load the OPcache extension into PHP by adding to php.ini.

zend_extension=/full/path/to/opcache.so

I feel way out of my depth here! Thanks in advance for your help!!


Best,

Rachel

Re: Moodle 2.6 issues on Ubuntu 16.04

$
0
0

by Ken Kelchner.  

Matt,

Thanks for your help.  I place Moodle in maintenance mode before I copied the 2.7 files.  All I see is the message for maintenance mode.  I'm trying to disable maintenance mode with no luck.  PHP is showing version 5.6.  Did I miss something along the way?


I tried:

sudo -u apache /usr/bin/php admin/cli/maintenane.php --disable

I get:

sudo: unknown user: apache

sudo: unable to initialize policy plugin

Ken



Database server update for Moodle 3.3.1+

$
0
0

by Lalit Chandwani.  

Operating System : CENTOS

Moodle version : 3.3.1+

I am trying to install this version of moodle locally on my system. I am using XAMPP. I am getting an issue with my database server version. I dont understand why, because it is a version slightly higher. In fact if I check the database server details then it is at 10.x

Please find below Database Server Details and the Moodle Server Check error.

Please advise further on how to solve this issue.

Thank you.


Database Server Details


Moodle Server Check Error

Re: Configuring php.ini

$
0
0

by Lalit Chandwani.  

OPcache needs to first be installed in your system/server first. I have CENTOS, so this link was useful : https://www.webfoobar.com/index.php/node/31

php.ini file can be found in your server folder, it depends what you have installed. If you are using XAMPP then it is located in opt/lampp/etc

Once you install OPcache, then in php.ini you will automatically find zend_extension=[some path]. It could be commented, remove the comment and set the value to opcache.so

As far as your second question, I believe those details need to be updated in opcache.ini

Restart Apache and MySQL server and you should be good to go smile

Re: Database server update for Moodle 3.3.1+

$
0
0

by Howard Miller.  

You have the incorrect database type set in Moodle's config.php it should be 'mariadb' not 'mysql'. 

Also, I can never see the point running xampp on Linux as installing Apache/MySQL/PHP is so easy from the package manager. 


Re: Configuring php.ini

$
0
0

by Howard Miller.  

What's your operating system?  How was PHP installed?

You can actually ignore the message, however... In Moodle, if you go to Site administration > Server > PHP Info, the resulting information page show you the location of php.ini (it may be split into lots of files) right near the top. 

Re: Database server update for Moodle 3.3.1+

$
0
0

by Lalit Chandwani.  

In the moodle folder I have checked for config.php file, but there are many, how do I know which one to make the change too? 

And am I right that I am looking for the following line : $CFG->dbtype ?

Actually I recently started using Linux. So I am new to all these packages. I was aware of installing the packages myself, which I did, then I had a lot of problems setting up other things on my server, hence I changed to xampp, because the work I had to do had a deadline.


Re: Database server update for Moodle 3.3.1+

$
0
0

by Lalit Chandwani.  

I found the config.php in the moodle folder, but do not know where to make the change? I believe I should be looking for this "$CFG->dbtype" , but unable to find it.

Please let me know if I am on the right config file and if I am looking for the right thing.

Re: Using different Collation?

$
0
0

by Howard Miller.  

Ha.... I'd forgotten about that big grin

Please take a backup though. I have had several bad days over the years with MySQL collations. 

Unfortunately, I don't know anything about the Glossary problem. 

Re: Configuring php.ini

$
0
0

by Rick Jerz.  

As Howard said, you can ignore opcache and your moodle will work fine.

To find php.ini, if your moodle is running, go to Site Admin, Server, php info, and look at the 6th and 7th lines.  This shows where your php.ini is located.

Depending upon your server configuration, you might need to enable ZendOpcache for any of this to work.  Enabling ZendOpcache can be tricky, or easy depending upon your server tools and your skills at all of this.

When you can verify your php.ini location, and verify that you have enabled ZendOpcache, come back for more help.  (ZendOpcache should show in the php info webpage that shows the php.ini location (as mentioned above.)  It should appear something like my screen shot, below.

Viewing all 46897 articles
Browse latest View live


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