Title: xml table exception
Last modified: October 6, 2020

---

# xml table exception

 *  Resolved [jschob](https://wordpress.org/support/users/jschob/)
 * (@jschob)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/xml-table-exception/)
 * all xml tables throw a exception with php version 7.2 and 7.3
 *  Warning: Invalid argument supplied for foreach() in /home/.sites/447/site3389087/
   web/wp/wp-content/plugins/wpdatatables/source/class.wpdatatable.php on line 1298
   Fatal error: Uncaught Error: [] operator not supported for strings in /home/.
   sites/447/site3389087/web/wp/wp-content/plugins/wpdatatables/source/class.wpdatatable.
   php:950 Stack trace: #0 /home/.sites/447/site3389087/web/wp/wp-content/plugins/
   wpdatatables/source/class.wpdatatable.php(1303): WPDataTable->arrayBasedConstruct(”,
   Array) #1 /home/.sites/447/site3389087/web/wp/wp-content/plugins/wpdatatables/
   source/class.wpdatatable.php(1711): WPDataTable->XMLBasedConstruct(‘/home/.sites/
   44…’, Array) #2 /home/.sites/447/site3389087/web/wp/wp-content/plugins/wpdatatables/
   source/class.wpdatatable.php(2315): WPDataTable->fillFromData(Object(stdClass),
   Array) #3 /home/.sites/447/site3389087/web/wp/wp-content/plugins/wpdatatables/
   source/class.wdtconfigcontroller.php(92): WPDataTable::loadWpDataTable(16, NULL)#
   4 /home/.sites/447/site3389087/web/wp/wp-content/plugins/wpdatatables/controllers/
   wdt_admin.php(532): WDTConfigController::loadTableConfig(16) #5 /home/.sites/
   447/site3389087/web/wp/wp-content/plugins/wpdatatables/controller in /home/.sites/
   447/site3389087/web/wp/wp-content/plugins/wpdatatables/source/class.wpdatatable.
   php on line 950
    -  This topic was modified 5 years, 7 months ago by [jschob](https://wordpress.org/support/users/jschob/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/xml-table-exception/#post-13538714)
 * Hi there,
 * Sorry for inconvenience,
 * We notice that you mark this ticket as resolved, but in case you still have issues,
   can you please tell me do you have XML in format necessary for wpDataTables?
 *  Thread Starter [jschob](https://wordpress.org/support/users/jschob/)
 * (@jschob)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/xml-table-exception/#post-13543195)
 * Hello,
    The reason for the exception was a bad XML file. Unfortunately, I saw
   this after opening this issue. So I closed this problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘xml table exception’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jschob](https://wordpress.org/support/users/jschob/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/xml-table-exception/#post-13543195)
 * Status: resolved