What could cause this behavior-wrong files displayed

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   What could cause this behavior-wrong files displayed
harknell
CZ Newbie
harknell has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Sep 19, 2005
0.00 posts per day
Posts: 18
Points: 653
   
I'm running a version of phpnuke 7.8.31 (by Pc Nuke! systems) and have 2 third party add-on modules to display files on my server to the visitor. One is an old module simply called "Documents" which is no longer being developed, and a newer one called "TotalViewer" by SweetPhp.com. In both cases they exhibit weird behavior that is driving me crazy.

What happens is this: The modules are basically designed to be file system catalogers that get pointed at a particular folder in the file system of the server, which they will then present as a file list that a user can click to open the file or download the file. This is where the weird behavior comes in. If a user clicks on an .html or .txt file, the file opens and displays properly. If the user clicks on any other type of file (like a .doc, .ppt, .gif, etc.), the program opens "modules.php" instead of the file selected. If you look at the html link it was shooting for it is the line calling the module, not a real link to the file itself (so it says something like "modules.php?name=Documents&file=index&start=docs&func=dlfile&target=&filename=intranetseatingchartrotated.gif" as the actual link, when it should basically link to the file like /docs/intranetseatingchartrotated.gif)

I would say that this could be a specific problem with a particular module if it wasn't affecting both modules the exact same way, but they have no connection to each other at all except for doing the same type of idea. Is there a generic issue that could be affecting things? The fact that .html files and .txt files work properly but any other type doesn't definitely makes me think theres something underlying going on.

Any help or even a direction to look would be appreciated.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
It doesnt actually link to it. The function dlfile probably sends a header to it. Is there a reason the target is blank? That could be causing the problem. Where did you get this module? Is there a copy of a fresh install somewhere?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: What could cause this behavior-wrong files displayed
harknell
CZ Newbie
harknell has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Sep 19, 2005
0.00 posts per day
Posts: 18
Points: 653
   
One of the modules has been long abandoned and is hard to find, I found it on a german phpnuke module database. it's called "documents" and is version .21, this is an original link to it: [ Register or login to view links on this board. ]

The other is a currently developed module listed here: [ Register or login to view links on this board. ]

I posted on their support forum, but they seem very low in volume so i was hoping that someone here had encountered this behavior before.

As I said in my first post, both modules do the exact same behavior. .html and .txt files will open properly (so they link to the file, and it opens in a new window as full screen html or text) but if you click any other file type it tries to open modules.php instead of that file. .doc, .ppt, basically any windows file type or non-interent native file.

Both modules are totally different in method and coding, but both glitch the same way. I would chalk it up to incompatibility or something (since the Documents module is old and might not work right with 7.0+ of phpnuke), but the TotalViewer module is very recent and is supposed to work right in 7.8

Is it possible Phpnuke is glitching the file types or mime types? Or maybe this is a server setup issue with php or apache? Both modules claim to be able to catalog and work with all of the file types that aren't working. I'm just trying to figure out what could be the root cause of the problems.



Back to top Reply with quote
#4   re: What could cause this behavior-wrong files displayed
harknell
CZ Newbie
harknell has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Sep 19, 2005
0.00 posts per day
Posts: 18
Points: 653
   
Extra info: I'm using php 5.0.3 which I've read has issues with readfile()

Both modules use readfile() to output the files, I'm wondering if this is the problem....



Back to top Reply with quote
#5   re: What could cause this behavior-wrong files displayed
harknell
CZ Newbie
harknell has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Sep 19, 2005
0.00 posts per day
Posts: 18
Points: 653
   
Well, I installed the default phpnuke 7.8 from phpnuke.org and the Documents module worked properly there. TotalViewer did not work properly, but that was in a different way than my normal problem....

Anyway, this makes me think that the issue is related to PCNuke! Systems 7.8.31 Max distro...So what can anyone point to that would cause this? What is so different about the core or this version that would cause .doc files, .jpg, etc. to not want to work properly through one of the modules?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum