Title: PHP 8 error
Last modified: April 27, 2023

---

# PHP 8 error

 *  Resolved [franius](https://wordpress.org/support/users/franius/)
 * (@franius)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-8-error-33/)
 * Hi, upgrading php to 8.0 or 8.1 nextgen gallery generate the following error 
   on ALL post (whether or not the post contains a gallery).
   **TypeError thrown**
 * implode(): Argument #2 ($array) must be of type ?array, string given
 * I have cancelled nextgen gallery and re-installated it
 * Reverting back to php 7.4 everithig work fine.
   WordPress 6.2 (italian), NGG 3.35(
   free ver)
    -  This topic was modified 3 years, 1 month ago by [franius](https://wordpress.org/support/users/franius/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-8-error-33/#post-16694560)
 * Hi [@franius](https://wordpress.org/support/users/franius/),
 * Could you please try temporarily deactivating all of your site’s plugins excepting
   NextGen, switch to a theme from the Twenty series and upgrade to PHP 8.x to see
   if the error is still replicable?

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-8-error-33/#post-16694560)
 * Status: resolved