Hello all,
We recently migrated our home photos site to ZenPhoto and basically everything was fine for a while, we configured a theme and uploaded our albums via FTP.
But at some point we had to physically modify the tree structure of the albums and after that an error keeps occurring when we open "albums" in the admin panel. The error is kind of random, sometimes it does appear sometimes not and it also appears on different albums. At the same time the site doesn't seem to work when accessed via the front-end yet sometimes (i suppose when the error doesn't actually occur) it manages to load properly and function until the next time you go to the root of the albums.
Here's an example of the error:
[code]Fatal error: MySQLi Error: ( INSERT INTO [prefix]albums (folder, show, mtime, title, date, parentid) VALUES ('2015/04 - April/2015-04-05 P�ques Chasse aux Oeufs', '1', '1466473461', '2015-04-05 P�ques Chasse aux Oeufs', '2016-06-21 04:44:21', '645') ) failed. MySQLi returned the error Duplicate entry '2015/04 - April/2015-04-05 P' for key 'folder' in /home/manchevi/public_html/zp-core/functions-db-MySQLi.php on line 78
[/code]
What we did try so far is to delete the whole cache folder so that the system can start fresh with the new folder tree but it doesn't seem to have fixed the problem.
On a side note, might be related or not, there's a specific folder in the cache that doesn't want to delete via FTP, saying it's not empty... but it is empty.
Any ideas?