I encountered a problem with files download (not related to 3.0 RC because it happened before, since many time).
For me and many users, file download works good, no problem.
But I have some users that can't download certain files, essentially if they are too big (> 100 mo).
If I try to download these files, it works for me.
I asked an user to send me the corrupted file (PDF) to see the problem. The file is corrupted, I open it with notepad++ to match the error message, but I can't find anything.
I have read many topics here that mentionned this bug (this topic for example :
www.flexicontent.org/forum/9-support/520...comme-corrompus.html
) but it don't help me :unsure:
And it's difficult to debug it because for me all is working :silly:
Here are the txt of a corrupted pdf file (only the firsts lines) an user send me.
I can give you admin access (Joomla, FTP, phpmyadmin...) if you want to see the bug.
so there is no PHP warning or notice at the begining and at the end of the file ?
-- 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...
For the firsts lines, you can see them in the attach file above.
I look at the end of the file and I see this :
Code:
¡Y¾¬žfü}îج¯<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>200 OK</title>
</head><body>
<h1>OK</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
postmaster@www.mysite.fr and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
the message does not say what happened, instead it says that the error is inside web server log
-- by looking at the server log you will probably find what is happening
Guessing:
I guess the maximum PHP execution time is exhausted
Test this fix:
Edit file:
components/com_flexicontent/controller.php
After:
Code:
function download()
{
add:
Code:
if(!ini_get("safe_mode")) @set_time_limit( 150 ); // try to set execution time 2.5 minutes
Also you could try to increase: max_execution_time of all scripts
Also (not related to your issue), v3.0.2 has been released
-- 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...
ok the file read is aborted , but it does not say why,
please try the fix suggested above regarding the max execution, to see if it corrects the issue
-- 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...