CSV to SortTable
No CSV results in broken page (2 posts)

  1. miketheteacher
    Posted 1 year ago #

    When there is no CSV that the plugin references, rather than display a message like "the CSV cannot be found", the result is a completely broken page.

    Headers, footers, everything.

    Anyone else having this issue? Any workarounds?


  2. miketheteacher
    Posted 1 year ago #

    I found this line in /lib/

    function csv_source( $atts ) {
            if ( isset( $atts['src'] ) || isset( $atts['source'] ) ) {
                $src = isset( $atts['source'] ) ? esc_url( $atts['source'] ) : esc_url( $atts['src'] );
                if ( 0 === strpos( $src, '/' ) )
                    return home_url( $src );
                    return $src;
            return CSV_06082013_URL . 'test.csv'; // Default file URL if no .csv file source is defined.

    Which works perfectly if the URL is undefined.

    Anybody know how to alter it so I can return the same 'test.csv' if the .csv file source is wrong?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CSV to SortTable
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.