Discussion
IPTC ext - anyone get it to work?(back to index)i installed the "fb_ziptc.php" extention, and immediately got an error. (starting on line 13 of the code - here).
"Ôªø
Notice: Undefined index: APP13 in..../extensions/fb_iptc.php on line 13
Warning: array_keys(): The first argument should be an array in ..../extensions/fb_iptc.php on line 14
Warning: Invalid argument supplied for foreach() in ..../extensions/fb_iptc.php on line 14
Notice: Undefined variable: iptc_data in ..../extensions/fb_iptc.php on line 40
posted by
pogo on 20 Jul 05 at 4:46 AM
For starters, the file name should be
fb_ziptc.php, as this extension prefers to run last. If need be, download the ZIP file again and let me know if you get the same or any other errors.
posted by
Elwing on 20 Jul 05 at 10:12 AM
sorry about the mis- copy-paste of mine. the file name doesn't matter... i still get the error. i changed it only after trying it out directly from the ZIP file. the follow error are from the ZIP download.
Thanks.
"Ôªø
Notice: Undefined index: APP13 in ../extensions/fb_ziptc.php on line 13
Warning: array_keys(): The first argument should be an array in ../extensions/fb_ziptc.php on line 14
Warning: Invalid argument supplied for foreach() in ../extensions/fb_ziptc.php on line 14
Notice: Undefined variable: iptc_data in ../extensions/fb_ziptc.php on line 40"
posted by
pogo on 20 Jul 05 at 1:02 PM
The version currently available for download has a line break and some redundant white space removed, which might fix the appearance of garbage Ôªø characters that may be causing this error. I also added an extra check to ensure the APP13 marker exists. Try using v0.2, available
here, and double check that your host's installation of PHP has the GD library running.
posted by
Elwing on 20 Jul 05 at 2:19 PM
ok, i checked the phpinfo and the GD support is enabled, versions 2.0 or higher.
it now only has 1 line of error:
"Ôªø
Notice: Undefined variable: iptc_data in .../extensions/fb_ziptc.php on line 39"
posted by
pogo on 21 Jul 05 at 4:44 AM
Try v0.3, available now.
posted by
Elwing on 21 Jul 05 at 6:02 AM
Ôªø
Notice: Undefined variable: iptc_data in .../extensions/fb_ziptc.php on line 40
just gave it a try with v0.3... :(
posted by
pogo on 21 Jul 05 at 7:24 AM
This extension really hates you, huh? ;-) Try v0.4, available now.
posted by
Elwing on 21 Jul 05 at 8:04 AM
wow, thanks for all the attention.
the errors are gone!
but.. there is still 'garbage' on top.
Ôªø
maybe its a ghost? mocking me. v0.5?
posted by
pogo on 22 Jul 05 at 10:27 AM
Try as I might, I can't seem to duplicate this problem. You could try this trick as a workaround, though. Copy this block of code into a text editor:
<?php
function strip($buffer) {
$buffer = str_replace("Ôªø","",$buffer);
return $buffer;
}
ob_start("strip");
?>
Save this as
fb_strip.php into your extensions directory.
posted by
Elwing on 23 Jul 05 at 7:19 AM
hey hey! that works beautifully:)
is there an easy way to reverse the order? i should be able to myself...
thanks for all the tweaks!
annotation heaven.
posted by
pogo on 24 Jul 05 at 5:55 AM
Post a Reply:
(back to index)