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

Re: Moodle shows code instead of Homepage

$
0
0
by Visvanath Ratnaweera.  

If you like to go step-by-step:
- Put a test.html file next to the index.php shown to you. Then visit yoursite/test.html. The HTML content of that file should be rendered and displayed.

- Put a single liner
<?php phpinfo(); ?>
in a file named phpinfo.php in the same place and visit yoursite/phpinfo.php. It should display a very long page!

@Documenters: Maybe something at the beginning of Installing Moodle?

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

Hi Visvanath, Thanks for your input I managed to fix it. the path /var/www/html/moodle/admin/cli/cron.php was incorrect I had to give the right path. It is running now.

Re: Cron job setup not working

$
0
0
by Visvanath Ratnaweera.  

I don't know where this habit of > /var/log/moodle-cron.log and its various variations come from. Just skip the whole thing and the logs are mailed to the owner of the crontab, in your case www-data. In which case you'd have seen the error message.

On top of that the logs will be nicely separated and time stamped one report per minute rather than one single file or overwriting it each time as in your case.

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

Thanks! Noticing that following 'failed' entries'

Execute scheduled task: Send failed login notifications (core\task\send_failed_login_notifications_task)
... started 12:59:01. Current memory use 21.3 MB.
... used 0 dbqueries
... used 5.6028366088867E-5 seconds
Scheduled task complete: Send failed login notifications (core\task\send_failed_login_notifications_task)
Execute scheduled task: Legacy cron processing for plugins (core\task\legacy_plugin_cron_task)
... started 12:59:01. Current memory use 21.3 MB.

For one particular lesson getting the error

$
0
0
by Binoy Chacko.  

For one particular lesson getting the error. I have tried relogging in also restarted the server. But the error does not seem to go way. 

Attached is the screenshot 

image.png

Re: Cron job setup not working

$
0
0
by Ken Task.  

We all know there is not one way to admin a Moodle server.

I proposed the redirect to OP .. not my original idea ... Steven Terrier (sp?) original poster about redirect to log file.

It's always been the recommendation that one have 2 instances of a moodle - one production and one that's a clone of production with which to tinker.   That means 2 cron jobs.   Using the recommended redirect as in docs, one is blind.   Don't have anything to look at cept the notice from moodle.

I install a thing called multitail - allows watching serveral logs in realtime ... on a server that has 4 different versions of moodle, I have redirect to a log file for each instance.   I can watch all 4 of those cron jobs at once using a log file for each instance.

Also, never thought it a good idea to send email to web service user ... besides that, it's using local host sendmail and system has an inbox size limit ... 40 M I think.  When inbox for that user reaches 40M, no more mail.

I find my method handy for sites with many courses and doing autobackups.

As usual ... to each their own! smile

'SoS', Ken

Re: Cron job setup not working

$
0
0
by Ken Task.  

Suggest you re-read that ... from what I see, it's not failing.

Scheduled task complete

Re: For one particular lesson getting the error

$
0
0
by Ken Task.  

You run multiple servers on different networks, right?

Would help to know some basic info about the server with this issue?

Moodle version is?   Which hosting?   the one with cPanel or the one where you have Webmin?   Linux distro?

Is the server the one where you were having cron issues?

Devils are always in the details!

SoS, Ken


Re: For one particular lesson getting the error

$
0
0
by Binoy Chacko.  

Thanks! this is a separate Virtual Private Server with same hosting provider. I am using Moodle 4.0.2 (Build: 20220711) with no cPanel or Webmin access and the Linux distro in Ubuntu. Getting this error when a teacher tries to comment on a particular lesson, getting this error.

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

Thanks Ken! This one ' Send failed login notifications (core\task\send_failed_login_notifications_task)
... started 12:59:01. Current memory use 21.3 MB.' It does seem to suggest that the login notifications failed...

Re: Cron job setup not working

$
0
0
by Ken Task.  

Welcome to 'below the water line' of the 'iceburg' known as moodle!

The scheduled task: send login notifications to admin level users is the task.
It shows it ran ...
It also shows: Scheduled task complete.  Didn't say error, did it?

So did you or other admins get a PM or Email showing failed logins?

You might not IF there were no failed logins to report!

'SoS', Ken

Re: For one particular lesson getting the error

$
0
0
by Ken Task.  

4.0.2 is no longer supported.  Site is in need of upgrading.

Suggest turning on debugging all the way to developer and try again to see what else the site might be saying!

'SoS', Ken

Re: Cron job setup not working

$
0
0
by Ken Task.  

Observation ... devils are in details.   Responses in these forums many times cannot give you exactly what you need to enter ... we don't have access to your system and you've not disclosed enough about them.

Should NOT copy and paste a suggestion ... must read suggestion and adjust to your server environment.

 My observation might be in-correct, but ....

'SoS', Ken

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

The Cron is running now, I can see that in the 'System Reports' 

image.png

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

Thanks for the questions, I noticed that emails were not being sent out with 'Outgoing email configuration' I changed a few settings, previously it was using Mail gun. I configured it to run Google SMTP. Checked test email it is working now.

Re: For one particular lesson getting the error

$
0
0
by Binoy Chacko.  

Thanks Ken. Interestingly, when I check on the Reports its showing this. 

image.png

Re: Cron job setup not working

$
0
0
by Luis de Vasconcelos.  

"Send failed login notifications " means that Moodle is sending you notifications of students who tried to login but failed because they used the wrong Moodle login credentials. It doesn't mean that the Scheduled Task is not working.

Re: Cron job setup not working

$
0
0
by Binoy Chacko.  

Thanks! this is helpful. 

Odp: Re: get_striptags() error during initial setup (Moodle 4.04

$
0
0
by Marcin Łukasik.  

I have the same problem after insertion

@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;

I received:

Warning: Undefined property: stdClass::$formatstringstriptags in /home/eimspl/public_html/wizualnie/moodle/lib/classes/formatting.php on line 390 Warning: Undefined property: stdClass::$formatstringstriptags in /home/eimspl/public_html/wizualnie/moodle/lib/classes/formatting.php on line 390
Exception - core\formatting::get_striptags(): Return value must be of type bool, null returned
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 390 of /lib/classes/formatting.php: TypeError thrown
line 119 of /lib/classes/formatting.php: call to core\formatting->get_striptags()
line 1591 of /lib/weblib.php: call to core\formatting->format_string()
line 1402 of /lib/pagelib.php: call to format_string()
line 2976 of /lib/weblib.php: call to moodle_page->set_title()
line 755 of /admin/index.php: call to redirect()
Exception - core\formatting::get_striptags(): Return value must be of type bool, null returned
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 390 of /lib/classes/formatting.php: TypeError thrown
line 119 of /lib/classes/formatting.php: call to core\formatting->get_striptags()
line 1591 of /lib/weblib.php: call to core\formatting->format_string()
line 1402 of /lib/pagelib.php: call to format_string()
line 3079 of /lib/outputrenderers.php: call to moodle_page->set_title()
line 2070 of /lib/setuplib.php: call to core_renderer->fatal_error()
line 471 of /lib/setuplib.php: call to bootstrap_renderer->__call()
line ? of unknownfile: call to default_exception_handler()

Re: Odp: Re: get_striptags() error during initial setup (Moodle 4.04

$
0
0
by Visvanath Ratnaweera.  

Really? Where else do you see, "line 390 of /lib/classes/formatting.php: TypeError thrown"?
Viewing all 47375 articles
Browse latest View live


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