error blank screen

16 years 2 months ago #56999 by nlublovary
error blank screen was created by nlublovary
Hi,

Recently, I had troubles to make uddeIM work. As soon as the component has been called from the frontend, the whole website disappeared. I found out that my system was producing an error in /components/com_uddeim/includes.php, line 35, function send_mail() has been already declared by another component, mambot or whatsoever. To fix the problem I changed that line to:

if (!function_exists("send_mail")) {
function send_mail(...
...
...
}

Now it seems to work. Maybe it's not a perfect solution but it might be useful for other people.

Namaste.

[ADDED BY SLABBI]
DO NOT APPLY THIS FAULTY FIX: IT WILL BREAK EMAIL NOTIFICATIONS COMPLETELY.

PLEASE READ THE NEXT POST WHAT TO DO WHEN YOU THINK YOU HAVE FOUND A PROBLEM.

DO NOT POST RECOMMENDATIONS FOR OTHERS WHEN YOU DO NOT KNOW WHAT YOU ARE DOING.

Post edited by: slabbi, at: 2008/02/19 08:51

Please Log in to join the conversation.

16 years 2 months ago #57022 by slabbi
Replied by slabbi on topic Re:error blank screen
So you break the email notification. I doubt that the other send_mail function does the same as the function specified in uddeIM.

There are two possibilities for you:
- Remove the other component
or
- change the function name but I will NOT give support for modified components


The correct way is to open a bug report on the tracker
if you think something can be improved,

BUT NEVER EVER modify the code if you do not know what you are doing!

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.166 seconds

Facebook Twitter LinkedIn