[check of PHP warnings] PDF dont open before upload

More
11 years 10 months ago #39293 by tevez15
Hi :D

I'm working on an old project, Joomla 1.5 yet, and I'm doing some Uploads of PDF's created by the image viewer of Windows, giving to view without problems (with Adobe Reader).

After upload and download, the Adobe Reader always gives error to open the PDF file.

Can you help me identify the problem? Thanks

Flexicontent version 1.5.5 stable (r608)

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #39295 by ggppdk
Hello,
the file is served by FLEXIcontent file field?

if so you can check if some PHP error are prepended to the output
e.g. PHP 5.4 strict warnings ??


Try renaming the downloaded file to *.txt and viewing it with a TEXT editor do you see any PHP warnings

OR

maybe open frontend controller and find the task
download(...) {...}
components/com_flexicontent/controller.php
and just before
Code:
readfile(...);
add (temporarily):
Code:
exit;

Do you see any PHP errors e.g. PHP 5.4 strict warnings?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #39302 by tevez15
I solved the problem change the input to <a> with the link to the file.

No more problems with download. :D

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.305 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save