View Full Version : EXIF CAPTURE DATE Destroys Template
04-04-2005, 03:08 AM
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.
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,
04-04-2005, 07:02 AM
Well, then as somelse has seen the probelm, I will put my site back to normal.
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 <?):
And write back to us all outputed warnings/errors/... .
04-09-2005, 04:44 AM
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.
04-09-2005, 06:37 AM
in the index.php find the line reads
and change it TEMPORARY to
then see if there is an error and report it.
for normal behavior of PP turn it back to
04-09-2005, 06:41 AM
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 :?:
And if you don't use only this one EXIF tag in your template?? What is going then??
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);
$tpl = ereg_replace("<EXIF_CAPTURE_DATE>",$capture_date,$tpl);
and all will be ok:)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.