Turn editing on goes off

Turn editing on goes off

Jeff Wood發表於
Number of replies: 16
Just noticed in 1.8+ that when editing /adding resources and returning to the main course page editing is getting turned off.

Anyone else seeing this?

Jeff
評比平均分數: -
In reply to Jeff Wood

Re: Turn editing on goes off

Jon Norris發表於
My editing does not go off. I just get to a new page that goes blank
http://web3/moodle/course/modedit.php?add=forum&type=&course=4&section=2&return=0

Here is the link that I get on local host when things are going well
http://localhost/moodle/course/modedit.php?add=forum&type=&course=3&section=2&return=0

They look real similar to me.


In reply to Jon Norris

Re: Turn editing on goes off

Duarte Silvestre發表於

Hello,

I have a similar problem.

I updated our Moodle from 1.7+ to 1.8.

Now, when I want to insert or update a resource or activity I only get a blank page.


After enabled debugging level to ALL, I get the following errors:


Update or Insert a label

php[6660]; PHP Warning:  require_once(moodleform_mod.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in I:\Geral\Moodle8\mod\label\mod_form.php on line 2.
php[6660]; PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'moodleform_mod.php' (include_path='“.') in I:\Geral\Moodle8\mod\label\mod_form.php on line 2.


Update or Insert web page

php[6660]; PHP Warning:  require_once(moodleform_mod.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in I:\Geral\Moodle8\mod\resource\mod_form.php on line 2.
php[6660]; PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'moodleform_mod.php' (include_path='“.') in I:\Geral\Moodle8\mod\resource\mod_form.php on line 2.

Update ot Insert a Forum

php[6660]; PHP Warning:  require_once(moodleform_mod.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in I:\Geral\Moodle8\mod\forum\mod_form.php on line 2.
php[6660]; PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'moodleform_mod.php' (include_path='“.') in I:\Geral\Moodle8\mod\forum\mod_form.php on line 2.

Update or Insert a Chat

php[6660]; PHP Warning:  require_once(moodleform_mod.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in I:\Geral\Moodle8\mod\chat\mod_form.php on line 2.
php[6660]; PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'moodleform_mod.php' (include_path='“.') in I:\Geral\Moodle8\mod\chat\mod_form.php on line 2.

Do you have any ideias?

Thanks and Best Regards
Duarte S.

In reply to Duarte Silvestre

Re: Turn editing on goes off

H Hak發表於

Hi Duarte,

I had a similar problem when turn editing on.
I had to remove block feedback (probably old version) en reinstall the newer version. After that I didn't have any problems.

In reply to H Hak

Re: Turn editing on goes off

Jon Norris發表於
Can you explain how you did this? I share the support of our site with one of out network guys. I have the moodle side, he has the mysql side.

Your solution appears to be on my side. While this a fresh install..... what did you do?

Are you operating in a windows environment??


In reply to Jeff Wood

Re: Turn editing on goes off

H Hak發表於

Hi Jeff,

I don't know if it has anything do do with your problem but after upgrading my server Ubuntu (Debian) from 6.10 to 7.04 I had a similar problem.

I had to increase memory_limit in pHp.ini (was 128M now 384M)

My problem is solved.

In reply to H Hak

Re: Turn editing on goes off

Jeff Wood發表於
Hi Hans,

Murphy's Law - ever since I posted the issue... it hasn't happened since shy

J


In reply to Jeff Wood

Re: Turn editing on goes off

Heidi McKeague發表於

locate moodleform_mod.php and copy it to the  Program Files\Apache Group\Apache2\htdocs\moodle\mod\resource directory.  Probably not the best fix but it works now. 

In reply to Heidi McKeague

Re: Turn editing on goes off

Sergio Di Fiore發表於
I have copyed the file moodleform_mod.php to the moodle\mod\resource diretory, and it just doesn't work.

I have a fresh 1.82, in the bug tracker says it's solved, but I just can't add a new lesson!

How to solve it? sad
In reply to Jeff Wood

Re: Turn editing on goes off

Lukasz Czyzewski發表於
Hello to you all! 微笑

I've got the same problem with "Turn editing on" button. Additionally, a blank page appears when clicked on that button.

I'm using Moodle 1.8.2+ (2007021520).

This is what I get from debug mode:

Strict Standards: Creating default object from empty value in /var/www/moodle/app/theme/chameleon/config.php on line 9

Strict Standards: Redefining already defined constructor for class block_base in /var/www/moodle/app/blocks/moodleblock.class.php on line 102

Strict Standards: Non-static method block_admin_tree::preferred_width() cannot be called statically in /var/www/moodle/app/lib/blocklib.php on line 90

Strict Standards: Non-static method block_admin_tree::preferred_width() cannot be called statically in /var/www/moodle/app/lib/blocklib.php on line 90

Strict Standards: Creating default object from empty value in /var/www/moodle/app/course/lib.php on line 2208

Strict Standards: Creating default object from empty value in /var/www/moodle/app/lib/weblib.php on line 1210

Strict Standards: Creating default object from empty value in /var/www/moodle/app/lib/weblib.php on line 1210

Strict Standards: Creating default object from empty value in /var/www/moodle/app/lib/weblib.php on line 1210


Any help? Comments?

Best regards!
Lukasz Czyzewski.
In reply to Lukasz Czyzewski

Re: Turn editing on goes off

Lukasz Czyzewski發表於
Hello again!

I guess I found a solution to the problem. In my case, it was non-standard “Book” module causing all that mess. After deleting it (using “Site Administration” block) everything went back to normal.

Problems with third party code during upgrade are also mentioned here:
http://tracker.moodle.org/browse/MDL-9249


Happy Moodling everyone! wink
Lucas.

In reply to Lukasz Czyzewski

Re: Turn editing on goes off

Gary Woodard發表於
how did you determine it was a non-standard book causing it.
In reply to Gary Woodard

Re: Turn editing on goes off

Kenneth Mentor發表於
I had the same problem with the questionnaire module. After this module was deleted everything worked fine. The error message (Warning: require_once . . .) when clicking "Turn editing on" indicated the questionnaire module was being called, apparently causing an error related to lib.php on line 1462.