Moodle

After pressing Button "Turn Editing On" everything vanishes

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: Accessibility
  • Labels:
    None
  • Environment:
    My Provider: Linux; Apache 1.3.27; MySQL - 4.1.21-max; PHP Version 4.4.6
  • Database:
    MySQL
  • URL:
    moodle.aldegym.de
  • Affected Branches:
    MOODLE_18_STABLE

Description

When I try to get into the edit mode all the controls disappear and I get an empty page with the logo on top. I have to check out and log in again. I am running the actual moodle 1.8 build. An 1.7+ installation on the same machine (another domain, another database) works flawlessly.

And the actual Moodle 1.8 build on my local computer (XP SP2, Apache 2.2.4, MySQL 5.0.33, PHP 5.2.1 & PHP 4.4.5) runs without that problem.

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

I suspect an error somewhere.

Can you check the php errors log (or apache errors log?)

Also, make sure the debug mode is NOT printing errors to the page, or switch debugging off entirely.

Show
Martin Dougiamas added a comment - I suspect an error somewhere. Can you check the php errors log (or apache errors log?) Also, make sure the debug mode is NOT printing errors to the page, or switch debugging off entirely.
Hide
Albert Kapune added a comment -

I just forwarded you comment to my provider via e-mail. As soon as I receive an answer I'll send it to you.

Thank you and kind regards
Albert

Show
Albert Kapune added a comment - I just forwarded you comment to my provider via e-mail. As soon as I receive an answer I'll send it to you. Thank you and kind regards Albert
Hide
Albert Kapune added a comment -

My provider reported that he cannot find sometthing in the log files. He notices that ther could be someting wrong with line 115 in »index.php«:

$lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable;
foreach ($lt as $column) {
switch ($column) {
case 'left':
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
echo '<td style="width: '.$preferred_width_left.'px;" id="left-column">';
:
:

Kind regards,
Albert

Show
Albert Kapune added a comment - My provider reported that he cannot find sometthing in the log files. He notices that ther could be someting wrong with line 115 in »index.php«: $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable; foreach ($lt as $column) { switch ($column) { case 'left': if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { echo '<td style="width: '.$preferred_width_left.'px;" id="left-column">'; : : Kind regards, Albert
Hide
Martin Dougiamas added a comment -

I would recommend upgrading the latest 1.8 beta and seeing if the problem still exists. It's working ok for me.

1.8 is not actually released yet.

Also, what browser (type and version) are you using?

Show
Martin Dougiamas added a comment - I would recommend upgrading the latest 1.8 beta and seeing if the problem still exists. It's working ok for me. 1.8 is not actually released yet. Also, what browser (type and version) are you using?
Hide
Albert Kapune added a comment -

I just installed the actual 1.8 version. But, unfortunately, the vanishing could not be resolved. I tried out the following browsers: Opera 9.2, Firefox 2.0, and IE 7 with no difference.

Maybe this information can be useful: If I run mysql_get_client_info() on my provider's server it reports Version 3.23.58; if I check the version via phpmyadmin it returns Version 5.0.33.

Kind regards
Albert

Show
Albert Kapune added a comment - I just installed the actual 1.8 version. But, unfortunately, the vanishing could not be resolved. I tried out the following browsers: Opera 9.2, Firefox 2.0, and IE 7 with no difference. Maybe this information can be useful: If I run mysql_get_client_info() on my provider's server it reports Version 3.23.58; if I check the version via phpmyadmin it returns Version 5.0.33. Kind regards Albert
Hide
Albert Kapune added a comment -

In the meantime I noticed that a fresh 1.8 installation worked flawlessly. So I decided not to perform an upgrade of my 1.71 version. Instead a backed up the 1.71 courses and restored them on the 1.8 installation using a new database.

That process was time-consuming, but successful. Maybe there was something wrong with the old datbase that prevented from a prospering upgrade.

Show
Albert Kapune added a comment - In the meantime I noticed that a fresh 1.8 installation worked flawlessly. So I decided not to perform an upgrade of my 1.71 version. Instead a backed up the 1.71 courses and restored them on the 1.8 installation using a new database. That process was time-consuming, but successful. Maybe there was something wrong with the old datbase that prevented from a prospering upgrade.
Hide
Anthony Borrow added a comment -

When I turned on developer debug I received (on the left column):

Notice: Trying to get property of non-object in C:\Documents and Settings\aborrow\My Documents\web\moodle\18stable\blocks\site_main_menu\block_site_main_menu.php on line 93

and on a label posted on the main page I am recieving:

Notice: Trying to get property of non-object in C:\Documents and Settings\aborrow\My Documents\web\moodle\18stable\course\lib.php on line 1358

I'll continue to work at tracking this down. Peace.

Show
Anthony Borrow added a comment - When I turned on developer debug I received (on the left column): Notice: Trying to get property of non-object in C:\Documents and Settings\aborrow\My Documents\web\moodle\18stable\blocks\site_main_menu\block_site_main_menu.php on line 93 and on a label posted on the main page I am recieving: Notice: Trying to get property of non-object in C:\Documents and Settings\aborrow\My Documents\web\moodle\18stable\course\lib.php on line 1358 I'll continue to work at tracking this down. Peace.
Hide
Anthony Borrow added a comment -

FYI - I upgraded on a WAMP from 1.6+ database with questionnaire and feedback modules to 1.8+ (CVS or as close as I could get since it seemed to be hanging when I was updating). WinXP Pro, Apache 2.2.3, PHP 5.2.1, MySQL 5.1?.

Show
Anthony Borrow added a comment - FYI - I upgraded on a WAMP from 1.6+ database with questionnaire and feedback modules to 1.8+ (CVS or as close as I could get since it seemed to be hanging when I was updating). WinXP Pro, Apache 2.2.3, PHP 5.2.1, MySQL 5.1?.
Hide
Mauno Korpelainen added a comment -
Show
Mauno Korpelainen added a comment - Some more info: http://moodle.org/mod/forum/discuss.php?d=69176
Hide
Przemyslaw Stencel added a comment -

I don't know if this is the right track, but I started having the same problem EXACTLY at the time when my provider upgraded PHP to version 5.2.3 (I think it used to be 5.0)

They also upgraded php 4 to 4.4.7.

The fact that I started having those problems at exactly that time might be pure coincidence, but maybe not...

Show
Przemyslaw Stencel added a comment - I don't know if this is the right track, but I started having the same problem EXACTLY at the time when my provider upgraded PHP to version 5.2.3 (I think it used to be 5.0) They also upgraded php 4 to 4.4.7. The fact that I started having those problems at exactly that time might be pure coincidence, but maybe not...
Hide
André Krüger added a comment -

I have same problem only when I have installed additional modules.
Please check your moodle/mod - folder .

In Moodle- Version 1.6. questionnaire was in standard, not in Moodle 1.8.
When you upgrade your system and copy only config.php in new moodle- folder I have seen this problem.

Show
André Krüger added a comment - I have same problem only when I have installed additional modules. Please check your moodle/mod - folder . In Moodle- Version 1.6. questionnaire was in standard, not in Moodle 1.8. When you upgrade your system and copy only config.php in new moodle- folder I have seen this problem.
Hide
Richard L. Enison added a comment -

The notices AB reports are just that - notices, not errors. Not even warnings. They are the result of a standard programming practice in Moodle and probably many other PHP systems that create and use object properties on the fly rather than declare them in advance.. This practice would be an error in strongly-typed languages like C++ and Java, but not PHP. I would ignore them.

RLE

Show
Richard L. Enison added a comment - The notices AB reports are just that - notices, not errors. Not even warnings. They are the result of a standard programming practice in Moodle and probably many other PHP systems that create and use object properties on the fly rather than declare them in advance.. This practice would be an error in strongly-typed languages like C++ and Java, but not PHP. I would ignore them. RLE
Hide
Dan Marsden added a comment -

looks fine to me in 1.9Stable and 2.0Stable releases - if you are still having an issue with the latest 1.9stable or 2.0Stable releases, please provide more information and we can reopen this issue - thanks!

Show
Dan Marsden added a comment - looks fine to me in 1.9Stable and 2.0Stable releases - if you are still having an issue with the latest 1.9stable or 2.0Stable releases, please provide more information and we can reopen this issue - thanks!

Dates

  • Created:
    Updated:
    Resolved: