Mailing List Archive

importing image from the commandline
I'm getting an error when trying to import an FLV movie via the
command line:

$ php importImages.php --user=Admin ~/my_images/
Import Images

Importing my_movie.flv.../libexec/ld-elf.so.1: /usr/local/lib/php/
20060613/fileinfo.so: Undefined symbol "php_realpath"

I was able to successfully import a .png file, but not .flv, though
$wgFileExtensions includes 'flv'. Adding --extensions=flv didn't help
either.

Any idea what this might be?

Best regards,
Richard



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: importing image from the commandline [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard K Miller wrote:
> I'm getting an error when trying to import an FLV movie via the
> command line:
>
> $ php importImages.php --user=Admin ~/my_images/
> Import Images
>
> Importing my_movie.flv.../libexec/ld-elf.so.1: /usr/local/lib/php/
> 20060613/fileinfo.so: Undefined symbol "php_realpath"

Your PHP installation is broken -- either PHP itsemf or the fileinfo
module are not properly compiled for your system.

> I was able to successfully import a .png file, but not .flv, though
> $wgFileExtensions includes 'flv'. Adding --extensions=flv didn't help
> either.
>
> Any idea what this might be?

PNG is detected more easily, and may be avoiding the particular code
paths that expose the broken PHP/module installation.

- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj+JGcACgkQwRnhpk1wk44RsACg1oQVPH9xKGAdCYoY6tqxb+Te
goEAoI9EfPGx44IgiQolwNWOjS3own9P
=uEa7
-----END PGP SIGNATURE-----

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l