WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Directory
Form editor returns blank when adding Approved option (28 posts)

  1. Cole Geissinger
    Member
    Posted 1 year ago #

    Love this plugin by the way! It covers everything I need, however while I was testing it out for the first time, I added the Directory Field "Approved", and after I clicked save, the form loads for a split second then disappears :(

    I checked the source code and it's like the whole entire DOM for the forms is removed. I can't locate and of the source code when I load the form. The form still displays as all the information is still in the database, but I can't make any edits now to the form. If I click save I get this message "Please enter a Title for this form. When adding the form to a page or post, you will have the option to hide the title." It's detecting that there's no form settings like what happens when saving a new form that hasn't been configured?

    Deactivating the plugin, the form displays again so it's definitely something with this plugin. I also deactivated all plugins bug GF and the Directory Plugin and its still doing it :( I'm running this on my local server running MAMP 2.0.5 on a MacBook Pro 15" and Gravity Forms 1.6.9

    http://wordpress.org/extend/plugins/gravity-forms-addons/

  2. Cole Geissinger
    Member
    Posted 1 year ago #

    I pushed on and fixed everything up to my liking (minus the odd disappearing form) and pushed forward with taking this to the live server and it doesn't have the same issue, although this site is still running 3.4.2... It's seems to be a 3.5 issue so far.

  3. fishy49
    Member
    Posted 1 year ago #

    Having the exact same issue. Couldn't figure out what was causing the problem until I started deactivating plugins and this one is the winner!

    Sadly there are no errors thrown and no console messages. Seems to be a JavaScript conflict that clears out the entire form from the <td> with the "pad_top" class.

    Definitely is a 3.5 problem since it worked until the update.

  4. AutomatedKid
    Member
    Posted 1 year ago #

    Ditto on the blank screen with 3.5 installed. It kinda stinks, I bought g f just so that I could use this plugin.

    Let's hope the author isn't on holiday till next year. ;(

  5. octoberblue
    Member
    Posted 1 year ago #

    The offending code is line 149 in edit-form.php.

  6. AutomatedKid007
    Member
    Posted 1 year ago #

    octoberblue,

    thanks for the update. i'm assuming we need to wait for the author?

  7. devra
    Member
    Posted 1 year ago #

    I just installed the plugin for the first time. Sounded perfect. But my form disappears after adding the Approved button as well. Hope we have a quick fix.

  8. firstep3
    Member
    Posted 1 year ago #

    Actually, this is not just related to the Approved functionality. I have two forms that are NOT using this, and my users cannot go in and edit either form. They are seeing a list of their entries, but when they click the link to go to the Single Entry page, it is completely blank. Again, neither of these forms is using the Approved functionality.

  9. Bet Hannon
    Member
    Posted 1 year ago #

    Just as an FYI for folks looking for help: we have a similar thread going on the same issue, but no answers yet.

    http://wordpress.org/support/topic/gf-directory-plugin-makes-form-editing-disappear?replies=3

  10. Cole Geissinger
    Member
    Posted 1 year ago #

    haha found the fix thanks to Octoberblue.

    It is an issue with line 149 in edit-form.php. Basically the jQuery isn't closed, so when we hit that if statement, it strips all the HTML out where our forms is. Just update the line to look like this $('td:visible:eq('+colIndex+')', $(this)).html(''));

    The developer was missing a closing parenthesis before the semi-colon. Now we just need to get him to update this simple bug ^_^

  11. Bet Hannon
    Member
    Posted 1 year ago #

    W00T! Great work, Cole! That solves the issue!

    I put a link to this post over in the support forum on Zack's website. Maybe he will see it and push out the fix, but in the meanwhile, we are back in business!

    Thanks!

  12. Cole Geissinger
    Member
    Posted 1 year ago #

    Awesome, thanks bethannon1! :)

  13. AutomatedKid
    Member
    Posted 1 year ago #

    Thanks Cole, it worked as soon as I added the closed parenthesis.

    OT: Does anyone have a simple solution on how to make the directory show listings based upon entry date, going forward where it's the same criteria, like showing listings from the last 5 days only? I see where you can put in a specific date, but I need it so as each day passes, the directory will continue to show a rolling list from the last 5 days only. Appreciate any assistance.

  14. martcol
    Member
    Posted 1 year ago #

    Well spotted Cole.

    That fixed it for me

  15. devra
    Member
    Posted 1 year ago #

    Once you make this fix, are you all seeing the Approved column (red stop signs and green check marks) on your Entries page? That is the only thing I want this plugin for, and it is not showing up. See

    http://wordpress.org/support/topic/gravity-forms-directory-plugin-approved-column-not-displaying?replies=2#post-3857634

    I'd really be interested to know if anyone is seeing this column.

    Thanks.

  16. Cole Geissinger
    Member
    Posted 1 year ago #

    This fix does not fix the approve/disapprove bug. I can try digging in and see if I can find the bug.

  17. octoberblue
    Member
    Posted 1 year ago #

    Wow, I just noticed the approve/disapprove bug and it brought me back here. ...am looking into it now. Bummer.

  18. martcol
    Member
    Posted 1 year ago #

    Oh no!

    So there's a bug there too? And I thought it was just me. Honest, the number of times I've activated/deactivated plugins and switched themes on this one the most ever.

    I have no approve option showing so, fixing this bug did not fix that.

    Martin

  19. Cole Geissinger
    Member
    Posted 1 year ago #

    Ok, running some tests, looks like I misread the jQuery a little, adding that extra parenthesis introduced the Approve/Disapprove bug. Removing that brings the options to approve/disapprove back, but the form disappears. Over all, there's something in that line that is causing some issues.

    Playing with it, just commenting out line 149 fixes both issues. I had a little bit of time to look this over but I'll be diving in further to really find the answer of what's happening here, but doing this fixes everything and I have yet to find any bugs that pop up in result of this latest "fix". Use the code below on line 149 of edit-form.php in the plugin.

    //$('td:visible:eq('+colIndex+')', $(this)).html('');

    Let me know if anyone finds anything odd that may relate to this.

  20. AutomatedKid
    Member
    Posted 1 year ago #

    Cole, it's not working on my end. As soon as I make the change (comment out) it turns one of the fields in the back end into a "check mark" (was used for a description field) on each entry and I still don't have the ability to approve/disapprove via the column.

    On a positive note: it does add the approve / un-approve via the Bulk action menu, which is nice to have.

    So the only way that works for me, is to not add the comment out to line 149, and then manually approve each entry...kinda stinks, but it does make it work.

    Regardless, thanks for the effort thus far, this plugin would be a brick without your help.

  21. Cole Geissinger
    Member
    Posted 1 year ago #

    Well, poop. Okay, we'll sort this out and hopefully the developer will turn up! If I find anything, I'll be sure to report back :)

  22. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    An update is coming soon. Please stay tuned!

  23. AutomatedKid
    Member
    Posted 1 year ago #

    Okay, where's Ashton at and why are being punked right now? lol

    Thank you Zack, I'm sure others feel the same way, we appreciate your effort to update this much needed plugin. :)

  24. Mbaas
    Member
    Posted 1 year ago #

    Hi,

    My edit-form.php doesnt seem to have that 149 line coded the way you mentioned before...

    im on WP 3.5.1 & directory add-ons 3.4.1 below is the code:

    return true;
    		    }		 <?php
    
    		 if(!function_exists('gform_get_meta')) { ?>

    above are lines 147 untill 150
    Nothing is showing up on the page where i want the directory listed, nor does it add the approval buttons to my entries.

  25. Cole Geissinger
    Member
    Posted 1 year ago #

    Mbass, the "patch" I mentioned above is no longer relavent. Zack has since updated the plugin. If you haven't updated yet, make sure you do so, this bug existed in 3.3.1 and we are now on 3.4.1. If it continues make sure he knows the problem is still present :)

    I haven't quite tested the new release so I have no info if this bug has been resolved yet :P

  26. Mbaas
    Member
    Posted 1 year ago #

    @Cole

    I am on the 3.4.1 update and the problem still exists.
    I tried deactivating, deleting, reinstalling the plugin but no luck so far.

    I even tried it on other themes,...but same result...

    I think the bug is still not fixed under WP 3.5.1

  27. ghakaf
    Member
    Posted 1 year ago #

    Same here.

    Furthermore, the directory shortcode [directory form="5"] doesn't work on my page, nothing on the page content, although I can see all the entries in the form entry view. I did exactly like the video tutorial, but I don't get any result. Also it is not clear for me how to choose between page or lightbox view.

  28. nlewin
    Member
    Posted 1 year ago #

    Hi there, is it possible to "approve" entries (through Gravity Directory) client side without having to go into an entry and edit the entry?

    I am looking for an "administrator" to check the entries and approve the entry; however the “administrator” must not have access to edit the form\entry. is this possible?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic