Support » Plugin: Tabulate » Using short code in page but WP shows a blank page

  • Resolved Paul

    (@annashandley)



    I used the short code: [tabulate table=blood] on my page but I get this when I view page: The ‘table’ attribute must be set.
    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author samwilson

    (@samwilson)

    Hi Paul,

    Thanks for reporting this!

    I’m afraid I’m not able to reproduce the error you’re getting. I can’t think of what the problem can be. Even if the table doesn’t exist, you shouldn’t get <i>that</i> particular message (it’s only shown iff the ‘table’ attribute isn’t set, as it says). Is there some strange non-standard character in place of the space between ‘tabulate’ and ‘table’? Can you try putting quotation marks around the table name, e.g. [tabulate table="blood"]? See if that helps.

    Sorry, I’m not much help am I?! But I’d love to try and track this down, with your assistance.

    Are you running the latest version of Tabulate?

    Thanks for helping!

    Paul

    (@annashandley)

    That was not the answer I was hoping for! Now instead of saying The Attribute isn’t set it just echoes the shortcode. I have tried it with single quotes and double quotes. I have even tried WPs own comments table but still nothing. πŸ™

    Plugin Author samwilson

    (@samwilson)

    Are you entering it with the plain text editor or the Wysiwyg editor? If you put in any other attribute does it work (so there’s multiple)? Are you pasting the table name in (or any other part of the string)? If so, try typing the whole thing out manually. Are other shortcodes working correctly?

    I’m about to release a new version of Tabulate. But it doesn’t change anything related to the shortcode. πŸ™ Still, might be worth upgrading, and de-/re-activating.

    Sorry for the trouble!

    Paul

    (@annashandley)

    Yeah short codes of other plugins work correctly. Say, will a user be able to do CRUD with this plugin?

    Plugin Author samwilson

    (@samwilson)

    Yep, users have whatever permissions you grant them for particular tables.

    And:

    Are you entering it with the plain text editor or the Wysiwyg editor? If you put in any other attribute does it work (so there’s multiple)? Are you pasting the table name in (or any other part of the string)? If so, try typing the whole thing out manually.

    (I’m still not able to replicate this bug. πŸ™ Sorry.)

    Paul

    (@annashandley)

    OK I am using the on-board page editor.
    I have tried it using both cut and paste and manual entry
    I have tried it using A capital first letter of table name and a lower-case table name.
    I have tried it with multiple attributes.

    Would love to get it to work. Just can’t understand why it won’t and others will πŸ™

    Paul

    (@annashandley)

    It Worked! I saw where there was a new version and I just clicked “update” and reactivated like you said. I just used [tabulate table=”blood-sugar”] and I got a list of the data in the fields. Now if I could just make it editable that would be great. Is there a full list of the shortcode attributes somewhere?

    Paul

    (@annashandley)

    πŸ™ Well it does display the table but when I tried to add format=form it crashes I did it like your documentation says. I even cut and pasted your shortcode, even typed it in myself. I am confused though. You asked if I tried it with quotes, and I have, but your docs show no quotes. Have you given up on me? πŸ™

    Plugin Author samwilson

    (@samwilson)

    Nope, haven’t given up on you! Just busy with work. πŸ™‚

    What error do you get when you use the format=form attribute?

    Plugin Author samwilson

    (@samwilson)

    (Oh, and quotes or no-quotes doesn’t matter. It should operate the same either way, and if it doesn’t then that’s a bug.)

    Paul

    (@annashandley)

    OK I got a form!
    here is my shortcode:[tabulate table=mytable format=form]

    All I got was a form though. Would I have to put another shortcode on the next line like: [tabulate table=mytable] to display the table and would it be updated each time I added something in the form?
    Thanks,
    Paul

    Plugin Author samwilson

    (@samwilson)

    Great!

    Yep, that’s basically the idea. And make sure you set the grants on that table correctly (e.g. you can let people insert new records but not update existing ones).

    Paul

    (@annashandley)

    I got it now. Thanks for bearing with me Sam! say any plans for developing a datagrid along the lines of jqGrid is there? There is only one that I know of and I don’t think it’s active.
    Thanks,
    Paul

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Using short code in page but WP shows a blank page’ is closed to new replies.