21
miealex
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/25 0:50

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


It really bugs me.

I have a big site that is accessed on a daily basis by ~ 100 people. I have in my db around 2000+ pictures and the site is doing great.

The problem I have is the activation link "thing". In my case it sends the activation link with the XOOPS_URL (http://allcrews.mielus.ro) doubled, like this:

http://allcrews.mielus.rohttp://allcrews.mielus.ro/modules/profile/activate.php?op=actv&id=21&actkey=1f1774fa

I noticed the site didn't get any new subscriptions about the time I upgraded from 2.2.2 to 2.2.3.

I know users registered since I have them through my inactive users (in XOOOPS' admin). I also got emails from ppl telling me that they didn't receive the activation link corectly so they aren't able to login and post in forums / add links or whatever ...

I read in the forums people who upgraded to 2.2.3 have the same problem like me but I didn't find a sollution (not in the forum and not by myself either, even thou I did try).

Did someone solved this mistery?
If not I hope it will be a patch or something really soon.

Thanks,
Alex

PS: Not only my users! I got frustrated, too, when I tried to test if the activation link is sent properly

22
JMorris
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/25 2:22

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quoted from: Activation Link fix test
Quote:

Mithrandir wrote:
First job for the beta testing team, until we get the infrastructure finalised:

Could you try replacing
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);
    }

with
if (strpos(XOOPS_URL"http") === 0) {
        
define("XOOPS_ABS_URL"XOOPS_URL);
    }
    else {
        
//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);
    }

in include/common.php (around lines 119-126)

Then see if it fixes the activation link as well as other links in emails.

Thanks


Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

23
kapeman
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/26 15:29

  • kapeman

  • Just popping in

  • Posts: 87

  • Since: 2005/5/3 1


Thanks, JMorris!

That did the trick!!

One other thing. When a user logs in for the first time after activation (admin activation in this case),
they see the following:

_US_ACTVMAILOK

24
JMorris
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/26 16:22

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


kapeman,

I believe you may have stumbled into a bug. I'm verifying it now.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

25
Mithrandir
Re: Bug on Xoops 2.2.3 - Email activation

Confirmed - bug found and fixed.
"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

26
JMorris
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/26 16:28

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


WOW that was fast! Way to go Mithrandir!
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

27
JMorris
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/9/26 16:34

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


I'm not sure if this is related or not, but when I tested the activation link, the activation success page displayed duplicate Login and Main Menu blocks.

PHP Debug Output only refers to the aforementioned bug:
Notice [PHP]: Use of undefined constant _US_YOURACCOUNT assumed '_US_YOURACCOUNT' in file modules/profile/activate.php line 71
Notice 
[PHP]: Use of undefined constant _US_ACTVMAILOK assumed '_US_ACTVMAILOK' in file modules/profile/activate.php line 76
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

28
mitsugari
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/10/30 18:38

  • mitsugari

  • Just popping in

  • Posts: 22

  • Since: 2005/8/11


I am having the problem that mails are not send at all. When I register a user everything works fine, but the activation email is not sent. PHP Debug gives no error messages.
When I want to send an email to users through the Admin Panel it doesn't work too.
I tried PHP Mail() and sendmail, with no luck. Any ideas?

Site infos:

XOOPS Version:
XOOPS 2.2.3 Final

XOOPS Theme:
custom

PHP Version:
4.3.10-16

MySQL Version:
4.1.11-Debian_4sarge2-log

Server Software:
Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16

User's Browser:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

29
Tuscany
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/10/31 2:51

  • Tuscany

  • Just popping in

  • Posts: 56

  • Since: 2005/4/19


Me too!
I made a fresh install of version 2.2.3.
When registering a user the activation mail is not sent due to an error.
But I do get the information mail that a new user has registered.
When sending the avtivation key manually from the admin panel it also works - so I guess the mail settings are ok (using SMTPauth with the appropriate Username and password)

Can someone help?

Thanx
Tus

30
Tuscany
Re: Bug on Xoops 2.2.3 - Email activation
  • 2005/10/31 2:53

  • Tuscany

  • Just popping in

  • Posts: 56

  • Since: 2005/4/19


I forgot!

I am running my own mailserver and there is not even a rejecting notice in the log. Seem that the activation mail did not reach the mail server???

Tus

Login

Who's Online

325 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 325


more...

Donat-O-Meter

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

Latest GitHub Commits