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/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.
- The topic ‘Entry Submission Count PHP code not working’ is closed to new replies.