Author Topic: Batch import  (Read 4851 times)

0 Members and 1 Guest are viewing this topic.

Offline tobi23

  • Newbie
  • *
  • Posts: 12
    • View Profile
Batch import
« 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ß

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Batch import
« Reply #1 on: November 05, 2002, 07:25:56 PM »
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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tobi23

  • Newbie
  • *
  • Posts: 12
    • View Profile
@jan
« Reply #2 on: November 05, 2002, 07:41:11 PM »
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ß

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Batch import
« Reply #3 on: November 05, 2002, 07:46:23 PM »
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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search