Fatal error: Call to undefined function: blocks_get_block_nam es()

Fatal error: Call to undefined function: blocks_get_block_nam es()

by David Le Blanc -
Number of replies: 4

I upgraded to Moodle 1.3 beta from 1.2 last weekend. I love it but I don't seem to be able to backup any courses. Below is the error message I receive. Does anyone know what this function is or how I might fix the error? mixed


Creating temporary structures Deleting old data Creating XML file
  • Writing header
  • Writing general info
  • Writing course data
    • Course info
      Fatal error: Call to undefined function: blocks_get_block_names() in ...
Average of ratings: -
In reply to David Le Blanc

Re: Fatal error: Call to undefined function: blocks_get_block_nam es()

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi David,

it seems that your backup script isn't able to "see" the lib/blocklib.php" file (it contains such function). Can you confirm that it's present in your server? What version (first line) ?

Anyway, I think that you can upgrade to the latest nighty version. It has a lo of bug fixes over 1.3 beta and perhaps it'll solve your problem...

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Fatal error: Call to undefined function: blocks_get_block_nam es()

by David Le Blanc -

Thanks for your help Eloy. I opened my lib.php file in the backup folder. The first line says this:

 <?PHP //$Id: lib.php,v 1.50 2004/04/18 23:20:27 stronk7 Exp $

In reply to David Le Blanc

Re: Fatal error: Call to undefined function: blocks_get_block_nam es()

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi David,

the file to see is "/lib/blocklib.php" !!

And its version should be 1.6 or later !!

Ciao smile

In reply to Eloy Lafuente (stronk7)

Re: Fatal error: Call to undefined function: blocks_get_block_nam es()

by David Le Blanc -
Eloy,

Thank you again for your help with this. After downloading the latest version of Moodle 1.3 and replacing my current installation, everything worked out fine. approve