Title: Undefined offset:
Last modified: August 30, 2016

---

# Undefined offset:

 *  Resolved [andy-absolute](https://wordpress.org/support/users/andy-absolute/)
 * (@andy-absolute)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/)
 * Hi
 * I am getting this notice on the Manage galleries page:
 * Notice: Undefined offset: 3 in /*****/wp-admin/includes/class-wp-list-table.php
   on line 993
 * – [Screenshot of the above error](http://imgur.com/rUQBSvG).
 * I have tried disabling all other plugins, and switching to one of the default
   WordPress themes, and I am still hitting this error. I followed the advice given
   in this thread.
 * Running the latest NGG plugin in WP 4.3.1 with all other plugins disabled.
 * I have dumped my server settings below.
 * Operating System : Linux (64 Bit)
    Server : nginx/1.8.0 Memory usage : 31.84 
   MByte MYSQL Version : 10.0.22-MariaDB-1~trusty SQL Mode : Not set PHP Version:
   5.6.15-1+deb.sury.org~trusty+1 PHP Safe Mode : Off PHP Allow URL fopen : On PHP
   Memory Limit : 96 PHP Max Upload Size : 25M PHP Max Post Size : 25M PCRE Backtracking
   Limit : 1000000 PHP Max Script Execute Time : 120s PHP Exif support : Yes ( V1.4)
   PHP IPTC support : Yes PHP XML support : Yes
 * Graphic Library
 * GD Version : 2.1.1-dev
    FreeType Support : Yes FreeType Linkage : with freetype
   T1Lib Support : No GIF Read Support : Yes GIF Create Support : Yes JPEG Support:
   Yes PNG Support : Yes WBMP Support : Yes XPM Support : Yes XBM Support : Yes 
   WebP Support : Yes JIS-mapped Japanese Font Support : No
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6847874)
 * [@andy-absolute](https://wordpress.org/support/users/andy-absolute/) – Are there
   any other error messages being written to your server’s error_logs that are related
   to NextGEN Gallery?
 * – Cais.
 *  Thread Starter [andy-absolute](https://wordpress.org/support/users/andy-absolute/)
 * (@andy-absolute)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6847950)
 * [@photocrati](https://wordpress.org/support/users/photocrati/) – I have had a
   look through the logs, but there are no errors that are being written.
 * On a blank WordPress install, with just NGG installed and enabled, I can create
   a gallery, but when I hit “Manage Galleries” I hit the same issue.
 * Any other ideas?
 *  Thread Starter [andy-absolute](https://wordpress.org/support/users/andy-absolute/)
 * (@andy-absolute)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6847954)
 * Just been having a look at this with one of the other devs here.
 * The cause of the issue looks to be lines 214 and 219 in manage-galleries.php.
   When they are commented out, the error goes away, and I can see a list of galleries.
   The only problem is that the column headers are not there.
 * Hope that is of some help…
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6847971)
 * [@andy-absolute](https://wordpress.org/support/users/andy-absolute/) – We’re 
   not seeing this issue anywhere else … the only thing that might be at the root
   of this from what I am seeing is possibly your nginx installation settings. Generally
   there are little to no issues running under nginx (we do test with a nginx configuration
   without issue) but some installations may need to be “tweaked” to run more correctly.
 * – Cais.
 *  [FGBmaster](https://wordpress.org/support/users/fgbmaster/)
 * (@fgbmaster)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6847999)
 * class _NGG_Galleries_List_Table extends WP_List_Table and returns (only) 3 values,
   the function print_column_headers expects 4 params
    `list( $columns, $hidden,
   $sortable, $primary ) = $this->get_column_info();` [@see](https://wordpress.org/support/users/see/)
   class-wp-list-table.php line 982: // In 4.3, we added a fourth argument for primary
   column.
 * If _NGG_Galleries_List_Table returns `return array( $columns, $hidden, $sortable,
   null );` at line 455, the php-notice is gone. Maybe there is a more useful value
   instead of null, but that’s your turn.
 * Hope this helps.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6848017)
 * [@fgbmaster](https://wordpress.org/support/users/fgbmaster/) – Thanks for sharing
   your findings! I’ll have our developers look into this further as well.
 * – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Undefined offset:’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-15/#post-6848017)
 * Status: resolved