Title: Entry Submission Count PHP code not working
Last modified: July 28, 2021

---

# Entry Submission Count PHP code not working

 *  Resolved [alexonjan](https://wordpress.org/support/users/alexonjan/)
 * (@alexonjan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/entry-submission-count-php-code-not-working/)
 * I’ve been following your guide to setup a submission count since I want to use
   it to display a different page for each person and it cycles through based on
   the current number of submissions.
    The link to the guide is: [https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/](https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/)
 * I tried adding the shortcode snippet at the bottom that’s meant to use without
   shortcode since I need to calculate the page I want to display based on the count
   but when I try to save and active the snippet I get this error message:
 * “`Uncaught Error: Call to a member function get_entries() on null in /storage/
   ssd2/972/17181972/public_html/wp-content/plugins/code-snippets/php/admin-menus/
   class-edit-menu.php(221) : eval()'d code:7 Stack trace: #0 /storage/ssd2/972/
   17181972/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-
   menu.php(221): eval() #1 /storage/ssd2/972/17181972/public_html/wp-content/plugins/
   code-snippets/php/admin-menus/class-edit-menu.php(271): Code_Snippets_Edit_Menu-
   >test_code(Object(Code_Snippet)) #2 /storage/ssd2/972/17181972/public_html/wp-
   content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(130): Code_Snippets_Edit_Menu-
   >save_posted_snippet() #3 /storage/ssd2/972/17181972/public_html/wp-content/plugins/
   code-snippets/php/admin-menus/class-edit-menu.php(107): Code_Snippets_Edit_Menu-
   >process_actions() #4 /storage/ssd2/972/17181972/public_html/wp-includes/class-
   wp-hook.php(303): Code_Snippets_Edit_Menu->load('') #5 /storage/ssd2/972/17181972/
   public_html/wp-includes/class-wp-hook.php(327): W`”
 * Any help would be greatly appreciated, thanks in advance.

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

 *  [Jade Alombro](https://wordpress.org/support/users/jadealombro/)
 * (@jadealombro)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/entry-submission-count-php-code-not-working/#post-14714019)
 * Hi [@alexonjan](https://wordpress.org/support/users/alexonjan/),
 * Thanks for writing in!
 * Please note that the code in that guide will only work for the paid version of
   WPForms since the Lite version does not have the feature to store entries.
 * But in case you have an active license subscription with us, could you submit
   a support ticket through the WPForms [account dashboard](https://wpforms.com/account/support/” rel=“noopener)
   when you have a chance?
 * From there, our support team will be able to take a closer look at your request.
 * Thanks!
 *  [Jade Alombro](https://wordpress.org/support/users/jadealombro/)
 * (@jadealombro)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/entry-submission-count-php-code-not-working/#post-14729859)
 * Hi [@alexonjan](https://wordpress.org/support/users/alexonjan/),
 * We haven’t heard back from you in about a week, so I’m going to go ahead and 
   close this thread for now. But if you’d like us to assist further, please feel
   welcome to continue the conversation.
 * Thanks!

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

The topic ‘Entry Submission Count PHP code not working’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)
 * [submission](https://wordpress.org/support/topic-tag/submission/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jade Alombro](https://wordpress.org/support/users/jadealombro/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/entry-submission-count-php-code-not-working/#post-14729859)
 * Status: resolved