Multiple add creates duplicates of everything

Phoca Gallery - image gallery extension
StellaElphick
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Aug 2012, 19:43

Re: Multiple add creates duplicates of everything

Post by StellaElphick »

Hi Jan,

Just to let you know that I transferred my website from localhost (XAMPP) to a web server and everything is working OK now. Empty categories no longer produce error and I am able to multi-add without duplicates :) I had been using XAMPP v1.8.0 running PHP v5.4.4, my web server is running PHP v5.3.15.

Many thanks,

Stella
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple add creates duplicates of everything

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
mnxfiles
Phoca Member
Phoca Member
Posts: 19
Joined: 02 Apr 2011, 19:14

Re: Multiple add creates duplicates of everything

Post by mnxfiles »

Hi Jan
Thought I'd comment again since I started this thread some while ago. I am afraid the error has appeared again unfortunately (thank god for backups). It seems like the error reappears with every Phoca gallery upgrade?

Joomla 2.5.7 and Phoca 3.2.2

The positive thing is that multiple add - multiple upload function (the "new" one) seems to work perfectly also when it comes to auto resize. Great thing since I have had a lot of problems with the java uploader. Unfortunately it now creates duplicates of every image in the folder.

E.G. I have a folder with images and want to add more images to that folder. 1. I upload the new images to the folder. 2. I choose the relevant category and mark ALL the images in the folder (since it would be to complicated to only locate and mark the new ones) and press save & close. 3. duplicates are made of all the existing images :(

I guess the solution would be to only mark and save the new images. This is however a bit irritating and time consuming if you can follow?

I hope you can find a solution until then it is the hard way.

Thanks for a great extension.

/Martin
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple add creates duplicates of everything

Post by Jan »

Hi, testing now, without getting any such problem - if the filename is called the same name, it will be not more added to system.

Jan
If you find Phoca extensions useful, please support the project
E_online
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Oct 2012, 12:52

Re: Multiple add creates duplicates of everything

Post by E_online »

I came accross the following error, and ended up here
StellaElphick wrote: Warning: Creating default object from empty value in [...]\administrator\components\com_phocagallery\libraries\phocagallery\image\imagefront.php on line 433
This problem occures on PHP 5.4 because it gives a warning when creating empty objects. A simple solution would be to put

Code: Select all

line 432: $image = new StdClass();
Then the error disappears.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple add creates duplicates of everything

Post by Jan »

Hi, thank you for this info, I will add it to next release.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple add creates duplicates of everything

Post by Jan »

Hi, fixed in 3.2.3
Jan
If you find Phoca extensions useful, please support the project
Meta11icA
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 14 Aug 2015, 10:43

Re: Multiple add creates duplicates of everything

Post by Meta11icA »

I know this is an old topic, but unfortunately I have the same problem with version 3.2.8 on J 2.5.28 running on PHP 5.4.24
I have no PHP error/warning related to Phoca Gallery.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple add creates duplicates of everything

Post by Jan »

Hi, which error you exactly get (which line, which file)?

Jan
If you find Phoca extensions useful, please support the project
Meta11icA
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 14 Aug 2015, 10:43

Re: Multiple add creates duplicates of everything

Post by Meta11icA »

No error, just the issue with the duplicate images after selecting "select all" option inside the multiple add.
As I mentioned in my previous post, no PHP errors/warnings related, the only errors are related to strict standards.
Post Reply