Mambo BTS

This is the bug tracking and feature request tracking system for the Mambo open source CMS project. To add a new task, or comment or vote on an existing task, please register, preferably by using the same username that you use on the forums.

Please do not open tasks for bugs in versions earlier than Mambo 4.6.5.

| Tasklist |

FS#468 - Password Reminder module - PHP missing global variable declaration

Attached to Project: Mambo BTS
Opened by Kevin (weslowsk) - Monday, 02 November 2009, 01:05 GMT-4
Task Type Defect
Category Backend
Status Unconfirmed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version 4.6.5
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

in \components\com_registration\registration.php

function: sendNewPass

global: $mosConfig_mailfrom is not declared, therefore causing an error on line 92:

mosMail($mosConfig_mailfrom, $mosConfig_fromname, $confirmEmail, $subject, $message);

when attempting to request a password reminder sent to the user/email address specified.

here is the apache log file error proving the condition:

PHP Notice: Undefined variable: mosConfig_mailfrom in C:\\blah\\components\\com_registration\\registration.php on line 92, referer: http://www.example.com/index.php?option=com_registration&task=lostPassword

The fix is to add $mosConfig_mailfrom to the list of global declarations at the start of the sendNewPass function.

This task depends upon

Loading...