Author Topic: cant add images  (Read 4000 times)

0 Members and 1 Guest are viewing this topic.

Offline tkerabbi

  • Pre-Newbie
  • Posts: 3
    • View Profile
cant add images
« on: October 01, 2002, 08:56:06 AM »
i get this error when i add an image...

Warning: Unable to create './../data/media/1/P5080408_JPG.jpg': No such file or directory in /home/sites/site34/web/4images/includes/upload.php on line 114

Warning: Unable to move '/tmp/phpa28628' to './../data/media/1/P5080408_JPG.jpg' in /home/sites/site34/web/4images/includes/upload.php on line 114
Image 1  
  Error uploading image file: P5080408_JPG.jpg
P5080408_JPG.jpg: Copy error. Please check the directory permissions.

No database entry!

i think i did all the chmods correctly...

also...
DB ErrorBad SQL Query SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name
            FROM 4images_images i,  4images_categories c
            LEFT JOIN 4images_users u ON (u.user_id = i.user_id)
            WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id
            ORDER BY RAND()You have an error in your SQL syntax near 'RAND()' at line 5

what does this mean?

Any ideas?

Thanks

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
cant add images
« Reply #1 on: October 01, 2002, 06:20:33 PM »
This two problems have been discussed a lot of times in the forum. Please search the forum. Try "unable AND create" and "rand AND mysql" as search words.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search