Awkward usage of get_string

Big Problem - eaccelerator.class.php

von PROFessor VAZZ - Brazil -
Anzahl Antworten: 12
Dear Martin,
I changed to eaccelerator, but this locked my MOODLE 1.8 with message:
Fatal error: Call to undefined function _rm() in /home/eadcom/public_html/lib/eaccelerator.class.php on line 65
Now I have a BIG PROBLEM, because my moodle is out.
How Can I go back to NONE ?
Tks a lot.
PROFessor VAZZ
Brazil
Als Antwort auf PROFessor VAZZ - Brazil

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -

As an emergency fix, you can put in your config.php file a line saying

 $CFG->rcache = false;

right after the lines that show the database connection details.

Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von PROFessor VAZZ - Brazil -
Martin,

The same problem:
Fatal error: Call to undefined function _get() in /home/eadcom/public_html/lib/eaccelerator.class.php on line 56

Tks.
PROFessor VAZZ
Brazil


<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'eadcom';
$CFG->dbuser = 'eadcom';
$CFG->dbpass = 'eadcom';
$CFG->dbpersist = false;
$CFG->prefix = '_mdl';
$CFG->rcache = false;

$CFG->wwwroot = 'http://e-ead.com';
$CFG->dirroot = '/home/eadcom/public_html';
$CFG->dataroot = '/home/eadcom/moodle-eeadcom';
$CFG->admin = 'teste';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>
Als Antwort auf PROFessor VAZZ - Brazil

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -

Try adding

  $CFG->cachetype = 'internal';
Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von PROFessor VAZZ - Brazil -
Working....

Tks..tks..tks...

PROFessor VAZZ
Brazil
professor-vazz@e-ead.com
Als Antwort auf PROFessor VAZZ - Brazil

Re: Big Problem - eaccelerator.class.php

von Marco Rojas -
Professor,

You save me from an awful night...can't thank you enough.

Thank you and thank you and thank you!
Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von David Le Blanc -
Martin,
First I wanted to offer my thanks for your suggestions in this thread. I was at my wit's end trying to figure out how to get back into my moodle after this same problem occurred for me. black eye

I wonder if you might have a suggestion about how the settings for that page should be set. I have enabled the APC module on my server but I have no idea what the settings should be for the performance page. I don't want to screw it up again but uploading of files is painful for my learners.
Als Antwort auf PROFessor VAZZ - Brazil

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -
Applied a patch to 1.8 and 1.9/HEAD to prevent Moodle from breaking if you say you have eaccelerator... and you don't. Or you did, but was disabled.

The code was catering for the situation, but there was a subtle error in the logic.

Unfortunately, APC is not supported in rcache (Moodle still takes advantage of the main aspect of APC and other precompilers... the precompiler itself!).

Does APC have shmem abilities these days? If it does, we could have a plugin - just someone needs to write it zwinkernd
Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von Anthony Borrow -
Nutzerbild von Core developers Nutzerbild von Plugin developers Nutzerbild von Testers
Martin - APC uses shmem by default. I've created MDL-11375 as a request to create the plugin. I believe this would be especially helpful considering that PHP6 plans to include APC by default. Peace - Anthony
Als Antwort auf Anthony Borrow

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -
Hmmm. Looking at http://au2.php.net/apc it looks like it offers shmem services (apc_add(), apc_store(), etc). So yep, an APC user could roll up their sleeves and add APC support.

If the semantics of the shmem API are the same as for eaccelerator, then you can probably just make a copy of the eaccelerator class and hack it till it works.
Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -
> we could have a plugin - just someone needs to write it

And I have an initial implementation of this. All I need is testers zwinkernd

http://tracker.moodle.org/browse/MDL-11375
Als Antwort auf Martín Langhoff

Re: Big Problem - eaccelerator.class.php

von Anthony Borrow -
Nutzerbild von Core developers Nutzerbild von Plugin developers Nutzerbild von Testers
Martin - Could you upload the plugin to MDL-11375 so that I can test it. Peace - Anthony
Als Antwort auf Anthony Borrow

Re: Big Problem - eaccelerator.class.php

von Martín Langhoff -