1
dean_collins
RC 2.2.3 Automated email problem

I have a problem with the automated password recover email that is is sent out


Hello Dean Collins,

A web user from 68.174.172.170 has just requested a new password for your account at AussieNYmeetup.net.
You can get your new password by clicking on the link below:

/apache2-default/lostpass.php?email=dean@collins.net.pr&code=4a446

If you didn't ask for this, don't worry. Just delete this Email.

-----------
AussieNYmeetup.net (/apache2-default/)
webmaster
dean@collins.net.pr



1/ it is showing /apache2-default/ etc etc
2/ the link isn't complete because the domain isn't actually listed.

How do i get around this?

Cheers,
Dean
My Xoops site
www.aussienymeetup.net

2
Mithrandir
Re: RC 2.2.3 Automated email problem

We are looking into a solution for this problem.

I have a nagging suspicion that I have made a booger in the code that detects whether the XOOPS_URL constant is relative or absolute.

If you are up for this, could you try changing:
if (!strpos(XOOPS_URL"http")) {
        
//Relative URL used, calculate absolute URL
        
$protocol strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0strpos($_SERVER['SERVER_PROTOCOL'], "/"0)));
        
define("XOOPS_ABS_URL"$protocol."://".$_SERVER['HTTP_HOST'].XOOPS_URL);
    }
    else {
        
define("XOOPS_ABS_URL"XOOPS_URL);
    }

to
[color=ff0000]if (!(strpos(XOOPS_URL"http") == 0)) {[/color]
        
//Relative URL used, calculate absolute URL
        
$protocol strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0strpos($_SERVER['SERVER_PROTOCOL'], "/"0)));
        
define("XOOPS_ABS_URL"$protocol."://".$_SERVER['HTTP_HOST'].XOOPS_URL);
    }
    else {
        
define("XOOPS_ABS_URL"XOOPS_URL);
    }

in include/common.php around the middle of the file?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
dean_collins
Re: RC 2.2.3 Automated email problem

Nope, sorry made the change this was the followup email.
Was I supposed to do anything once I made the change? I rebooted the server just in case.

Cheers,
dean




Hello Dean Collins,

A web user from 68.174.172.170 has just requested a new password for your account at AussieNYmeetup.net.
You can get your new password by clicking on the link below:

/apache2-default/lostpass.php?email=dean@collins.net.pr&code=4a446

If you didn't ask for this, don't worry. Just delete this Email.

-----------
AussieNYmeetup.net (/apache2-default/)
webmaster
dean@collins.net.pr
My Xoops site
www.aussienymeetup.net

4
Mithrandir
Re: RC 2.2.3 Automated email problem

OK, solution is not as simple as I had hoped.

Will investigate in more detail - won't be today, I'm afraid.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

5
dean_collins
Re: RC 2.2.3 Automated email problem

is this problem goign to be the same for 2.2?

if so should I just install an older version, this is a new site, no content in there at the moment with all of the problems I think i should just use 2.2 or 2.013

Dean
My Xoops site
www.aussienymeetup.net

6
dean_collins
Re: RC 2.2.3 Automated email problem

any thoughts?

Should I downgrade? I noticed someone posted instructions how to downgrade from 2.2.3 to 2.2.2 as this is a new install I used the 2.2.3 zip, would this downgrade still work for me?

TIA,
Dean
My Xoops site
www.aussienymeetup.net

7
Jean-Chris
Re: RC 2.2.3 Automated email problem
  • 2005/9/8 17:31

  • Jean-Chris

  • Just popping in

  • Posts: 1

  • Since: 2005/9/8 1


Hello,

I had another related problem. In the first situation, I had double www.my_domain_name.com in activation link.
I tried to change those lines and it solved this problem.
But I still get double "http://".
So the link is still unusable. :(

Does anyone have an idea?

Thanks


PS: This was my first post

8
dean_collins
Re: RC 2.2.3 Automated email problem

i found that in the XOOPS mainfile.php i made a mistake and left a trailing / (even though it specifically says not to).

cheers,
Dean
My Xoops site
www.aussienymeetup.net

Login

Who's Online

126 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits