Title: PHP Fatal error: Uncaught TypeError: explode(): Argument #2
Last modified: July 27, 2023

---

# PHP Fatal error: Uncaught TypeError: explode(): Argument #2

 *  [Zohaib Ali](https://wordpress.org/support/users/zohaibalimemonx/)
 * (@zohaibalimemonx)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-explode-argument-2/)
 * PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be
   of type string, array given in /nas/content/live/laundryladistg/wp-content/plugins/
   navz-photo-gallery/includes/render_field.php:45#012Stack trace:#012#0 /nas/content/
   live/laundryladistg/wp-content/plugins/navz-photo-gallery/includes/render_field.
   php(45): explode(‘,’, Array)#012#1 /nas/content/live/laundryladistg/wp-content/
   plugins/navz-photo-gallery/fields/acf-photo_gallery-v5.php(85): include(‘/nas/
   content/li…’)#012#2 /nas/content/live/laundryladistg/wp-includes/class-wp-hook.
   php(308): acf_field_photo_gallery->render_field(Array)#012#3 /nas/content/live/
   laundryladistg/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, 
   Array)#012#4 /nas/content/live/laundryladistg/wp-includes/plugin.php(565): WP_Hook-
   >do_action(Array)#012#5 /nas/content/live/laundryladistg/wp-content/plugins/advanced-
   custom-fields/includes/acf-hook-functions.php(113): do_action_ref_array(‘acf/
   render_fiel…’, Array)#012#6 /nas/content/live/laundryladistg/wp-includes/class-
   wp-hook.php(308): _acf_apply_hook_variations(Array)#012#7 /nas/content/live/laundryladistg/
   wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)#012#8 /nas/
   content/live/laundryladistg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#
   012#9 /nas/content/live/laundryladistg/wp-content/plugins/advanced-custom-fields/
   includes/acf-field-functions.php(807): do_action(‘acf/render_fiel…’, Array)#012#
   10 /nas/content/live/laundryladistg/wp-content/plugins/advanced-custom-fields/
   includes/acf-field-functions.php(763): acf_render_field(Array)#012#11 /nas/content/
   live/laundryladistg/wp-content/plugins/advanced-custom-fields/includes/acf-field-
   functions.php(616): acf_render_field_wrap(Array, ‘div’, ‘label’)#012#12 /nas/
   content/live/laundryladistg/wp-content/plugins/advanced-custom-fields/includes/
   forms/form-post.php(224): acf_render_fields(Array, 250, ‘div’, ‘label’)#012#13/
   nas/content/live/laundryladistg/wp-admin/includes/template.php(1445): ACF_Form_Post-
   >render_meta_box(Object(WP_Post), Array)#012#14 /nas/content/live/laundryladistg/
   wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’,
   Object(WP_Post))#012#15 /nas/content/live/laundryladistg/wp-admin/post.php(206):
   require(‘/nas/content/li…’)#012#16 {main}#012 thrown in /nas/content/live/laundryladistg/
   wp-content/plugins/navz-photo-gallery/includes/render_field.php on line 45

The topic ‘PHP Fatal error: Uncaught TypeError: explode(): Argument #2’ is closed
to new replies.

 * ![](https://ps.w.org/navz-photo-gallery/assets/icon-128x128.png?rev=2607741)
 * [ACF Photo Gallery Field](https://wordpress.org/plugins/navz-photo-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/navz-photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/navz-photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/navz-photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/navz-photo-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Zohaib Ali](https://wordpress.org/support/users/zohaibalimemonx/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-explode-argument-2/)
 * Status: not resolved