[Register]
Powered by Elgg

Plugins :: Blog :: forum problem....

August 06, 2007

I have just discovered a problem with community blog/forum. I can view the all the entries as a blog and create new entries OK. I can also see the forum list - but I get an unknown URL error when I try to go to an entry.

       The requested URL /mod/forum/235.html was not found on this server.

The URL in the links are of the form, for example:

This seems to be completely different from the elgg.org site where they are of the form:

I am running on two servers - one is a test install and the other my live one. The test one works but the live one doesn't! Any ideas? Also although the config.php is set to display as a forum by default they all display as blogs instead? Are these issues related?

Keywords: forum

Posted by John Hackett @ Plugins


Comments

  1. Looks like you may have missed adding the few lines to the .htaccess file???

     

    user iconTim Hawes on Monday, 06 August 2007, 14:47 UTC # |

  2. That's what I thought -  I was just checking when you replied but it is the same as on my other server (I even copied it across to make sure!): but if I enter the "corrrect" URL directly into the browser it does work so there is something amiss with the rewriting. As the rest of the install is OK can you think of any other reason why it would fail to work if the htaccess file is OK?

    user iconJohn Hackett on Monday, 06 August 2007, 14:54 UTC # |

  3. I tried copying the whole forum directory from the server when it is working to the one that isn't and it fails with a white screen! I tried running svn on the live server's forum (r101) to bring it up to r122 but there is a conflict which when I resolve leaves me with a white screen again so I have to go back to r101.

    Help!

    user iconJohn Hackett on Monday, 06 August 2007, 16:13 UTC # |

  4. I've fixed it but is it a kludge, Tim. In forum.php (about line 121) there are the links to the full discussions and comments in the table. What works on one install does not seem to work on the other!

    What works for me on my live server is the following:

    $body .= "

    <tr scope=\"row\">
    <td><a href=\"forum_view_thread.php?post=". $post->ident . "\"title=\"" . __gettext("View full discussion...") . "\">" . $post->title . "</a></td>
    <td class=\"cent\"><a href=\"" . $CFG->wwwroot . user_info("username",$post->owner) . "/" . "\" title=\"" . __gettext("View profile...") . "\">" . user_info("name",$post->owner) . "</a></td>
    <td class=\"cent\"><a href=\"forum_view_thread.php?post=" . $post->ident . "\" title=\"" . __gettext("View comments...") . "\">" . $numberofcomments . "</a></td>

    </tr>";

    No idea why this and the other doesn't but isn't it strange to have one cell (the main discussion) which is rewritten on the other (to the comments) not? Now in my version both links have the same structure.

    It seems to work - but I'd like to know why!?

    user iconJohn Hackett on Monday, 06 August 2007, 16:49 UTC # |

  5. Here:  href=\"forum_view_thread.php?post="

    It use relative url's. So in the main list it's ok, but when you enter a discussion the url is something like mod/forum/forum_view... and the the link appears as mod/forum/id.html

    But this should work anyway if you put in your .htaccess the lines as say in the readme. 

    user iconRolando Espinoza La Fuente on Monday, 06 August 2007, 17:55 UTC # |

  6. I had the same problem... copied all the .htaccess stuff, double and triple checked it and still nothing... but the code posted above in post #4 worked, so thanks!

    user iconAstarte on Wednesday, 05 September 2007, 19:50 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg