• Resolved slnikohamalainen

    (@slnikohamalainen)


    Hi,
    there is a bug with Submissions page when site language is not English.

    The problem is in NF_Admin_Menus_Submissions class at line 70

    /**
    	 * enqueue scripts here
    	 */
    	public function enqueue_scripts( $page ) {
    		// let's check and make sure we're on the submissions page.
    		if( isset( $page ) && "ninja-forms_page_nf-submissions" === $page ) {

    When I set site language to Finnish $page becomes ninja-lomakkeet_page_nf-submissions and Submissions page is empty.

    I’m using the latest (3.6.2) version of plugin.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Same thing happens on Danish language site – can’t access the submission page even as admin

    I can confirm this – except that the page is blank with Admin IDs regardless of which language is selected in the top bar of the page (Polylang)

    Same for me (french)
    edit : if i set wp to english, the page still empty

    • This reply was modified 3 years, 1 month ago by Olybop.

    Problem is still there with 3.6.3 version

    This may be due to the fact that as of Ninja Forms > 3.6.1, they’ve moved away from using the WordPress Posts Editor (for the custom nf_sub post type) in favor of a new custom admin page for the submissions — and somehow neglected to detail this in the release notes.

    For example, the old submissions page/editor was found at the url of /wp-admin/edit.php?post_type=nf_sub (initial page for listing all forms) OR /wp-admin/edit.php?post_status=all&post_type=nf_sub&form_id=#&nf_form_filter&paged=1 for a specific form (where # in the url is the ID related to the form)

    This update now utilizes a custom admin page at the URL of /wp-admin/admin.php?page=nf-submissions (initial page for listing all forms) OR /wp-admin/admin.php?page=nf-submissions&form_id=# for a specific form.

    Note that this new custom admin page for Ninja Forms Submissions actually utilizes ninja-forms-submissions/submissions/get REST API endpoint for populating this page with submission data, and this is where you’re likely now having issues, as the default requirements for accessing this endpoint rely on the user’s assigned role having the manage_options permission.

    You can, however, override this behavior by use of some new filters, as per: https://gist.github.com/New0/06d5b7664a8cfbb256a13bc68de0aa98#gistcomment-3931738

    Another issue I ran into was in regards to some custom metaboxes that I’ve added to the submissions post editor (via add_meta_boxes actions) no longer work, due to the wordpress post editor no longer being utilized, and instead submissions are being loading in a custom “popup modal” editor — I’m developing my own work around for this currently, which is a bit “hacky” to say the least, but is the only way I can figure out how to do so unless a developer for Ninja Forms can shed light on how to customize the submission “modals” under this new admin page.

    Hopefully this helps! It certainly threw me off last week and has taken me serveral days to adapt to this latest update of Ninja Forms (with development still ongoing) — after almost 5 years of it functioning great without any of these issues prior to this!

    I would just like to say to the developers that changes of this magnatitude should always be detailed in the release notes, so that users aren’t left scratching thier heads as to why nothing is functional like it was prior to the latest update

    • This reply was modified 3 years, 1 month ago by ouija.
    • This reply was modified 3 years, 1 month ago by ouija.

    Most of what ouija writes, makes no sense to me….

    I don’t want all kind of fancy scripts and API etc – I just want a button to press in the admin menu, so I can see all the submissions, without adding any kind of code myself.

    Just like it has worked so far

    I’m not 100% certain if this is the underlying cause of issues related to no submissions being displayed for other languages, but submissions not being displayed for me were related to admin users with any other role than “administrator”, and unfortunetly, as of Ninja Forms 3.6.1 or greater, you’ll need to add a filter to your functions.php if you too are experiencing the same issue.

    Alternativly, you could also install the User Role Editor plugin and modify whatever role you need to have this manage_options permission:

    Again, I cannot confirm if this will fix the issue with no submissions appearing for differenct languages, but this may help. Otherwise, there may be an issue with special characters being returned via the REST API method that is now being utilized, which is breaking the code from rendering (resulting in no submissions appearing)

    I am admin on the page, and as admin, i can’t see any submissions after the updates…

    I can confirm that in version 3.6.3 the problem still persists. And now this is a site with no Polylang or other language plugins in use.

    I’m not sure if this is the same problem, but downloads of form submissions with associated Stripe payments no longer include the payment data fields. As payments are sometimes incomplete or rejected, it’s important to see the payment fields in the bulk submission downloads. (Using 3.6.3)

    i downgrade to 3.6.0 and it’s working again

    Can confirm same issue as @slnikohamalainen say) on a Danish installation of WP

    Danish installaton pages use this name: ninja-formularer_page_nf-submissions
    NOT: ninja-forms_page_nf-submissions

    I fixed it on my page doing this:
    if( isset( $page ) && "ninja-".strtolower(__("Forms", 'ninja-forms'))."_page_nf-submissions" === $page ) {

    Instead of:
    if( isset( $page ) && "ninja-forms_page_nf-submissions" === $page ) {

    I am having the same issue on a website that is Danish and English. Changing the site language under Settings/General to English (UK) solves the problem.

    I also tried the code from @dicmdk and it works to.

    Hope this issue is solved by the next update.

    3.6.4 update still didn’t solve the issue.

    Are the developers even reading this page, since we haven’t seen any reply from them at any point…?

    ouija

    (@ouija)

    Yes, they do have someone reading this page — Bugfixes and releases take time, don’t be so entitled to expect an update or response asap ?? There were some major changes done recently, and unfortunetly, not all of the kinks have been worked out, apparently.

    Revert back to version 3.6.1 or earlier if need be…

    • This reply was modified 3 years ago by ouija.
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Submissions page empty’ is closed to new replies.