Title: Fatal error using [repeater]
Last modified: June 2, 2020

---

# Fatal error using [repeater]

 *  [iantresman](https://wordpress.org/support/users/iantresman/)
 * (@iantresman)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/)
 * Using a fresh WP install, I added the shortcode `[repeater]` to a new post, and
   on viewing it, I get a fatal error (Details below). I have only the Classic Editor
   installed, and nothing else (I do not have ACF installed).
 * [Fatal error screenshot here](https://ibb.co/DfXYQV1)
 * Text:
    Fatal error: Uncaught Error: Call to undefined function have_rows() in
   C:\Users\user\Local Sites\test\app\public\wp-content\plugins\custom-content-shortcode\
   includes\optional\acf.php on line 161 ( ! ) Error: Call to undefined function
   have_rows() in C:\Users\user\Local Sites\test\app\public\wp-content\plugins\custom-
   content-shortcode\includes\optional\acf.php on line 161 Call Stack # Time Memory
   Function Location 1 0.0001 413632 {main}( ) …\index.php:0 2 0.0001 413904 require(‘
   C:\Users\user\Local Sites\test\app\public\wp-blog-header.php’ ) …\index.php:17
   3 0.0514 2816608 require_once( ‘C:\Users\user\Local Sites\test\app\public\wp-
   includes\template-loader.php’ ) …\wp-blog-header.php:19 4 0.0531 2870560 include(‘
   C:\Users\user\Local Sites\test\app\public\wp-content\themes\twentytwenty\singular.
   php’ ) …\template-loader.php:106 5 0.0742 3050168 get_template_part( ) …\singular.
   php:24 6 0.0742 3050736 locate_template( ) …\general-template.php:168 7 0.0744
   3050864 load_template( ) …\template.php:672 8 0.0744 3051312 require( ‘C:\Users\
   user\Local Sites\test\app\public\wp-content\themes\twentytwenty\template-parts\
   content.php’ ) …\template.php:725 9 0.0777 3052888 the_content( ) …\content.php:
   36 10 0.0777 3052912 apply_filters( ) …\post-template.php:253 11 0.0777 3053312
   WP_Hook->apply_filters( ) …\plugin.php:206 12 0.0782 3055872 CCS_Plugin->ccs_content_filter()…\
   class-wp-hook.php:287 13 0.0782 3055872 do_ccs_shortcode( ) …\custom-content-
   shortcode.php:314 14 0.0782 3055872 do_local_shortcode( ) …\global.php:43 15 
   0.0783 3057968 preg_replace_callback ( ) …\local-shortcodes.php:243 16 0.0794
   3133424 do_local_shortcode_tag( ) …\local-shortcodes.php:243 17 0.0794 3133856
   CCS_To_ACF->loop_through_acf_field( ) …\local-shortcodes.php:363
    -  This topic was modified 5 years, 11 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).

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

 *  [codemonkeynorth](https://wordpress.org/support/users/codemonkeynorth/)
 * (@codemonkeynorth)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/#post-12941378)
 * I believe `[repeater]` is ACF-specific
 * it uses this function [https://www.advancedcustomfields.com/resources/have_rows/](https://www.advancedcustomfields.com/resources/have_rows/)
 * I guess ideally it should check for existence of the function before trying to
   use it though
 *  Thread Starter [iantresman](https://wordpress.org/support/users/iantresman/)
 * (@iantresman)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/#post-12943296)
 * In this case, I do have ACF enabled (the shortcode is ignore if it is not enabled).
   Other tags that cause fatal errors include:
    - `[flex]`
    - `[acf_gallery]`
 * So perhaps certain ACF modules need to be enabled for some shortcodes?
 *  [codemonkeynorth](https://wordpress.org/support/users/codemonkeynorth/)
 * (@codemonkeynorth)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/#post-12943675)
 * Flexible Content, Repeater and Gallery fields are all Pro features
    [https://www.advancedcustomfields.com/pro/](https://www.advancedcustomfields.com/pro/)
 * would be better if those CCS shortcodes failed silently though, if the user does
   not have Pro.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/#post-12944649)
 * Thank you for reporting this issue. Yes, this should be handled better, shortcodes
   that depend on ACF should “fail gracefully” when it’s not installed and active.
 * Will let you know when it’s solved.

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

The topic ‘Fatal error using [repeater]’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [repeater](https://wordpress.org/support/topic-tag/repeater/)

 * 4 replies
 * 3 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-using-repeater-colour/#post-12944649)
 * Status: not resolved