WordPress.org

Ready to get started?Download WordPress

Forums

Form Manager
[resolved] Fatal error: Call to a member function isDataCol() on a non-object (9 posts)

  1. JohnBoone
    Member
    Posted 2 years ago #

    Hi,

    I've got an issue with a form when I try to display submission data. I get the above error message when calling the data in the admin panel and if I try to display the data in a page, I get the first text field displayed correctly but the second field which is a text area comes up with the rest of the HTML script in it and subsequent fields are not displayed at all as it seems that the rest of the code is handled as text.

    Would you know what may cause this by any chance?

  2. hoffcamp
    Member
    Plugin Author

    Posted 2 years ago #

    The error in the admin panel is a bug, I'll have an update posted in a few minutes. And thank you for telling me about it.

    I'm not sure about the second thing. If you post a link to the page I'll take a look.

  3. JohnBoone
    Member
    Posted 2 years ago #

    Thanks for getting back to me so quickly!

    I think I found the culprit that breaks my form when I try to edit previous submissions. If I want to insert a line break in a text area, the edit form (the one you get when cliking on the edit button available for 'user profile' style forms) breaks when displaying the text area, as I explained above, the following fields are not displayed and instead the HTML script comes up in the text area as text.

    Basically if I type in:

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    data will be properly submitted to the db but the in page edit form will then be broken.

    If I replace the above by the exact same text without the line break, I get no error.

    I'd be grateful if you could take a quick look into this.

    Thanks a lot for all your hard work man.

  4. hoffcamp
    Member
    Plugin Author

    Posted 2 years ago #

    I can't get the same thing to happen on my end. What are the other fields in your form? Are you using a custom template? Also I could just register with your site and take a look at the form.
    campbellATcampbellhoffmanDOTcom.

  5. JohnBoone
    Member
    Posted 2 years ago #

    I emailed you the details, the issue comes up both with custom and default templates.

    There are 8 text fields, 1 text area and a file upload field.

  6. hoffcamp
    Member
    Plugin Author

    Posted 2 years ago #

    The problem was that for some reason the line breaks were being turned into html paragraph tags by your server, which would be fine, except that the way the form items were being displayed was choking on the html. I just posted an update that should fix this.

  7. JohnBoone
    Member
    Posted 2 years ago #

    Ok, I'll check the update. Thanks a lot for this.

    I can translate your plugin into French, would you have the list of terms that need to be translated or should I go through the php files to find those?

    I'm happy to give a hand given the amount of work you put into this plugin and how helpful it is.

  8. hoffcamp
    Member
    Plugin Author

    Posted 2 years ago #

    That would be awesome. What you do is download 'wordpress-form-manager.pot' from the /languages directory in the plugin, and then either use one of the programs listed here or just edit the text file itself. The .pot file is pretty self explanatory, it is just a list of phrases. I really appreciate the help.

  9. JohnBoone
    Member
    Posted 2 years ago #

    Great, I've put that on my to-do list, hopefully I should be able to get it done within a week.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic