coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: marzinp on June 25, 2004, 10:58:12 AM

Title: ecard.php problem?
Post by: marzinp on June 25, 2004, 10:58:12 AM
I have set a coppermine gallery here:
http://marzinp.free.fr/coppermine
It really works great: thanks a lot!
After reading the different solutions about free hosted problems, I still can't get rid of my only problem!
When I send an Ecard (I allowed everybody to do so, for testing), it works (the ecard is sent)
but the next page is a "internal server error http 500" page.
I understand that it must be a free related error, but I don't know how to find the server log?
Who has any idea to start solving this "common" problem for free users?
Thanks for your nice work and for answering!
Pierre
Title: Re: ecard.php problem?
Post by: Joachim Müller on June 25, 2004, 11:19:00 AM
Try downloading the most recent version of ecards.php from the web cvs and check if this fixes your issues: http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/ecard.php

GauGau
Title: Re: ecard.php problem?
Post by: marzinp on June 25, 2004, 03:42:16 PM
I tried 1.5 and 1.6, still got the same problem...
What should I try next? I'd like to understand where could be the "bug" in ecard.php or mailer.inc.php!
I'm sure there is a way to solve that  !!!
Thanks anyway!
Title: Re: ecard.php problem?
Post by: Joachim Müller on June 26, 2004, 06:13:27 AM
it is likely that there is no bug at all in coppermine code, but that something is fishy on your server (it says "internal server error", remember). Try contacting your webhost on this issue, or browse their support/faq pages. That's one of the drawbacks of free webhosting if you ask me - you actually get what you paid for...

GauGau
Title: Re: ecard.php problem?
Post by: marzinp on June 26, 2004, 08:54:47 AM
OK, I'll try to do so. I know there is no bug in coppermine's code, that's why I wrote "bug". I also know that some php scripts succeed in sending emails from free hosted sites without any problem (ie phpbb...). I was just trying to find out how to modify coppermine's code to get it to work with free.
About your last point, it's true: you get what you paid for! Free hosting is totally free, and you get 100 Mo + php4, mySQL, etc...
Not perfect, for sure, but free!  :)
Thanks for your answers.
Pierre
Title: Re: ecard.php problem?
Post by: marzinp on June 28, 2004, 12:11:03 AM
I don't understand where this $type is defined?mailer.inc.php line 36
 $extra_headers = "From: $sender_name <$sender_email>\n" . "MIME-Version: 1.0\n" . "Content-type: $type;

I replaced it by text/html, everything went OK :D. I got a nice "Your ecard has been sent"
message instead of the "internal server error"! I still don't understand exactly why...

I thought I had the solution, but after a while, I got the server error again!!!
When I send a few ecards, going back from the error page, it happens to work sometimes, I still have to sort it out to understand what action make it work or fail..
Thanks for your help.
Pierre
Title: Re: [Solved]: ecard.php problem?
Post by: marzinp on July 01, 2004, 10:51:06 AM
I'm sorry, but this issue is not solved!

Thanks.
Pierre
Title: Re: ecard.php problem?
Post by: nsitjas on July 16, 2004, 11:00:06 AM
I've got the same problem....

Is there an issue or a fix???

Thanx a lot.
Title: Re: ecard.php problem?
Post by: Joachim Müller on July 16, 2004, 11:17:54 AM
Please take a look at http://forum.coppermine-gallery.net/index.php?topic=7990.msg35191#msg35191

GauGau
Title: Re: ecard.php problem?
Post by: marzinp on July 16, 2004, 12:26:50 PM
i've followed the link. It's a nice explanation, thanks! But in our case (I got 3 emails from people in the same trouble), the ecard is sent without any problem: the error happens afterwards, and only sometimes (most of, but not allways)! Could it be a timeout problem, or Free server not according to RFC821?
Title: Re: ecard.php problem?
Post by: marzinp on July 16, 2004, 01:17:06 PM
I just ran some ecards tests again... When I send it to some adresses, I never get any error!!!!! Why????
I also ran this script:

<?php

$email 
"toi@fai.com";
$sujet "test fonction mail()";
$corps "Je teste la fonction mail() !";

// On teste l'envoi

if(mail($email,$sujet,$corps,""))
{
echo 
"OK, Done!";
}
else
{
echo 
"Email can't be posted!";
}

?>


So mail fuction is active, am I right, code gurus?

Thanks!
Title: Re: ecard.php problem?
Post by: Joachim Müller on July 16, 2004, 01:51:34 PM
What I was suggesting in the other thread I posted a link to: we can't know, it's entirely up to your server. If it sends emails fine all the time - be happy. If it doesn't send emails ever: contact your webhost. If it sometimes works and sometimes it doesn't: contact your webhost. I understand that the recommendation "contact your webhost" is not so easy - since it's a free host, you can't expect much from support.
It has become quite obvious that free.fr is not a very reliable webhost (well, what do you expect from a free webhost?), as well as most other free webhosts that have the coppermine minumum requirements. In fact, you might not be happy with this, but after all it would be a slap in everyone's face who actually pays for webhosting if free webhosting was as good as paid webhosting...
I can understand that you want a solution for your issue, but we simply can't solve this for you (read the car/stereo example on the other thread?), sorry.

GauGau
Title: Re: ecard.php problem?
Post by: marzinp on July 16, 2004, 02:36:26 PM
Dear GauGau,

thanks for answering! I understand that the main part of the problem has to do with Free! I don't expect much reliability from them but I still thank them for giving hobbyists like me a free (mostly) working solution! Same, I thank you for your very nice work, and for giving it for free! I am just trying to understand what happens exactly and if there would be a way to turn it around modifying mailer.inc.php? The ecard is allways sent, but sometimes, the server returns a 500 error... Do you think it could have to do with a timeout issue? I also understand you probably dont have time for these kind of problems! Still, the forum is a way to get in touch with other users sharing the same issues. Maybe one will find out!?

Thanks for your kind answers,

Pierre