Okay
  Public Ticket #2615146
Warning: json_decode() expects parameter 1 to be string, object given in D:\xampp\apps\wordpress\htdocs\wp-content\plugins\wpdatatables\source\class.wpdatatablerows.php on line 326
Closed

Comments

  • leomaks started the conversation

    Warning: json_decode() expects parameter 1 to be string, object given in D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php on line 326

    Fatal error: Uncaught TypeError: Argument 1 passed to WPDataTableRows::setColHeaders() must be of the type array, null given, called in D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php on line 30 and defined in D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php:92
    Stack trace:
    #0 D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php(30): WPDataTableRows->setColHeaders(NULL)
    #1 D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php(334): WPDataTableRows->__construct(Object(stdClass))
    #2 D:xamppappswordpresshtdocswp-contentpluginswpdatatablescontrollerswdt_functions.php(524): WPDataTableRows::loadWpDataTableRows('6')
    #3 D:xamppappswordpresshtdocswp-includesshortcodes.php(343): wdtWpDataTableShortcodeHandler(Array, '', 'wpdatatable')
    #4 [internal function]: do_shortcode_tag(Array)
    #5 D:xamppappswordpresshtdocswp-includesshortcodes.p in D:xamppappswordpresshtdocswp-contentpluginswpdatatablessourceclass.wpdatatablerows.php on line 92

  •  2,572
    Aleksandar replied

    Hello leomaks

    Thank you for your purchase.

    Can you please provide me more details about this error?

    Where does it happen? When does it happen? How is it triggered? What's the table type?

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Marcin replied

    Hello. After placing the shortcode on the page and later when trying to edit it, a fatal error is displayed:

    Warning: json_decode() expects parameter 1 to be string, object given in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 326

    Fatal error: Uncaught TypeError: Argument 1 passed to WPDataTableRows::setColHeaders() must be of the type array, null given, called in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 30 and defined in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php:92 Stack trace: #0 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(30): WPDataTableRows->setColHeaders(NULL) #1 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(334): WPDataTableRows->__construct(Object(stdClass)) #2 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/controllers/wdt_functions.php(524): WPDataTableRows::loadWpDataTableRows('32') #3 /autoinstalator/wordpress7/wp-includes/shortcodes.php(343): wdtWpDataTableShortcodeHandler(Array, '', 'wpdatatable') #4 [internal function]: do_shortcode_tag(Array) #5 /autoinstalator/wordpress7/wp-includes/shortcodes.php(218): preg_replace_callb in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 92

    Page: https://www.przewodygrzejne.info/pwiedzniki_projekto/raychem-wybor-systemu-do-ogojny-podjazdow/

    The problem is also on other sites, but not all.

    Greetings.



  •  2,572
    Aleksandar replied

    Hello Marcin

    Please go to wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php and on line 325 you will find this:

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

    Replace it with this:

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

    Let me now if that helps.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Marcin replied

    There is still a problem :)

    Warning: json_decode() expects parameter 1 to be string, object given in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 326

    Fatal error: Uncaught TypeError: Argument 1 passed to WPDataTableRows::setColHeaders() must be of the type array, null given, called in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 30 and defined in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php:92 Stack trace: #0 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(30): WPDataTableRows->setColHeaders(NULL) #1 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php(334): WPDataTableRows->__construct(Object(stdClass)) #2 /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/controllers/wdt_functions.php(524): WPDataTableRows::loadWpDataTableRows('32') #3 /autoinstalator/wordpress7/wp-includes/shortcodes.php(343): wdtWpDataTableShortcodeHandler(Array, '', 'wpdatatable') #4 [internal function]: do_shortcode_tag(Array) #5 /autoinstalator/wordpress7/wp-includes/shortcodes.php(218): preg_replace_callb in /autoinstalator/wordpress7/wp-content/plugins/wpdatatables/source/class.wpdatatablerows.php on line 92


    This is in class.wpdatatablerows.php - see screen


  •  2,572
    Aleksandar replied

    Hi again Marcin

    Can you please open a new ticket where you will provide me with the page on which this is happening, and then provide me a temporary wp-admin user (administrator), and FTP access credentials, so we can remote in, and see what's going on?

    Please open a private ticket, so your credentials are not visible to everyone.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables