Moodle

Can't post to any forum

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not a bug
  • Affects Version/s: 1.6
  • Fix Version/s: None
  • Component/s: Forum
  • Labels:
    None
  • Environment:
    debian "Etch" 4.0
    linux 2.6.18
    apache 2.2.3
    php 5.2.0
    mysql 5.0.32
    moodle 1.6 + (2006050506)

Description

I cannot post to any of the forums of any of the courses I administer. I get a blank page that tells me it is "Done".

This problem has been encountered by several people at other sites going back to Jan. 6, 2007. (See http://moodle.org/mod/forum/discuss.php?d=61885.)

Apparently the failure occured when PHP 5 was upgraded. So far no one has come up with a fix--other than reverting to an earlier version of PHP.

Reverting is not an accepatable solution without detailed instructions. Linux does not like to have its parts reverted. There can be hidden dependencies that need fixing. If someone has done this reversion and identified all the dependencies, we could do it with their help, but that is not a proper solution.

Unless the problem is a bug in PHP, couldn't someone fix the problem in Moodle?

I will provide an account and password by PM, if somesone wants to test our site.

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

Moodle usually works fine on PHP 5. Have you tried upgrading to the very latest Moodle 1.6.4+ ?

Show
Martin Dougiamas added a comment - Moodle usually works fine on PHP 5. Have you tried upgrading to the very latest Moodle 1.6.4+ ?
Hide
Martin Dougiamas added a comment -

Just read the forums, it's difficult to know what might be the problem with PHP 5.2.

Have you tried a Moodle 1.7 or 1.8 on your server (as a separate test install) just to see if the problem still exists? That might give us a clue.

Show
Martin Dougiamas added a comment - Just read the forums, it's difficult to know what might be the problem with PHP 5.2. Have you tried a Moodle 1.7 or 1.8 on your server (as a separate test install) just to see if the problem still exists? That might give us a clue.
Hide
Stan Armstrong added a comment -

Thanks. We are inclined to wait for Moodle's 1.8 release. One forum poster suggested that a PHP 5.2 to 5.21 upgrade might do the trick for us. tha's encouraging.

Show
Stan Armstrong added a comment - Thanks. We are inclined to wait for Moodle's 1.8 release. One forum poster suggested that a PHP 5.2 to 5.21 upgrade might do the trick for us. tha's encouraging.
Hide
Stan Armstrong added a comment -

Here is a bit about PHP from my son, Ben, who is a professional and a Debian developer. (In other words, he actually has a shot at understanding what is going on here; whereas I just muddle along).

"Well, there is a 5.2.1 upstream release, but it is unlikely to go into Debian Etch. Debian takes the stance that a stable distribution can only be stable if you don't also introduce new features when you introduce fixes. However, upstreams release both new features and fixes in the same release. Etch isn't stable yet, but it's in a "frozen" state in preparation for a stable release, so in some ways it is treated as if it were stable already. So in the latest php package, Debian has applied critical security fixes from 5.2.1 back into the 5.2.0-9 release via patches. What we don't know is if any of these fixes actually fixes our problem or not, but we should be able to upgrade shortly and find out. We just need to wait for 5.2.0-9 to migrate into Etch."

Since there are others plagued by our problem, when we get it resolved, I will post the results both here and to the original forum thread. Is that the appropriate thing to do, or would it be inappropriate cross-posting?

Show
Stan Armstrong added a comment - Here is a bit about PHP from my son, Ben, who is a professional and a Debian developer. (In other words, he actually has a shot at understanding what is going on here; whereas I just muddle along). "Well, there is a 5.2.1 upstream release, but it is unlikely to go into Debian Etch. Debian takes the stance that a stable distribution can only be stable if you don't also introduce new features when you introduce fixes. However, upstreams release both new features and fixes in the same release. Etch isn't stable yet, but it's in a "frozen" state in preparation for a stable release, so in some ways it is treated as if it were stable already. So in the latest php package, Debian has applied critical security fixes from 5.2.1 back into the 5.2.0-9 release via patches. What we don't know is if any of these fixes actually fixes our problem or not, but we should be able to upgrade shortly and find out. We just need to wait for 5.2.0-9 to migrate into Etch." Since there are others plagued by our problem, when we get it resolved, I will post the results both here and to the original forum thread. Is that the appropriate thing to do, or would it be inappropriate cross-posting?
Hide
Martin Dougiamas added a comment -

No worries, both is fine.

Show
Martin Dougiamas added a comment - No worries, both is fine.
Hide
Matteo Bertazzo added a comment -

Hi, we have recently updated our php to 5.2 and we have moodle 1.6.1. installed.
we found that we are not able to add new discussions to forum.
After doing some debugging we realized that it dies at line 277 of mod/forum/post.php

>>> if (get_field('forum', 'type', 'id', $forum) == 'news') {
(the function crashing is where_clausole() )
$forum is an object and get_filed function is not able to deal with the object.
Changing the argument $forum with $forum->id it seems working.

We did a test of the same function on a php 4.3.1: it's not crashing but $forum is handled like a string and not
like an object (so it always fails).

Show
Matteo Bertazzo added a comment - Hi, we have recently updated our php to 5.2 and we have moodle 1.6.1. installed. we found that we are not able to add new discussions to forum. After doing some debugging we realized that it dies at line 277 of mod/forum/post.php >>> if (get_field('forum', 'type', 'id', $forum) == 'news') { (the function crashing is where_clausole() ) $forum is an object and get_filed function is not able to deal with the object. Changing the argument $forum with $forum->id it seems working. We did a test of the same function on a php 4.3.1: it's not crashing but $forum is handled like a string and not like an object (so it always fails).
Hide
Martin Dougiamas added a comment -

Hey matteo, you should up grade to 1.6.4+ or something as that was fixed long time ago.

http://moodle.cvs.sourceforge.net/moodle/moodle/mod/forum/post.php?revision=1.94.2.9&view=markup&pathrev=MOODLE_16_STABLE

Show
Martin Dougiamas added a comment - Hey matteo, you should up grade to 1.6.4+ or something as that was fixed long time ago. http://moodle.cvs.sourceforge.net/moodle/moodle/mod/forum/post.php?revision=1.94.2.9&view=markup&pathrev=MOODLE_16_STABLE
Hide
Stan Armstrong added a comment -

We upgraded to 1.71+. As expected, the problem vanished.

Show
Stan Armstrong added a comment - We upgraded to 1.71+. As expected, the problem vanished.
Hide
Dan Poltawski added a comment -

Closing this

Show
Dan Poltawski added a comment - Closing this

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: