ValueError

HTTP 500 Whoops, looks like something went wrong.

Path cannot be empty

Exception

ValueError

  1. header('Pragma: public');
  2. ob_clean();
  3. flush();
  4. readfile($File);
  1. header('Pragma: public');
  2. ob_clean();
  3. flush();
  4. readfile($File);
include('/home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php') in /home/master/wp/wp-includes/template-loader.php (line 113)
  1. is_string( $template ) &&
  2. ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
  3. is_file( $template ) &&
  4. is_readable( $template )
  5. ) {
  6. include $template;
  7. } elseif ( current_user_can( 'switch_themes' ) ) {
  8. $theme = wp_get_theme();
  9. if ( $theme->errors() ) {
  10. wp_die( $theme->errors() );
  11. }
require_once('/home/master/wp/wp-includes/template-loader.php') in /home/master/wp/wp-blog-header.php (line 19)
  1. // Set up the WordPress query.
  2. wp();
  3. // Load the theme template.
  4. require_once ABSPATH . WPINC . '/template-loader.php';
  5. }
require('/home/master/wp/wp-blog-header.php') in /home/master/wp/index.php (line 17)
  1. * @var bool
  2. */
  3. define( 'WP_USE_THEMES', true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ . '/wp-blog-header.php';

Stack Trace

ValueError
ValueError:
Path cannot be empty

  at /home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php:27
  at readfile()
     (/home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php:27)
  at include('/home/master/clients/iti-cb/wp-content/themes/iticb/singles/single-download.php')
     (/home/master/wp/wp-includes/template-loader.php:113)
  at require_once('/home/master/wp/wp-includes/template-loader.php')
     (/home/master/wp/wp-blog-header.php:19)
  at require('/home/master/wp/wp-blog-header.php')
     (/home/master/wp/index.php:17)