Comments thompanilla started the conversationMay 25, 2018 at 6:23pmI'm getting an error when trying to connect to a json packet (url above)."There was an error while trying to save the table! error 0"...wish there was more detail. Please advise! 1,850Miloš repliedMay 28, 2018 at 10:30amHI thompanilla,Thank you for your purchase.Can you please tell me are there any errors in the server log.Best regards.Kind Regards, Miloš Jovanović[email protected] Rate my supportTry our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 thompanilla repliedMay 29, 2018 at 2:16pmPHP Warning: Invalid argument supplied for foreach() in /nas/content/live/unthsc/wp-content/plugins/wpdatatables/templates/admin/table-settings/add_column_modal.inc.php on line 72, referer: https://www.unthsc.edu/brand-and-communication/wp-admin/admin.php?page=wpdatatables-constructor[Tue May 29 14:13:40.947411 2018] [:error] [pid 12791] [client 129.120.103.208:26998] PHP Warning: Invalid argument supplied for foreach() in /nas/content/live/unthsc/wp-content/plugins/wpdatatables/templates/admin/table-settings/remove_column_modal.inc.php on line 40, referer: https://www.unthsc.edu/brand-and-communication/wp-admin/admin.php?page=wpdatatables-constructor 1,850Miloš repliedMay 30, 2018 at 9:50amHi thompanilla,It looks like this are just some warrningsOk, first in file ../wp-content/plugins/wpdatatables/templates/admin/table-settings/add_column_modal.inc.php find this line of code <?php foreach ($tableData->table->columns as $column) { ?> <option value="<?php echo $column->orig_header; ?>"> <?php echo $column->display_header; ?></option> <?php } ?> and add some changes to look like this <?php if (is_object($tableData)){ foreach ($tableData->table->columns as $column) { ?> <option value="<?php echo $column->orig_header; ?>"><?php echo $column--->display_header; ?></option> <?php }} ?> Then in file ../wp-content/plugins/wpdatatables/templates/admin/table-settings/remove_column_modal.inc.php find this line of code <?php foreach ($tableData->table->columns as $column) { ?> <?php if ($column->orig_header == 'wdt_ID') { continue; } ?> <option value="<?php echo $column->orig_header; ?>"><?php echo $column->display_header; ?></option> <?php } ?> and change it to look like this <?php if (is_object($tableData)){ foreach ($tableData->table->columns as $column) { ?> <?php if ($column--->orig_header == 'wdt_ID') { continue; } ?> <option value="<?php echo $column->orig_header; ?>"><?php echo $column--->display_header; ?></option> <?php }} ?> Just add IF condition in both of those files which gave you a warnings.Best regards.Kind Regards, Miloš Jovanović[email protected] Rate my supportTry our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 Sign in to reply ...
I'm getting an error when trying to connect to a json packet (url above).
"There was an error while trying to save the table! error 0"
...wish there was more detail. Please advise!
HI thompanilla,
Thank you for your purchase.
Can you please tell me are there any errors in the server log.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
PHP Warning: Invalid argument supplied for foreach() in /nas/content/live/unthsc/wp-content/plugins/wpdatatables/templates/admin/table-settings/add_column_modal.inc.php on line 72, referer: https://www.unthsc.edu/brand-and-communication/wp-admin/admin.php?page=wpdatatables-constructor[Tue May 29 14:13:40.947411 2018] [:error] [pid 12791] [client 129.120.103.208:26998] PHP Warning: Invalid argument supplied for foreach() in /nas/content/live/unthsc/wp-content/plugins/wpdatatables/templates/admin/table-settings/remove_column_modal.inc.php on line 40, referer: https://www.unthsc.edu/brand-and-communication/wp-admin/admin.php?page=wpdatatables-constructor
Hi thompanilla,
It looks like this are just some warrnings
Ok, first in file ../wp-content/plugins/wpdatatables/templates/admin/table-settings/add_column_modal.inc.php find this line of code
and add some changes to look like this
Then in file ../wp-content/plugins/wpdatatables/templates/admin/table-settings/remove_column_modal.inc.php find this line of code
and change it to look like this
Just add IF condition in both of those files which gave you a warnings.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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