[2] ErrorException in Cad.php line 63

readfile(public/uploads/pdf/cad/Yzer-1-630-CO90-单面观光.pdf): failed to open stream: No such file or directory

  1. header("Expires: 0");
  2. header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  3. header("Cache-Control: private",false); // required for certain browsers
  4. header("Content-Type: application/pdf");
  5. header("Content-Disposition: attachment; filename=\"".basename($info['pdf_path'])."\";" );
  6. header("Content-Transfer-Encoding: binary");
  7. // header("Content-Length: ".filesize($info['pdf_path']));
  8. ob_clean();
  9. flush();
  10. readfile( $info['pdf_path'] );
  11. }
  12. public function clistAction()
  13. {
  14. $search_text= request()->param('search_text','');
  15. $condition = [];
  16. if ($search_text != '') {
  17. $condition['pdf_name'] = [

Call Stack

  1. in Cad.php line 63
  2. at Error::appError(2, 'readfile(public/uplo...', '/home/hy.aiyonet.com...', 63, ['id' => '651', 'info' => ['id' => '651', 'p_name' => 'Yzer-1', 'cad_type' => '2', ...]])
  3. at readfile('public/uploads/pdf/c...') in Cad.php line 63
  4. at Cad->downpdfAction()
  5. at ReflectionMethod->invokeArgs(object(Cad), []) in App.php line 343
  6. at App::invokeMethod([object(Cad), 'downpdfAction'], []) in App.php line 611
  7. at App::module(['portal', 'cad', 'downpdf'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['portal', 'cad', 'downpdf']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/home/hy.aiyonet.com...') in index.php line 26

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_STATUS
200
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_HOST
hyundaielevator.com.cn
HTTP_CONNECTION
Keep-Alive
PATH
/sbin:/usr/sbin:/bin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.9 (Unix) PHP/5.6.28
SERVER_NAME
hyundaielevator.com.cn
SERVER_ADDR
43.254.152.85
SERVER_PORT
80
REMOTE_ADDR
34.229.63.215
DOCUMENT_ROOT
/home/hy.aiyonet.com/www
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/hy.aiyonet.com/www
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/home/hy.aiyonet.com/www/index.php
REMOTE_PORT
49246
REDIRECT_URL
/portal/cad/downpdf/id/651
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/portal/cad/downpdf/id/651
SCRIPT_NAME
/index.php
PATH_INFO
/portal/cad/downpdf/id/651
PATH_TRANSLATED
redirect:/index.php/portal/cad/downpdf/id/651/cad/downpdf/id/651
PHP_SELF
/index.php/portal/cad/downpdf/id/651
REQUEST_TIME_FLOAT
1664195813.538
REQUEST_TIME
1664195813
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/hy.aiyonet.com/www/app/
CONF_PATH
/home/hy.aiyonet.com/www/config/
TTCMS_VERSION
5.0.20.18.11
THINK_VERSION
5.0.20
THINK_START_TIME
1664195813.5414
THINK_START_MEM
266256
EXT
.php
DS
/
THINK_PATH
/home/hy.aiyonet.com/www/thinkphp/
LIB_PATH
/home/hy.aiyonet.com/www/thinkphp/library/
CORE_PATH
/home/hy.aiyonet.com/www/thinkphp/library/think/
TRAIT_PATH
/home/hy.aiyonet.com/www/thinkphp/library/traits/
ROOT_PATH
/home/hy.aiyonet.com/www/
EXTEND_PATH
/home/hy.aiyonet.com/www/extend/
VENDOR_PATH
/home/hy.aiyonet.com/www/vendor/
RUNTIME_PATH
/home/hy.aiyonet.com/www/runtime/
LOG_PATH
/home/hy.aiyonet.com/www/runtime/log/
CACHE_PATH
/home/hy.aiyonet.com/www/runtime/cache/
TEMP_PATH
/home/hy.aiyonet.com/www/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false