Need help with POPCARD!

Hi, I made a POPCARD ecard system, but it does not work corectly. After selecting the ecard, the image in the next page does not display. Would you help me, please?

Here is the ecard system:
http://www.palantin.eu/ecard

and here is the main script:
http://www.palantin.eu/test/index.php.txt

Many thanks in advance !

And here is the error log: http://www.palantin.eu/ecard/error_log.txt

You have two errors, repeated 3 times, let’s break them down.

Error:
[15-Feb-2014 07:42:50 Europe/Bucharest] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/palantin/public_html/ecard/resources/localisations/ro_RO.php:1) in /home/palantin/public_html/ecard/index.php on line 317
Cause:
[php]// Send the browser a JPEG image header
header( “Content-Type: image/jpeg”);[/php]
Solution:
There is some kind of output happening before the script reaches here, find it and either re-arrange your code or use output buffering.

Error:
[15-Feb-2014 07:42:50 Europe/Bucharest] PHP Warning: imagejpeg(): Filename cannot be empty in /home/palantin/public_html/ecard/index.php on line 528
Cause:
[php]$filename = POPC_TEMP_DIR . md5(microtime()) . “.jpg”;[/php]
Solution:
This variable is not being populated, find out why…

Note: I haven’t read through your scripts i just looked at the error log then located the problem in your scripts.
Hope that helps.

Red :wink:

Thank you very much, Redscouse, for your help. I will try to check again the script, although I’m not a php-specialist.

Sponsor our Newsletter | Privacy Policy | Terms of Service