PDA

View Full Version : Fileviewer Issues after reinstall and reload?


tm_hun
29-04-06, 08:02 AM
Hey all,

Ok Pedro - if you read this first - I have done a lot of reading but can't find the answer to this one. I had to rebuild my machine due to inheriting some issues, and I simply exported the mysql db, dragged the dotproject folder onto my storage volume and rebuilt the machine. Then I copied the dp folder in the correct location, imported the database and logged in as normal. Now I can't seem to download a file - I tried to get it once but fileviewer seems to be broken(it won't display anything) - it now says checked out under co?

<br />
<b>Warning</b>: fopen(/Library/WebServer/Documents/dotproject/files/6/652164594450284093c1d): failed to open stream: Permission denied in <b>/Library/WebServer/Documents/dotproject/fileviewer.php</b> on line <b>164</b><br />

I checked out the line it's referring to and it said nothing sensible to me? anyone have an answer? I need this file...

Oh - and it does this with every file!

Could this be in relation to the fact that I am using another user to access the dotproject db? hmm I will test. Nope not that...

Cheers,
tm

tm_hun
29-04-06, 08:11 AM
for the lazy ;)

the line in question:

$handle = fopen("{$dPconfig['root_dir']}/files/{$file['file_project']}/{$file['file_real_filename']}", 'rb');

pedroa
29-04-06, 08:52 AM
Did you also copied the contents of the files folder to the same spot in the new server?

You see files are not saved in the db but are saved on the filesystem instead, with a randomized filename that is translated through a database record.

So in that line it is calling that file for translation and process its download.
If there is no file on that path, then dP won't process that file to the user and give you a error message.

Check those folders and files, if it is there check if you have filesystem read permission for it... by the way the 6 is the number of the projects internal number.

Pedro A.

tm_hun
30-04-06, 02:50 AM
I copied the entire dotproject folder... and the permissions didn't change...

thanks,
tm