| Author |
Message |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Thu Oct 26, 2006 9:55 pm |
|
Ok, I purchased NSN prizes, installed, but when I make the necessary changes to mainfile.php
| Code: | #
#-----[ OPEN ]------------------------------------------
#
mainfile.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Patched 2.9 upto some patched 3.1
if(defined('FORUM_ADMIN')) {
include_once("../../../includes/nsnpz_func.php");
} elseif(defined('INSIDE_MOD')) {
include_once("../../includes/nsnpz_func.php");
} else {
include_once("includes/nsnpz_func.php");
}
|
but all I get is a white page. The whole site will not work. |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2853
|
Posted:
Thu Oct 26, 2006 11:18 pm |
|
If you have copied this line into mainfile.php, delete it
| Code: |
Patched 2.9 upto some patched 3.1
|
|
|
|
|
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Fri Oct 27, 2006 4:42 pm |
|
No, I've only placed the code. |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Fri Oct 27, 2006 7:16 pm |
|
The whole site will not work? This means everything is blank?
That would sudjest that either the file is not there, or is not scripted properly,
Try this.
In ftp, rename the file( nsnpz_func.php) to nsnpz_func1.php.
Then open in a text editor a blank file.
Paste Just this:
<?php
?>
No blanks before or after the ending of the file.
Now save that and name it: nsnpz_func.php.
Upload that to your includes/ folder.
If your site now works with that, then its a script error, if not, then you are either not editing the correct file, patches are not upto date, or your uploading to the wrong folder.
Let us know the results. |
|
|
 |
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Fri Oct 27, 2006 7:34 pm |
|
Site worked and was viewable. Module did not of course. Must be a coding error in the nsnpz_func.php. Bob emailed me like 2 months ago and said he would fix it, but I haven't heard from him since after repeated attempts.
Any ideas? |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 210
|
Posted:
Sat Oct 28, 2006 7:44 pm |
|
How about keeping the original changes and turning on error reporting in your config.php and reporting the error on the blank page here? It could help.
Another option:
| Code: | if ($forum_admin == 1) {
include_once("../../../includes/nsnpz_func.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/nsnpz_func.php");
} else {
include_once("includes/nsnpz_func.php");
} |
|
|
|
|
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Sun Oct 29, 2006 1:14 pm |
|
Here is what I get:
Parse error: syntax error, unexpected '.' in /home/edit/public_html/includes/nsnpz_func.php on line 298 |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Sun Oct 29, 2006 1:58 pm |
|
Ahh Now that shows something, Could you paste the code of lines 295 to 302?
That should give enough to look at to see if there are any coding errors in the syntax.
Thanks. |
|
|
 |
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Sun Oct 29, 2006 3:07 pm |
|
| Code: | $message .= .": ".stripslashes($cinfo['email'])."\n";
$message .= .": ".stripslashes(str_replace("<br>", "\n", $cinfo['address']))."\n";
$message .= .": ".stripslashes($cinfo['phone'])."\n";
$from = "From: ".stripslashes($cinfo['email'])."\r\n";
$from .= "Reply-To: ".stripslashes($cinfo['email'])."\r\n"; |
|
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Sun Oct 29, 2006 10:25 pm |
|
Ok which lines are those, beginning to the end, If I was at my home computer, Id load it up to see any syntax errors, but right now I cannot.
I have only one theory but right now you need solutions not theories.
I doubt Ill be able to fix this in my current place, but as soon as I return, Ill give it my full attention. |
|
|
 |
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Sun Oct 29, 2006 10:30 pm |
|
Those are the lines you requested 295-302 |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2853
|
Posted:
Sun Oct 29, 2006 10:31 pm |
|
Because these lines already use a .= - you don't need a . after the = sign
| Code: |
$message .= ": ".stripslashes($cinfo['email'])."\n";
$message .= ": ".stripslashes(str_replace("<br>", "\n", $cinfo['address']))."\n";
$message .= ": ".stripslashes($cinfo['phone'])."\n";
|
|
|
|
|
 |
greg01 New Member


Joined: Mar 07, 2005 Posts: 15
|
Posted:
Sun Oct 29, 2006 11:18 pm |
|
That did it! It works! Woohoo!
Thanks to all that helped me resolve this. |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Mon Oct 30, 2006 7:14 pm |
|
Evaders, thanks I was thinking the same thing, except for some reason, Just saw it going haywire if those lines were echod and it wasnt properly syntaxed, Thats why I asked for more, perhaps see the beginning of the $message variable.
I guess it really wouldnt matter considering php wouldnt see a variable if it wasnt the correct syntax when called.
Little unsure of myself there, Thanks for clearing it up for greg01 and myself. |
|
|
 |
 |
|
|
|
|