PM'ing and Email from Usergroups List results in 404

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

PM'ing and Email from Usergroups List results in 404

Post by paul_kirill » Tue Apr 23, 2002 3:00 pm

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!

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 3:08 pm

Not to sure just hearing about it... but can we get a link to your board? try out the problem ourselves?

User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

Thanks in advance...

Post by paul_kirill » Tue Apr 23, 2002 3:13 pm

Sure - the link is www.kdcad.com/kdcad-bb/

Thanks!

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 3:22 pm

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?

User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

I don't think so...

Post by paul_kirill » Tue Apr 23, 2002 3:31 pm

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?

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 3:37 pm

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.

User avatar
Black Fluffy Lion
Former Team Member
Posts: 6057
Joined: Sat Dec 15, 2001 11:37 am

Post by Black Fluffy Lion » Tue Apr 23, 2002 3:38 pm

it's a known bug I believe.

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 3:40 pm

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.

User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

I'd be glad to!

Post by paul_kirill » Tue Apr 23, 2002 3:46 pm

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?

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 4:00 pm

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)

User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

I'll take the fix...

Post by paul_kirill » Tue Apr 23, 2002 4:28 pm

Will there be any side effects that you can think of?

Hook me up!

Thanks again for your help!

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Tue Apr 23, 2002 5:35 pm

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.

User avatar
paul_kirill
Registered User
Posts: 13
Joined: Thu Apr 18, 2002 2:39 pm
Location: Richmond, VA
Contact:

Excellent!

Post by paul_kirill » Tue Apr 23, 2002 8:30 pm

Color my board FIXED!
And no side effects....

Thanks again for your assistance! :lol:
"Like most powerful tools, when used improperly, AutoCAD can and will kill you." - MPK
www.kdcad.com/kdcad-bb

themutedtruth
Registered User
Posts: 9
Joined: Tue May 14, 2002 7:30 am
Contact:

Post by themutedtruth » Tue May 14, 2002 8:00 am

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!

User avatar
petzl
Registered User
Posts: 8
Joined: Sun May 12, 2002 11:05 pm
Location: Hasselt, Limburg, Belgium
Contact:

Post by petzl » Tue May 14, 2002 7:15 pm

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

Locked

Return to “2.0.x Support Forum”