I work with the PHPExcel library in Wordpress. I need to read the data from the excel file, I took it from here - https://packagist.org/packages/phpoffice/phpexcel I get an error

Fatal error: Uncaught PHPExcel_Reader_Exception: Could not open http://uh214936.ukrdomen.com/barsa/wp-content/uploads/2018/09/u-14-1.xlsx for reading! File does not exist

It looks like there is no file but the file is there and it is downloaded without problems. I have the only thought about this on the server are the rights prohibiting reading files. What do you advise? Here you can make a more detailed error - http://uh214936.ukrdomen.com/barsa/media/no-products/u-14/

Actually on the second line and an error

$file = get_field('excel_file_standings_table'); //получаем ссылку на файл $phpExcel = PHPExcel_IOFactory::load($file['url']); //загружаем файл на чтение через библиотеку 

Print the path to the file turned out

 http://uh214936.ukrdomen.com/barsa/wp-content/uploads/2018/09/u-14-1.xlsx 

This is the absolute file path.

  • Show the code with which you open the file. We're not telepaths) - Suvitruf
  • Added, on the second line the code dies, what else do you need to attach? - Pavel
  • And output $file['url'] . Is there an absolute or relative path? - Suvitruf
  • Print the path to the file - Pavel
  • I thought the problem was in the library, but I didn’t have tested all the rules on LAN, though it wasn’t possible to fix it in WordPress and on Windows OS. Therefore, there are differences - Pavel

0