+ Post New Thread
Results 1 to 11 of 11
Virtual Learning Platforms Thread, Moodle - RSS feeds to update automatically in Technical; Hi Guys, We are using moodle 1.9 here and have RSS feeds on a couple of pages. E.g. RSS feed ...
  1. #1

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12

    Moodle - RSS feeds to update automatically

    Hi Guys,

    We are using moodle 1.9 here and have RSS feeds on a couple of pages. E.g. RSS feed of the front page posts. These are then posted onto the school website and on digital signage around the school.

    The issue is that to get the RSS feed to update on the website we have to run the cron script manually to get it to update.

    Is there anyway this can be automated?

    Cheers

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    We run this in a batch file as a scheduled task to run every hour.

    Code:
    "C:\Program Files (x86)\PHP\v5.3\php.exe" -d memory_limit=256M D:\IIS\VLE\Public-Data\Sandbox\admin\cron.php

  3. Thanks to FN-GM from:

    tj2419 (28th May 2012)

  4. #3

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    Cool, i'll try that tomorrow. Thanks for the reply

  5. #4

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    Showing how much of a beginner i am. Can anyone show me quickly what the batch file would need to contain?

    1. File called something like moodleCron.bat
    2. Then just paste the above and change the path into the file and run it? or does it need something else?

  6. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Quote Originally Posted by tj2419 View Post
    Showing how much of a beginner i am. Can anyone show me quickly what the batch file would need to contain?

    1. File called something like moodleCron.bat
    2. Then just paste the above and change the path into the file and run it? or does it need something else?
    That is pretty much it. Is your host server running Windows?

    Thanks

  7. #6

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    Yes it is. Thanks again

  8. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Yes run it on your sevrer then. Change the path to php.exe and the location of cron.php.

    If you first run it manually you will see it do its thing. Once it works running manually then set it as a scheduled task.

  9. #8

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    Hi I just tried running it and get a php.exe - Entry Point Not Found "The procedure entry point php_set_error_handling could not be located in the dynamic link library php5.dll"

    Any ideas? Cheers

  10. #9

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    Hi Got it to run

    When running it through the web browser it only takes about 10 seconds. When running this batch file it takes a lot longer. Is this normal? Is there a way to get the command window to close automatically? I take it, it should keep scrolling down the window interspersed with </br>

    Forgive me for the questions
    Thanks

  11. #10

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    If your running it from a batch file it should just close. I am assume you ran it in the command prompt?

  12. #11

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    551
    Thank Post
    134
    Thanked 19 Times in 19 Posts
    Rep Power
    12
    I just double clicked it and it opened command prompt :S



SHARE:
+ Post New Thread

Similar Threads

  1. [CLOSED] Bug/Error: 10 Newest Threads RSS Feed not updating.
    By Shielder in forum EduGeek.net Site Problems
    Replies: 2
    Last Post: 13th September 2011, 01:08 PM
  2. RSS Feeds from Moodle
    By crc-ict in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 16th June 2010, 06:56 PM
  3. RSS Feed Moodle - link to school website
    By _techie_ in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 22nd March 2010, 07:10 PM
  4. How to update Moodle in Server 2008
    By witch in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 27th January 2010, 01:16 PM
  5. RSS Feed on a Moodle Forum?
    By FN-GM in forum Virtual Learning Platforms
    Replies: 7
    Last Post: 5th August 2009, 01:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •