I'm trying to import about 200+ images into my wiki. When I run the command:
php5 importImages.php ~/afcgoc.org/html/conference/2007/Photos/bak JPG
The files are not loaded and I get:
Warning: Invalid argument supplied for foreach() in /home/u7/theadmin/afcgoc.org/html/w/maintenance/importImages.php on line 47
Any ideas why/what to do?
Mike Straw wrote :
Warning: Invalid argument supplied for foreach() in /home/u7/theadmin/afcgoc.org/html/w/maintenance/importImages.php on line 47
Any ideas why/what to do?
$files is "null" because it didn't find any JPG file, try with jpg instead
On 06/06/07, Alexis Moinet alexis.moinet@fpms.ac.be wrote:
$files is "null" because it didn't find any JPG file, try with jpg instead
I'm going to gut and rewrite this script within the next 48 hours; for some reason, when I wrote it, I made some terrible design choices for which I should be beaten about the head with a large piece of wood.
Rob Church
Rob Church wrote :
On 06/06/07, Alexis Moinet alexis.moinet-LfqbaU+xhLyZIoH1IeqzKA@public.gmane.org wrote:
$files is "null" because it didn't find any JPG file, try with jpg instead
I'm going to gut and rewrite this script within the next 48 hours; for some reason, when I wrote it, I made some terrible design choices for which I should be beaten about the head with a large piece of wood.
Rob Church
A few minutes ago, you wanted to be pinched, now you want to be beaten ... :-)
That did the trick (the lowercase jpg, not the piece of wood!). Something is obviously squirrely in there, because the reason I used JPG is all the filenames in the directory are uppercase (they were uploaded by someone else from a Windows machine).
Thanks!
Mike
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Wednesday, June 06, 2007 03:38 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Need help with importImages.php
On 06/06/07, Alexis Moinet alexis.moinet@fpms.ac.be wrote:
$files is "null" because it didn't find any JPG file, try with jpg instead
I'm going to gut and rewrite this script within the next 48 hours; for some reason, when I wrote it, I made some terrible design choices for which I should be beaten about the head with a large piece of wood.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org