We have upgraded our build of EE to
v2.3.0
using structure.
While testing locally we’ve been able to add image to the site, and have migrated the site to the live server. However now if we try and upload an image to the site using the file manager we have a problem. After the image uploads the file manager window shows an error that reads:
A Database Error Occurred
Error Number: 1062Duplicate entry ‘0’ for key 1
INSERT INTO `exp_files` (`upload_location_id`, `site_id`, `file_name`, `mime_type`, `rel_path`, `modified_by_member_id`, `uploaded_by_member_id`, `file_size`, `file_hw_original`, `field_1_fmt`, `field_2_fmt`, `field_3_fmt`, `field_4_fmt`, `field_5_fmt`, `field_6_fmt`, `modified_date`, `status`, `title`, `upload_date`) VALUES (‘1’, ‘1’, ‘max_cooper_ep_22.jpg’, ‘image/jpeg’, ‘/srv/curestudio.com/public/htdocs/images/uploads/max_cooper_ep_22.jpg’, 1, 1, 711178.24, ‘997 980’, ‘xhtml’, ‘xhtml’, ‘xhtml’, ‘xhtml’, ‘xhtml’, ‘xhtml’, 1319305303, ‘o’, ‘max_cooper_ep_22.jpg’, 1319305303)
Filename: models/file_model.php
Line Number: 229
I’ve checked the server path in the image upload settings, which seems to be correct, and the directory permissions for the image folder and thumbnail folder are both set to 777.
The images are being uploaded to the server and i’ve tried a few different files and the error is being thrown everytime (and we can’t use the images in our posts)...
Anyone got any advice?