• Resolved alexonjan

    (@alexonjan)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @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 when you have a chance?

    From there, our support team will be able to take a closer look at your request.

    Thanks!

    Hi @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.