Announcement

#1 2011-03-25 16:51:34

julian
Guest

Piwigo encountered a non recoverable error

[mysql error 1062] Duplicate entry '65535' for key 'PRIMARY'

INSERT INTO piwigo_categories
  (id,dir,name,site_id,id_uppercat,uppercats,commentable,visible,status,rank,global_rank)
  VALUES('64768','Prints_Graphics','Prints Graphics','1','34011','29925,33016,34011,64768','true','true','public','11','1.5.2.11')
  , ('64769','2011-02-23','2011-02-23','1','64768','29925,33016,34011,64768,64769','true','true','public','1','1.5.2.11.1')
  , ('64770','1','1','1','64769','29925,33016,34011,64768,64769,64770','true','true','public','1','1.5.2.11.1.1')
  , ('64771','4','4','1','64769','29925,33016,34011,64768,64769,64771','true','true','public','2','1.5.2.11.1.2')
  , ('64772','2','2','1','64769','29925,33016,34011,64768,64769,64772','true','true','public','3','1.5.2.11.1.3')
  ,
--------------
etc,etc,etc,etc....



#1    my_error /var/www/include/dblayer/functions_mysql.inc.php(88)
#2    pwg_query /var/www/include/dblayer/functions_mysql.inc.php(409)
#3    mass_inserts /var/www/admin/site_update.php(314)
#4    include /var/www/admin.php(159)

 

#2 2011-03-25 17:57:53

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Piwigo encountered a non recoverable error

have you access to admin part ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2011-03-25 18:57:40

jortex696
Member
2010-05-13
62

Re: Piwigo encountered a non recoverable error

yes I'm the administrator.
This error comes when trying to synchronize a particular category in all subdirectories.

[img]http://img857.imageshack.us/i/womenr.png/[img]
http://img857.imageshack.us/i/womenr.png/

Last edited by jortex696 (2011-03-25 22:16:23)

Offline

 

#4 2011-03-25 22:45:19

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo encountered a non recoverable error

Hi jortex696,

Well done. You've reached the technical limit in the number of categories with MySQL. 65535 is the biggest number a smallint(5) unsigned can do. Let's change this to a mediumint! In your database manager, perform the following queries:

alter table piwigo_categories modify id mediumint unsigned auto_increment;
alter table piwigo_categories modify id_uppercat mediumint unsigned;
alter table piwigo_group_access modify cat_id mediumint unsigned;
alter table piwigo_history modify category_id mediumint unsigned;
alter table piwigo_image_category modify category_id mediumint unsigned;
alter table piwigo_images modify storage_category_id  mediumint unsigned;
alter table piwigo_old_permalinks modify cat_id mediumint unsigned;
alter table piwigo_user_access modify cat_id mediumint unsigned;
alter table piwigo_user_cache_categories modify cat_id mediumint unsigned;

For Piwigo 2.1 only.

Offline

 

#5 2011-03-25 23:34:36

jortex696
Member
2010-05-13
62

Re: Piwigo encountered a non recoverable error

I have piwigo 2.2 RC2.... ???

Offline

 

#6 2011-03-25 23:35:18

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo encountered a non recoverable error

jortex696 wrote:

I have piwigo 2.2 RC2.... ???

On your live website???

Offline

 

#7 2011-03-25 23:50:28

jortex696
Member
2010-05-13
62

Re: Piwigo encountered a non recoverable error

yes ... I have a site online ...
and I have another local server, which I use as backup and to test Piwigo updates.


Those interested in viewing something?
This much would have stayed with you and you giving me support?

Offline

 

#8 2011-03-26 03:52:45

jortex696
Member
2010-05-13
62

Re: Piwigo encountered a non recoverable error

plg wrote:

Hi jortex696,

Well done. You've reached the technical limit in the number of categories with MySQL. 65535 is the biggest number a smallint(5) unsigned can do. Let's change this to a mediumint! In your database manager, perform the following queries:

alter table piwigo_categories modify id mediumint unsigned auto_increment;
alter table piwigo_categories modify id_uppercat mediumint unsigned;
alter table piwigo_group_access modify cat_id mediumint unsigned;
alter table piwigo_history modify category_id mediumint unsigned;
alter table piwigo_image_category modify category_id mediumint unsigned;
alter table piwigo_images modify storage_category_id  mediumint unsigned;
alter table piwigo_old_permalinks modify cat_id mediumint unsigned;
alter table piwigo_user_access modify cat_id mediumint unsigned;
alter table piwigo_user_cache_categories modify cat_id mediumint unsigned;

For Piwigo 2.1 only.

------------------------------------------------

You've reached the technical limit in the number of categories with MySQL. 65535

categories: 65535
and
images limit?

Offline

 

#9 2011-03-27 21:08:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo encountered a non recoverable error

jortex696 wrote:

images limit?

16,777,215 (16 millions) and with the same kind of SQL queries you can move the limit to 4 billions.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact