WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Created table, inserted shortcode, but nothing happens. (13 posts)

  1. sungod000
    Member
    Posted 2 years ago #

    I must be doing something obviously wrong. Here is a video of what I'm doing so you can see:

    http://screencast.com/t/S1bRugvC

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your report, and for the screencast, which nicely shows the problem! Very cool way :-)

    From what I can see, you did everything correct, and it is odd that the table is not showing - and actually that nothing is showing at the location where the table should be. Because WP-Table should actually (at least) show a message, if it encounters a problem while trying to render the table. However, in your case, the Shortcode completely vanishes...

    Now, I saw that you are using a caching plugin. Is it maybe possible that the caching plugin had already cached the previewed page? It probably does not, but it might be worth checking.
    And actually, what happens when you publish the page? Does that also not work? (If you don't want to publish that exact page, you could also try with a private page, that no one else should then see.)

    Also, this might be an issue in your theme, so that for some reason Shortcodes are not processed as intended. Can you maybe temporarily switch to the WordPress Default Theme (TwentyEleven) to see if the table is visible there?

    Regards,
    Tobias

  3. jaynee
    Member
    Posted 2 years ago #

    I'm having the same issue as the original poster. When I preview the table, it shows all my data in a beautiful table! And yet when I put the shortcode on my page and save it, I get nothing. Also, I have a few short sentences of introduction above the shortcode, and those also disappear when I save the page with the shortcode (see below).

    http://www.cootiehog.com/?page_id=7185

    I have confirmed that the theme I am using DOES support shortcodes. Also, like the first poster, I'm not getting any error codes on my page - it's just blank.

    Here's my info:
    · WP-Table Reloaded (DB): 1.9.3
    · WP-Table Reloaded (Script): 1.9.3
    · Plugin installed: 2012/01/28 16:26:30
    · WordPress: 3.3.1
    · PHP: 5.2.17
    · mySQL (Server): 5.1.60-community-log
    · mySQL (Client): 5.1.59

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi jaynee,

    thanks for your report.

    Yes, your theme does support Shortcodes just fine (I'm actually planning to use it on my new website as well :-) ).

    Now, I think the reason for your problems is different to that of the original poster. I don't know what it is though - yet.
    One symptom I can see, is that the generation of the HTML of the page just stops (before any content is printed). You can see that when viewing the page source. This usually happens when a PHP error was raised. To find out what that error is, I need to ask you to make a (temporary) small change in your wp-config.php file on your server:
    Somewhere towards the end, you should see a line like

    define('WP_DEBUG', false);

    Please edit this line and change "false" to "true".
    After making this change, the page you linked to should not just stop printing the code, but show an error message. That should tell us more about the reason for the problem.

    Regards,
    Tobias

  5. jaynee
    Member
    Posted 2 years ago #

    This is the error I got:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in
    /wp-content/plugins/wp-table-reloaded/classes/render.class.php on line 287

    Looks like my table is too big (it is 439 rows, 4 columns, text only).

  6. jaynee
    Member
    Posted 2 years ago #

    Well, I went in and shortened the table to 409 rows - that's as low as I can go, really. And still nothing.

  7. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    ah, ok. That's what I thought.

    It's not really that your table is too big, it's more that WordPress and all installed plugins are already taking up so much memory that rendering the table "pushes you over the limit". The same could have happened after installing another plugin for example, or when uploading an image.

    It should however be easy to fix this:
    Please add this line to your wp-config.php (right before the WP_DEBUG line that you just edited is a good place):

    define('WP_MEMORY_LIMIT', '64M');

    That will double the current limit from 32 megabytes to 64 megabytes, which should suffice for a while. After that, the table should be displayed just fine.
    And you can now revert WP_DEBUG to "false" again.

    Regards,
    Tobias

  8. jaynee
    Member
    Posted 2 years ago #

    WOOT! That did it! YAY! Thanks for the prompty turnaround, Tobias! Sending a few bucks to you via paypal in thanks. =)

  9. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi jaynee,

    very cool! :-) Good to hear that it works now!
    And thank you very much for the donation, it is much appreciated!

    Best wishes,
    Tobias

  10. sungod000
    Member
    Posted 2 years ago #

    Hi Tobias,
    I'm glad jaynee got sorted out. I also did, it seems the shortcode was a duplicate of the theme's.

    http://forum.mnkystudio.com/discussion/comment/2646#Comment_2646

    Thanks for your help!

  11. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for contacting the theme author!
    That definitely explains it! And I would never have found this... So, it's really great that he was able to help :-)

    Best wishes,
    Tobias

  12. dezoito
    Member
    Posted 2 years ago #

    Hi, first of all I really like your plug-in, the plug-in is pretty straight forward.

    The table page looks pretty fine while editing, but when opening directly on my browser online calling the page where the problem resides;
    ( http://www.pedivelabikes.com.br/site )
    I get an error message with:
    "The page at pedivelabikes.com.br says:
    DataTables warning (table id = 'wp-table-reloaded-id-1-no-1'): Requested unknown parameter '1' from the data source for row 1"

    My idea is to call this table from a regular page (not wordpress), but in that case, the link to that page is simply ignored.

    Thanks in advance.
    David.

  13. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi David,

    thanks for your question.

    This error message is raised as you have enabled the usage of the JavaScript library on this table, and at the same time are using #colspan# in some cells. This is not supported by the library unfortunately.
    You will need to uncheck the "Use JavaScript library" checkbox on the table's "Edit" screen. The error will then disappear.

    I'm not sure what you are describing in your idea, in the last paragraph. Can you explain that in detail again? (Or is this related to the problem with the error message?)

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic