Issue Details (XML | Word | Printable)

Key: MDL-9031
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Albert Kapune
Votes: 3
Watchers: 5
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

After pressing Button "Turn Editing On" everything vanishes

Created: 25/Mar/07 02:44 AM   Updated: 15/Oct/07 08:30 PM
Component/s: Accessibility
Affects Version/s: 1.8
Fix Version/s: None

Environment: My Provider: Linux; Apache 1.3.27; MySQL - 4.1.21-max; PHP Version 4.4.6
Issue Links:
Duplicate
 

Database: MySQL
URL: moodle.aldegym.de
Participants: Albert Kapune, André Krüger, Anthony Borrow, Martin Dougiamas, Mauno Korpelainen, Przemyslaw Stencel and Richard L. Enison
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
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.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 26/Mar/07 11:37 AM
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.


Albert Kapune added a comment - 27/Mar/07 04:16 AM
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


Albert Kapune added a comment - 29/Mar/07 04:45 AM
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


Martin Dougiamas added a comment - 29/Mar/07 10:29 AM
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?


Albert Kapune added a comment - 30/Mar/07 01:58 AM
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


Albert Kapune added a comment - 03/Apr/07 07:35 PM
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.


Anthony Borrow added a comment - 16/Apr/07 04:32 AM
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.


Anthony Borrow added a comment - 16/Apr/07 04:34 AM
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?.

Mauno Korpelainen added a comment - 18/Apr/07 02:40 AM

Przemyslaw Stencel added a comment - 12/Jul/07 06:19 PM
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...


André Krüger added a comment - 24/Jul/07 06:32 PM
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.


Richard L. Enison added a comment - 15/Oct/07 08:11 PM
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