Page 1 of 1

PM'ing and Email from Usergroups List results in 404

Posted: Tue Apr 23, 2002 3:00 pm
by paul_kirill
Searched for this and found one topic, but I'm using 2.0 (fresh install)...

When I try to email or PM from the Group Information page, I get a a Page Not Found (404) error. When I try from the Member list - it works fine. Any ideas? Am I doing something wrong? Admin setting I missed?

Thanks!

Posted: Tue Apr 23, 2002 3:08 pm
by gameofhit
Not to sure just hearing about it... but can we get a link to your board? try out the problem ourselves?

Thanks in advance...

Posted: Tue Apr 23, 2002 3:13 pm
by paul_kirill
Sure - the link is www.kdcad.com/kdcad-bb/

Thanks!

Posted: Tue Apr 23, 2002 3:22 pm
by gameofhit
Well, the problem is this: in the usergroup panel, the links to email or pm look like this:

http://www.kdcad.com/kdcad-bb/privmsg.?mode=post&u=2

instead of:

http://www.kdcad.com/kdcad-bb/privmsg.p ... e=post&u=2

See the lack of php4 extension on the first one? Have you made any changes to your files that could have caused it to do this?

I don't think so...

Posted: Tue Apr 23, 2002 3:31 pm
by paul_kirill
But it is possible. I had to change all the file extensions to .PHP4 and in some early fit of frustration (with my lack of PHP knowledge, not with phpbb) I may have done something I shouldn't have... It was late... Do you happen know which file that bit of code can be found in? The part that says go get privmsg.php4?

Posted: Tue Apr 23, 2002 3:37 pm
by gameofhit
Okay, to change the extensions on your board from php to php4, the only things you should have done are this:
  1. Changed the line in extension.inc from

    Code: Select all

    $phpEx = "php";
    to

    Code: Select all

    $phpEx = "php4";
  2. Changed the extension on each .php file to php4
If you did anything else, that may have caused the problem.

Posted: Tue Apr 23, 2002 3:38 pm
by Black Fluffy Lion
it's a known bug I believe.

Posted: Tue Apr 23, 2002 3:40 pm
by gameofhit
Black Fluffy Lion wrote: it's a known bug I believe.


Yeps, it is a problem on my board too.

In a moment, I may have an unsupported fix if you want to try it.

I'd be glad to!

Posted: Tue Apr 23, 2002 3:46 pm
by paul_kirill
I'd appreciate any help at all! I tried adding the .php4 to the groupcp.php4 "emailer." pieces and it didn't work... But then again, I guees that's what the .$phpEx is for?

Posted: Tue Apr 23, 2002 4:00 pm
by gameofhit
Well, I know how to fix it, but it ain't easy.

There is one way to do it that is a "dirty" fix, but it's much simpler than the "real" fix. It involves hardcoding the $phpEx variable at another spot in the code, and is not something desireable. but, it fixes the problem, and you only have to add one short line of code. Just remember where it is, and remember to upgrade to the newest version as soon as it comes out.

Do you want me to hook you up with this fix? It is unsupported (i.e. use at your own risk)

I'll take the fix...

Posted: Tue Apr 23, 2002 4:28 pm
by paul_kirill
Will there be any side effects that you can think of?

Hook me up!

Thanks again for your help!

Posted: Tue Apr 23, 2002 5:35 pm
by gameofhit
Well, I was looking through the code, and trying a few things out. I found a clean solution that was even quicker than the dirty one. In fact, if I were to guess how it will be fixed in a future realease, this would be my guess:

Change this line in groupcp.php (around line 33) from:

Code: Select all

global $lang, $images, $board_config;
to:

Code: Select all

global $lang, $images, $board_config, $phpEx;
Still, use at your own risk.

Excellent!

Posted: Tue Apr 23, 2002 8:30 pm
by paul_kirill
Color my board FIXED!
And no side effects....

Thanks again for your assistance! :lol:

Posted: Tue May 14, 2002 8:00 am
by themutedtruth
i was having this same problem and now it's fixed! Thanks! I found this topic through another post someone made. Whoever that was, thank you to them too! YES!

Posted: Tue May 14, 2002 7:15 pm
by petzl
my problem is also fixed, i am happy this was the last one of the problems on my forum....

upgraded from php 1.xx

- the change user options problem
- the adding new users problem
- the avatar oploading problem
- and this PM problem