You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'CSV file with chart data was not uploaded for chart %d.', $chart_id ), 'error', __FILE__, __LINE__ );
972
978
$render->message = esc_html__( 'CSV file with chart data was not uploaded. Please try again.', 'visualizer' );
979
+
update_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, esc_html__( 'CSV file with chart data was not uploaded. Please try again.', 'visualizer' ) );
973
980
}
981
+
982
+
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Uploaded data for chart %d with source %s', $chart_id, print_r( $source, true ) ), 'debug', __FILE__, __LINE__ );
983
+
974
984
if ( $source ) {
975
985
if ( $source->fetch() ) {
976
986
$content = $source->getData();
@@ -981,6 +991,7 @@ public function uploadData() {
981
991
// if we populate the data even if it is empty, the chart will show "Table has no columns".
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Not populating chart data as source exists (%s) but data is empty!', $json['source'] ), 'warn', __FILE__, __LINE__ );
994
+
update_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, sprintf( 'Not populating chart data as source exists (%s) but data is empty!', $json['source'] ) );
984
995
$populate = false;
985
996
}
986
997
}
@@ -992,6 +1003,8 @@ public function uploadData() {
0 commit comments