Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View online Problem
#1
Bug 
it was strange problem..

well im getting

Code:
Warning: filesize() [function.filesize]: stat failed for C:/xampp/htdocs/letodms/docs/1048576/27/data.txt in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php:60) in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php:60) in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php:60) in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php:60) in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 63

Warning: readfile(C:/xampp/htdocs/letodms/docs/1048576/27/data.txt) [function.readfile]: failed to open stream: No such file or directory in C:\xampp\htdocs\letoDMS\op\op.ViewOnline.php on line 66

when i was try to view online any file like

http://localhost/letoDMS/op/viewonline/27/1/gusto.txt

script was wants to open data.txt but my original file name is just simple 1.txt at file folder and uploaded file name is gusto.txt .

so founds function at inc.ClassDocument.php / (line 1520)

PHP Code:
function getFileName(){ return "data" $this->_fileType; } 

and i was try manually add data.txt at file storage folder 'n requested

http://localhost/letoDMS/op/viewonline/27/1/data.txt

and o la la script worked.

what can i do for it ?
Reply
#2
What version of LetoDMS are you using.

That problem I had with version 1.7 with versio 1.8 everything is fine.

regards
Reply
#3
im using latest version 1.8.2
Reply
#4
You must have enabled mod-rewrite module in apache.

I don't know how to do that in Windows, but Google is our friend. I've found this

Quote:http://roshanbh.com.np/2008/04/check-ena...pache.html

If this doesn't help ... Sad
Reply
#5
already loaded dzingis Sad
Reply
#6
is there anything to solve this problem ?
Reply
#7
(07-02-2010, 03:29 PM)nienna Wrote: is there anything to solve this problem ?

downgrade to 1.8 Big Grin

Have you looked at:

http://forums.letodms.com/showthread.php?tid=94

This definitely looks like mod_rewrite, have you checked .htaccess file in op subfolder ?
Reply
#8
hmm i was manualy removed all whitespace at all php files after php close tag but still same so last thing is .htaccess if there is not an another problem...

PHP Code:
RewriteEngine on
RewriteCond 
%{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$ $1op.ViewOnline.php?request=$2:$[PT

is my .htaccess. anything wrong ?

still i need help guys.
Reply
#9
(07-05-2010, 05:23 PM)nienna Wrote: hmm i was manualy removed all whitespace at all php files after php close tag but still same so last thing is .htaccess if there is not an another problem...

PHP Code:
RewriteEngine on
RewriteCond 
%{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$ $1op.ViewOnline.php?request=$2:$[PT

is my .htaccess. anything wrong ?

still i need help guys.

Have you looked at:

http://forums.letodms.com/showthread.php...326#pid326
Reply
#10
well well with Doudoux's solutions


Quote:In file "op\op.ViewOnline.php" Change

PHP Code:
header("Content-Length: " filesize($settings->_contentDir $content->getDir() . $content->getFileName()));
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

readfile($settings->_contentDir $content->getDir() . $content->getFileName()); 

to

PHP Code:
header("Content-Length: " filesize($settings->_contentDir $content->getPath()));
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

readfile($settings->_contentDir $content->getPath()); 

totaly its working now. thx so much Smile
Reply


Forum Jump:


Users browsing this thread: