PDA

View Full Version : EXIF CAPTURE DATE Destroys Template


dpbeatley
04-04-2005, 03:08 AM
Hi,
Has anyone seen this behaviour when using the <EXIF_CAPTURE_DATE> tag? See www.oreo-speaks.com/photoblog. Seems that the template breaks right after this tag is inserted. I've tried images with different camera makes etc. but the results are the same. EXIF data displays correctly if I leave the capture date out of the template or if the image does not have exif data. Seems as if there is a PHP error and the template stops processing. I have a BR tag right after the capture_date and even that HTML tag is not processed.

Clues anyone?

Connie
04-04-2005, 05:43 AM
I ran into the same situation yesterday, but I thought it is my fault and I am too tired :cry:

so it seems to be a real problem,

comando?

dpbeatley
04-04-2005, 07:02 AM
Well, then as somelse has seen the probelm, I will put my site back to normal.

GeoS
04-04-2005, 10:58 AM
Only on this EXIF tag you have problem?? Code looks fine so its hard to say where can be a problem.
Run index.php with added it at first line (after <?):

error_reporting(ALL);

And write back to us all outputed warnings/errors/... .

dpbeatley
04-09-2005, 04:44 AM
Hi,
Sorry, but the results are the same and NO error messages are displayed. I have this problem with rel 1.4 that's using the new EXIF library. Is it possible the problem is with the new library EXIF calls?

I no longer have 1.3 running so I not sure if this existed on 1.3.

raminia
04-09-2005, 06:37 AM
in the index.php find the line reads
error_reporting(0);
and change it TEMPORARY to
error_reporting(ALL);
then see if there is an error and report it.

for normal behavior of PP turn it back to
error_reporting(0);

Anonymous
04-09-2005, 06:41 AM
Hi ramina,
as I posted previously, I tried the error reporting mod and the results are the same. The html just stops generating with NO error messages. right after the EXIF_CAPTURE_DATE I have a <br /> tag and even that is lost.

I'm at a loss to explain this one :?:

GeoS
04-09-2005, 06:51 AM
And if you don't use only this one EXIF tag in your template?? What is going then??

raminia
04-09-2005, 07:03 AM
Yes! I test it and I saw the bug here. actually this is just appear in v1.4 when we decided to replace all instance of the function ereg_replace with str_replace. I'll correct this in v1.4 and you can do it on the index.php you got.
change the line reads (about line 345)
$tpl = str_replace("<EXIF_CAPTURE_DATE>",$capture_date,$tpl);
to
$tpl = ereg_replace("<EXIF_CAPTURE_DATE>",$capture_date,$tpl);
and all will be ok:)