R
R
Rishat Sultanov2017-09-13 15:03:04
Apache HTTP Server
Rishat Sultanov, 2017-09-13 15:03:04

How to solve the problem with downloading a file from the server?

Good afternoon :)
I have such a problem. I uploaded an Excel file using the PHPExcel library.
But the file is downloaded locally.
And on sale:

ERROR - getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: Filename cannot be empty in /var/www/ibec/data/www/xxx/bundles/Excel/controllers/admin/PHPExcel/Writer/Excel5.php on line 464

Checked all uploaded files. Everyone has data. They do not differ from each other in any way.

PHP 5.4

Apache 2.2
Google says the module is missing.
Here are the modules:
Lokalka:
module

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
enchant
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
imap
json
libxml
mbstring
mcrypt
memcache
mhash
mongo
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDFlib
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
redis
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
timezonedb
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]

Prod:
module

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Gerasimov, 2017-09-13
@rishatss

PHPExel getting images and one of them is wrong? It's worth looking at what you're feeding PHPExel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question