4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: tobi23 on November 05, 2002, 07:03:32 PM
-
Hi !
Kann mir jemand helfen, der sich mit dem Batchimport auskennt ?
Ich bekomm folgende Fehlermeldung:
1 images in . Importing image 1 to 1
Import category ...
DB Error: Bad SQL Query: SELECT cat_order FROM 4_categories WHERE cat_parent_id = ORDER BY cat_order DESC LIMIT 1
You have an error in your SQL syntax near 'ORDER BY cat_order DESC LIMIT 1' at line 4
DB Error: Bad SQL Query: INSERT INTO 4_categories (cat_id, cat_name, cat_description, cat_parent_id, cat_order, auth_viewcat, auth_viewimage, auth_download, auth_upload, auth_directupload, auth_vote, auth_sendpostcard, auth_readcomment, auth_postcomment) VALUES (4, '', '', , 10, 0, 0, 2, 2, 9, 0, 0, 0, 2)
You have an error in your SQL syntax near ' 10, 0, 0, 2, 2, 9, 0, 0, 0, 2)' at line 4
FAILED
1. Importing image .xftcache
Warning: Unable to create './../../data/media/4/.xftcache': No such file or directory in /usr/local/httpd/htdocs/4images/admin/plugins/batch_import.php on line 122
Copy Image: Error while copying image /.xftcache
Skipping.....
Import finished !
Warum hat der nur ein Bild erkannt ? in dem Verzeichnis waren knapp 100 Bilder !
Eine Kategorie hab ich angelegt aber im batch_importscript nicht angegeben.
Gruß
-
Bist Du sicher dass Du alles genau laut Installationsanleitung eingerichtet hast? Script an der richtigen Stelle, Pfadangabe in der Datei richtig angepasst, funktioniert sonst alles in 4images korrekt (Kategorie anlegen, Bilder uploaden)?
Jan
-
Die pfade Stimmen alle !!!
Wo wird die $cat_parent_id erstellt ? Wo bekommt das Script diese Variable her ? (Datei)
Du siehst ja in der Fehlermeldung daß die variable $cat_parent_id in der Where Klausel des 1. Selects fehlt oder nicht vorhanden ist ...
Wo ist sie ?????
Gruß
-
Die ID wird durch das Script erzeugt. Es dürfen im Ordner auf den der Pfad verweist keine Dateien liegen, sondern nur in Unterordnern die dann gleichzeitig als Kategorien importiert werden.
Jan