My client's site is running DT Register 3.1.5a. A user submitted an event registration, PayPal sent an email notifying my client that the user paid for the event registration, but DT Register does not show any record of that user's registration.
When I set Joomla's global configuration "Debug System" to "Yes," and set DT Register's default payment option to "Test" mode, the link from PayPal's sandbox back to the site is as follows:
domain.com/components/com_dtregister/suc...emid=39&task=restore
When I clicked that link, the page at my client's site showed the following error:
Fatal error: Cannot redeclare log1() (previously declared in /path/components/com_dtregister/success.php:77) in /path/components/com_dtregister/success.php on line 84
Is this a bug? Is there anything I can do to avoid this error?
When I looked at the file mentioned in the error message, lines 77-84 read as follows:
function log1($error, $errlvl)
{
echo "<br/>".$error;
}
function log1($error, $errlvl)
{
echo "<br/>".$error;
}
That sure looks like a bug to me, and simple to fix - just delete the second function declaration. Assuming this is the right fix, I'll implement and test it.