Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
kd8hho
Worker
Worker



Joined: Mar 30, 2009
Posts: 132

PostPosted: Fri Sep 25, 2009 4:05 pm Reply with quote

did the upgrade. everything stock works fine. but nsn-downloads just gives a blank white page.

I seriously can not remember if I had to edit anything originally (re downloaded the package from nukescripts and over wrote the files still blank page)

I did take out the stock downloads out of RN b4 i did the upload so nothing in the downloads should have got overwrote.

on the white page, page source comes up with nothing.

_________________
Linux Register User #481509 | Ubuntu Register User #25492 
View user's profile Send private message Visit poster's website
gazj
Worker
Worker



Joined: Apr 28, 2006
Posts: 152
Location: doncaster england

PostPosted: Fri Sep 25, 2009 4:20 pm Reply with quote

turn error reporting on and see if any errors come up then let us know and we can go from there

_________________
as i stare into the abyss and battle with my demons i yell timeout and have a coffee break. 
View user's profile Send private message Visit poster's website
kd8hho







PostPosted: Fri Sep 25, 2009 4:32 pm Reply with quote

error report on, but getting nothing..
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Sep 25, 2009 4:34 pm Reply with quote

which version did you download?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
kd8hho







PostPosted: Fri Sep 25, 2009 4:38 pm Reply with quote

nuken wrote:
which version did you download?


RN i did the 2.4 upgrade

NSN downloads is 1.0.3 IIRC (latest version i do believe)
 
nuken







PostPosted: Fri Sep 25, 2009 4:50 pm Reply with quote

Was it NSN GR Downloads 750 103pl2 or NSN GR Downloads 710 103pl2?
 
kd8hho







PostPosted: Fri Sep 25, 2009 4:58 pm Reply with quote

nuken wrote:
Was it NSN GR Downloads 750 103pl2 or NSN GR Downloads 710 103pl2?


Downloads 750 103pl2
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Sep 25, 2009 6:22 pm Reply with quote

In regards to the blank page are we talking admin or module index?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
kd8hho







PostPosted: Fri Sep 25, 2009 6:26 pm Reply with quote

module index.

i turned off shortlinks to see if by some chance that was the cause same issue.

in the admin panel nsn-download admin works fine no issues. im able to see the downloads list,cat list. add download, download config.

something tells me its a code issue but i cant seem to find anything that would cause it but im also no php expert.
 
Palbin







PostPosted: Fri Sep 25, 2009 6:34 pm Reply with quote

Try looking in the module index for something like:
Code:


if(!isset($op)) { $op = "index"; }

Change it to:
Code:


if(!isset($op) || empty($op)) { $op = "index"; }
 
kd8hho







PostPosted: Fri Sep 25, 2009 6:39 pm Reply with quote

code fixed it. now it shows.

what exactly did that do?
 
Palbin







PostPosted: Fri Sep 25, 2009 6:47 pm Reply with quote

To fix an undefined $op notice we added some code to set $op to nothing ($op = '') if undefined. This caused a problem with your existing code (obviously).

The reason being is that it is semi poorly written. Ultimately it should of had a default case statement.

Getting back on track, the reason you had a problem is that since we defined $op as blank the "if(!isset($op)) { $op = "index"; }" was not triggering because the variable IS set. When adding the empty() to the if statement it triggers if $op is undefined or empty (ie blank). You probably could have gotten away with changing !isset to empty, but having them both is fine.

Hope you could follow all that Smile
 
kd8hho







PostPosted: Fri Sep 25, 2009 7:38 pm Reply with quote

yes indeed. Razz

something in my mind was telling me it was a coding issue. and i was right. just wasnt looking in the right spot evidently lol.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©