Title: Edit gallery error
Last modified: October 15, 2021

---

# Edit gallery error

 *  Resolved [giudansky](https://wordpress.org/support/users/giudansky/)
 * (@giudansky)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/)
 * In the gallery manager: some galleries edit page works perfectly (the most recent).
   Some others (older galleries) give “TypeError thrown, Cannot access offset of
   type string on string”.
    The page giving the fatal error is admin.php?page=nggallery-
   manage-gallery&mode=edit. Not sure if it happened after a nextgen update or php
   update.
 * Please help.

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14983719)
 * Hi [@giudansky](https://wordpress.org/support/users/giudansky/),
 * Can you please let us know what PHP version are you using for your site?
 *  Thread Starter [giudansky](https://wordpress.org/support/users/giudansky/)
 * (@giudansky)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14983788)
 * Php 8.0.11
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14983975)
 * Thanks [@giudansky](https://wordpress.org/support/users/giudansky/),
 * I am wondering if you can try to temporarily switch to PHP 7.4 then check again
   to see if that changes anything. Please keep us updated on your results.
 *  Thread Starter [giudansky](https://wordpress.org/support/users/giudansky/)
 * (@giudansky)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14984947)
 * Ill try to revert back to php 7.4 in the next days, unfortunately its a live 
   site, I cant test/stress it freely.
    It’s probably going to fix that. Infact 
   I encountered the issue just right after the php 8 update. But the questions 
   are:
 * 1: Why this is involving only part of the galleries (the older ones) ?
    2: How
   can I update them so I can pass to php 8 ?
 * Thanks
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14987994)
 * Hi [@giudansky](https://wordpress.org/support/users/giudansky/),
 * This is the first time when I came across this problem so I am very unsure on
   what is happening. We don’t have any other similar reports this far so that may
   be not something that’s happening because of the PHP version and it may need 
   some deep dive into the problem.
 * We’ll be waiting on your results after temporarily switching to PHP 7.4.

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

The topic ‘Edit gallery error’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/edit-gallery-error/#post-14987994)
 * Status: resolved