Undefined index when rendering the gallery
-
Hi all,
after updating my core and plugins to the latest version (wp 4.5.3)
+-------------------------------+----------+--------+----------+ | name | status | update | version | +-------------------------------+----------+--------+----------+ | advanced-custom-fields | active | none | 4.4.7 | | acf-qtranslate | active | none | 1.7.9 | | akismet | active | none | 3.1.11 | | breadcrumb-navxt | active | none | 5.4.0 | | debug-bar | active | none | 0.8.4 | | debug-bar-extender | active | none | 0.5 | | developer | active | none | 1.2.6 | | disable-gravity-forms-fields | active | none | 1.3 | | duplicate-post | active | none | 2.6 | | easing-slider | active | none | 3.0.8 | | easy-noindex-and-nofollow | active | none | 1.2 | | google-sitemap-generator | active | none | 4.0.8 | | gravityforms | active | none | 2.0.2 | | improved-include-page | active | none | 99.4.7 | | log-deprecated-notices | active | none | 0.3 | | mailchimp | active | none | 1.4.5 | | nextgen-gallery-addons | active | none | 1.0.0 | | nextgen-gallery-custom-fields | active | none | 1.2.4 | | nextgen-gallery | active | none | 2.1.46 | | post-type-switcher | active | none | 2.0.1 | | qtranslate-x | active | none | 3.4.6.8 | | redirection | active | none | 2.4.5 | | simple-tags | active | none | 2.4.6 | | tinymce-advanced | active | none | 4.3.10.1 | | user-role-editor | active | none | 4.25.2 | | wp-category-archive | active | none | 1.3.0 | | wordpress-importer | active | none | 0.6.1 | | wp-migrate-db | active | none | 0.8 | | wp-video-lightbox | active | none | 1.8.1 | +-------------------------------+----------+--------+----------+
my galleries trigger notices every time I render them.
The error comes from the assumption that the
$pid
index always exists in functionnggcf_hold_field_values
.
You can fix it by editing the line 300 withif(empty($nggcf_values[$pid]) || !$nggcf_values[$pid]) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined index when rendering the gallery’ is closed to new replies.