• Resolved tatamaran

    (@tatamaran)


    Hi
    I instaled lite version of wpDataTables.
    I’m able to add html code like [wpdatatable id=3] and save the page or post.
    But when i try to update this page next time i always got error 500
    To eliminitane any customization as a root cause I created simple and empty table 2×2.
    result with basic table is the same,
    Tested on two wordpress website.
    The only way to eliminate error is to delete tables created at wpDataTables.
    Additionally I’ve got email with error description:

    WordPress w wersji 5.6
    Aktualny motyw: Level Up childe of OceanWP (wersja 1.9.0) Aktualna wtyczka: wpDataTables – Tables & Table Charts (wersja 2.1.7) Wersja PHP: 7.3.26

    Szczegó?y b??du
    ===================
    B??d typu E_ERROR zosta? spowodowany w linii 92 pliku /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php. Komunikat b??du: Uncaught TypeError: Argument 1 passed to WPDataTableRows::setColHeaders() must be of the type array, null given, called in /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 30 and defined in /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php:92
    Stack trace:
    #0 /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(30): WPDataTableRows->setColHeaders(NULL)
    #1 /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(334): WPDataTableRows->__construct(Object(stdClass))
    #2 /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-content/plugins/wpdatatables/controllers/wdt_functions.php(539): WPDataTableRows::loadWpDataTableRows(‘1’)
    #3 /home/serverXXXXXX/ftp/wordpress/wpn_AAAAAAAAA/wp-includes/shortcodes.php(343): wdtWpDataTableShortcodeHandler(Array, ”, ‘wpdatatable’)
    #4 [intern

    • This topic was modified 3 years, 10 months ago by tatamaran.
    • This topic was modified 3 years, 10 months ago by tatamaran.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi tatamaran,

    Sorry for the inconvenience,

    Can you try to change the code in the file wp-content/plugins/wpdatatables-lite/source/class.wpdatatablerows.php around line 325 you will find this

    $tableData = WDTConfigController::loadTableFromDB($tableId);

    and you have to change to this

    $tableData = WDTConfigController::loadTableFromDB($tableId, false);

    Let me know if that helps.

    Best regards.

    Thread Starter tatamaran

    (@tatamaran)

    Hi
    Yes, I helped
    Thank you very much.

    Will the fix be included in the next update?

    Plugin Author wpDataTables

    (@wpdatatables)

    Hi tatamaran,

    You are welcome.

    Yes, it will be included, you don’t have to worry about that.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error 500 when try tu update page with HTML [wpdatatable id=xx]’ is closed to new replies.