PHP Error after uploading a lot of files #1173

Open
opened 2026-10-05 00:34:27 +02:00 by adam · 1 comment
Owner

I'm getting this error

Notice: Undefined offset: 71311 in D:\piwigo\include\category_cats.inc.php on line 283

Fatal error: Uncaught Error: Call to a member function get_size() on null in D:\piwigo\themes\modus\themeconf.inc.php:278 Stack trace: #0 D:\piwigo\include\functions_plugins.inc.php(214): modus_index_category_thumbnails(Array) #1 D:\piwigo\include\category_cats.inc.php(342): trigger_change('loc_end_index_c...', Array) #2 D:\piwigo\index.php(301): include('D:\\piwigo\\inclu...') #3 {main} thrown in D:\piwigo\themes\modus\themeconf.inc.php on line 278

After synchronising a folder with lots of images and videos in it.

List of installed plugins:

  • Admin Tools
  • Batch Manager, Added By
  • Color Palette
  • Community
  • Crop Image
  • Filtre fsrmp
  • jplayer
  • Manage Properties Photos
  • Memories
  • Meta Open Graph
  • Panoramas
  • Permalink Generator
  • PhotoSphere
  • Physical Photo Move
  • Presync AutoRename
  • Read Metadata
  • Rotate Image
  • SortOrders
  • stereoZoom
  • Upload 1 menu
  • Virtualize
I'm getting this error ``` Notice: Undefined offset: 71311 in D:\piwigo\include\category_cats.inc.php on line 283 Fatal error: Uncaught Error: Call to a member function get_size() on null in D:\piwigo\themes\modus\themeconf.inc.php:278 Stack trace: #0 D:\piwigo\include\functions_plugins.inc.php(214): modus_index_category_thumbnails(Array) #1 D:\piwigo\include\category_cats.inc.php(342): trigger_change('loc_end_index_c...', Array) #2 D:\piwigo\index.php(301): include('D:\\piwigo\\inclu...') #3 {main} thrown in D:\piwigo\themes\modus\themeconf.inc.php on line 278 ``` After synchronising a folder with lots of images and videos in it. List of installed plugins: - Admin Tools - Batch Manager, Added By - Color Palette - Community - Crop Image - Filtre fsrmp - jplayer - Manage Properties Photos - Memories - Meta Open Graph - Panoramas - Permalink Generator - PhotoSphere - Physical Photo Move - Presync AutoRename - Read Metadata - Rotate Image - SortOrders - stereoZoom - Upload 1 menu - Virtualize <!-- github-sync-id:818538082 -->
Author
Owner

I've got the same thing. I installed Piwigo and added 120,000 images, and am getting the same error. Here are some more details:

themes/modus/themeconf.inc.php:277 is accessing $item['representative']['src_image'] without checking if $item['representative'] is an array. In this case, $item['representative'] is null. (at least, according to xdebug/vdebug)

PHP 7.4, just a vanilla default install.

I've got the same thing. I installed Piwigo and added 120,000 images, and am getting the same error. Here are some more details: themes/modus/themeconf.inc.php:277 is accessing $item['representative']['src_image'] without checking if $item['representative'] is an array. In this case, $item['representative'] is null. (at least, according to xdebug/vdebug) PHP 7.4, just a vanilla default install. <!-- github-comment-id:803659469 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1173