WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Using WPTreloaded table caused memory problems and pictures not shown (17 posts)

  1. Peter
    Member
    Posted 1 year ago #

    The following table caused memory problems and that pictures on the page
    http://snbchf.com/snb/distribution-of-fx-reserves/

    were not shown any more.
    I had to remove the WPTabReloaded table.

    The Export from WPTabReloaded:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Not the blockquote. ]

    ;<div>Foreign exchange reserves</div>;#colspan#;<div>CHF securities</div>;#colspan#
    <div>Currency breakdown of foreign currency investments, excluding investments and liabilities in connection with foreign exchange swaps</div>;;;;
    <div>CHF</div>;<div>-</div>;<div>-</div>;<div>100%</div>;<div>(100%)</div>
    <div>USD</div>;<div>22%</div>;<div>(28%)</div>;<div>-</div>;<div>-</div>
    <div>EUR</div>;<div>60%</div>;<div>(51%)</div>;<div>-</div>;<div>-</div>
    <div>GBP</div>;<div>3%</div>;<div>(5%)</div>;<div>-</div>;<div>-</div>
    <div>JPY</div>;<div>8%</div>;<div>(9%)</div>;<div>-</div>;<div>-</div>
    <div>CAD</div>;<div>3%</div>;<div>(4%)</div>;<div>-</div>;<div>-</div>
    <div>Other (1)</div>;<div>4%</div>;<div>(3%)</div>;;
    <div>Investment categories</div>;;;;
    <div>Investments with banks</div>;<div>0%</div>;<div>(0%)</div>;<div>-</div>;<div>-</div>
    <div>Government bonds (2)</div>;<div>85%</div>;<div>(82%)</div>;<div>34%</div>;<div>(34%)</div>
    <div>Other bonds (3)</div>;<div>5%</div>;<div>(8%)</div>;<div>66%</div>;<div>(66%)</div>
    <div>Equities</div>;<div>10%</div>;<div>(10%)</div>;<div>-</div>;<div>-</div>
    ;;;;
    <div>Breakdown of fixed income assets (4)</div>;;;;
    <div>Assets with AAA rating</div>;<div>86%</div>;<div>(84%)</div>;<div>80%</div>;<div>(77%)</div>
    <div>Assets with AA rating</div>;<div>9%</div>;<div>(10%)</div>;<div>19%</div>;<div>(22%)</div>
    <div>Assets with A rating</div>;<div>4%</div>;<div>(4%)</div>;<div>1%</div>;<div>(1%)</div>
    <div>Other assets</div>;<div>1%</div>;<div>(2%)</div>;<div>0%</div>;<div>(0%)</div>
    <div>Duration of assets (years)</div>;<div>2.8</div>;<div>(4.0)</div>;<div>6.6</div>;<div>(6.4)</div>

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    the reason for this probably is that your installation is already operating very close to the PHP memory limit on the server (due to load and other plugins on your site). When WP-Table Reloaded is then activated/used it just happens to be that this memory limit is reached.
    Can you therefore please try to increase your memory by following the instructions at http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Also, you could already try to switch from WP-Table Reloaded to its designated and official successor TablePress, available at http://wordpress.org/support/plugin/tablepress

    Regards,
    Tobias

  3. Peter
    Member
    Posted 1 year ago #

    Hi Tobias, will consider to change to table press.

    I increased memory already from 256 to 512 MB ( in php.ini)

    Does WP Tab Reloaded need so much memory ?

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    no, usually WP does not need so much memory, and 256M is a lot already.
    However, there are people with much bigger tables than this in WP-Table Reloaded, so I don't think that this is a specific memory problem.

    Do you get any error messages when WP-Table Reloaded is activated (or used)? You could look in the server error logs or enable the WP_CONFIG constant in wp-config.php.

    Regards,
    Tobias

  5. Peter
    Member
    Posted 1 year ago #

    Should I enable WP_DEBUG_LOG ?

    You speak of the server log in cpanel or in the the file system ?

  6. Peter
    Member
    Posted 1 year ago #

    When I enter another WP table, even more complicated ones, into this page, then it works perfectly.
    It is just this table which makes problems.

  7. Peter
    Member
    Posted 1 year ago #

    I have removed the #colspan#
    and it works now.
    Think you got an issue with colspan.

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    can you test this again with TablePress, to see if the issue with #colspan# happens there, too? I changed a few things there already with #colspan# handling.
    It sounds like the algorithm is running into an infinite loop for some reason...

    Regards,
    Tobias

  9. Peter
    Member
    Posted 1 year ago #

    I have installed Tablepress.
    Should I deactivate WP Table Reloaded ?

    How to migrate the tables ?

  10. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    to migrate just follow the instructions in TablePress, and at http://tablepress.org/migration-from-wp-table-reloaded/

    Regards,
    Tobias

  11. Peter
    Member
    Posted 1 year ago #

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/geoorgge/public_html/wp-content/plugins/tablepress/classes/class-render.php on line 221

    Warning: Invalid argument supplied for foreach() in /home/geoorgge/public_html/wp-content/plugins/tablepress/classes/class-render.php on line 223

    http://snbchf.com/snb/distribution-of-fx-reserves/

  12. Peter
    Member
    Posted 1 year ago #

    the colspans were already out. But I imported it from HTML to WPTab Reloaded and have in every cell
    <div> </div>

  13. Peter
    Member
    Posted 1 year ago #

    But there is another table that could not be imported. It had many links inside.

    Invalid argument supplied for foreach() in /home/geoorgge/public_html/wp-content/plugins/tablepress/views/view-edit.php on line 236

    I will load up the dump file for you and will deactivate table press...

  14. Peter
    Member
    Posted 1 year ago #

  15. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for trying all this and for the information!

    When exactly did you get these error messages ("Invalid argument...")? During the migration from WP-Table to TablePress? Which method did you use? The import directly from the database or from a WP-Table Reloaded Dump File? Can you maybe make a screenshot of the error messages (so that I can see where on the page they happen)?
    And: Which version of WP-Table Reloaded, TablePress, and WordPress are you using?

    About those <div>s in each cell: Those do not come from WP-Table Reloaded or TablePress, thus they must have been in there in the original data already.

    Thanks!
    Tobias

  16. Peter
    Member
    Posted 1 year ago #

    The error messages are displayed on the table press table content and on the page where the table is embedded.
    The dump is the WPtable reloaded dump file created in step 1 according to your migration process. Just renamed extension into txt.
    The best would be you try to import the dump into WP table reloaded and migrate to table press.

  17. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    ok, I now tried both migration ways: Import your WP-Table Reloaded Dump file directly into TablePress, and also the direct migration from the database (after re-importing your dump file into WP-Table Reloaded of course).
    I can not see any problems there, all tables were migrated fine...

    Which table ID are these errors happening with?
    And: Which version of WP-Table Reloaded, TablePress, and WordPress are you using?

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.