ecard.php problem? ecard.php problem?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

ecard.php problem?

Started by marzinp, June 25, 2004, 10:58:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marzinp

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

Joachim Müller

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

marzinp

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!

Joachim Müller

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

marzinp

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

marzinp

#5
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

marzinp

I'm sorry, but this issue is not solved!

Thanks.
Pierre

nsitjas

I've got the same problem....

Is there an issue or a fix???

Thanx a lot.

Joachim Müller


marzinp

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?

marzinp

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!

Joachim Müller

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

marzinp

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