PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Sun May 13, 2007 8:20 am Reply with quote Back to top

why sentinel blocking the IPN from paypal.com do you have any solution for this? everytime i deactivate paypal IPN works fine then when i activate it IPN not recording anymore Arrow
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 10:02 am Reply with quote Back to top

What script are you using? NukeTreasury or what?
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Sun May 13, 2007 10:21 am Reply with quote Back to top

nuke treasury
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 10:56 am Reply with quote Back to top

Hmmm....I am running this script and IPN works for me with Sentinel running. What version of Sentinel do you have?

As far as I know, Paypal calls directly into the IPN script, it does not go through the "usual Nuke channels", so Sentinel should not be getting involved.

What is your IPN link for PayPal in NukeTreasury config?
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Sun May 13, 2007 10:57 am Reply with quote Back to top

well im on nukesentinel 2.5.08 the latest and nuketreasury works fine when sentinel is not active
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 12:37 pm Reply with quote Back to top

Again, what is your IPN link for PayPal in NukeTreasury config? And what version of NukeTreasury is this?

I just looked at my NukeTreasury 1.0 and Paypal will call that ipn script directly, and it does not include any normal Nuke files, so I can't see how Sentinel even gets invoked on the IPN callback.
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Sun May 13, 2007 12:39 pm Reply with quote Back to top

i have nuketreasury1.1 ported to nuke8 from dadanuke.org
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 12:39 pm Reply with quote Back to top

Also set your logging level option to "Log Everything" in the Treasury config, then check your Treasury table for errors.
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Sun May 13, 2007 12:41 pm Reply with quote Back to top

yup all logged and not even recording transaction when sentinel is enable
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 8:02 pm Reply with quote Back to top

Okay, I am not familiar with the dadanuke version...did they modify it? Raven has taken over the development of NukeTreasury, and you could try version 1.1 from this site. I am still running 1.0, I'm not real sure what the difference is, but I can receive donations with Sentinel active. Maybe we don't have the same Sentinel settings. But like I said, when Paypal calls your IPN script back, it is calling it directly and it is bypassing Nuke altogether. So Sentinel should not even be involved.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 8:04 pm Reply with quote Back to top

I see there is a 1.1.1 version in the downloads here.
View user's profile Send private message
gotcha
Regular
Regular


Joined: Mar 14, 2005
Posts: 91

PostPosted: Sun May 13, 2007 8:11 pm Reply with quote Back to top

If that version of NukeTreasury includes mainfile.php then its the user agent check in sentinel that is blocking the IPN because paypal sends no user agent. I ran into this before and the way I solved it was by putting an if statement around that user agent check to make sure it was bypassed only for 1 certain file.
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 8:46 pm Reply with quote Back to top

I guess check the ipnppd.php file to see what other PHP files it is including (or requiring). In 1.0 it only includes "../config.php", and this file includes no other Nuke files.

If your version is including mainfile.php or something like that, then yes, Sentinel will get involved and gotcha is probably right, the invalid user agent check could be nailing you.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun May 13, 2007 8:50 pm Reply with quote Back to top

I just checked NukeTreasury 1.1.1 as found in the downloads section here and the ipnppd.php file is not including any Nuke files. So you might want to either switch to that, modify the dadanuke version, or modify Sentinel as gotcha apparently did.
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Fri May 25, 2007 10:41 am Reply with quote Back to top

no its not requiring nothing Confused
View user's profile Send private message
meawww
New Member
New Member


Joined: Feb 09, 2007
Posts: 13

PostPosted: Fri May 25, 2007 10:44 am Reply with quote Back to top

gotcha wrote:
If that version of NukeTreasury includes mainfile.php then its the user agent check in sentinel that is blocking the IPN because paypal sends no user agent. I ran into this before and the way I solved it was by putting an if statement around that user agent check to make sure it was bypassed only for 1 certain file.


can you share to me the statement you made to bypass the sentinel from IPN?
View user's profile Send private message
gotcha
Regular
Regular


Joined: Mar 14, 2005
Posts: 91

PostPosted: Sat May 26, 2007 9:43 am Reply with quote Back to top

Sure, but my modification was for something totally different so it may or may not work for you.

First you will want to put a line like this at the top of your ipn script.

Code:
define('IPN_CALLED', true);


Then open up includes/nukesentinel.php and find
Code:
// Invalid user agent
if($nsnst_const['user_agent']=="none" AND !stristr($_SERVER['PHP_SELF'], "backend.php") AND ($nsnst_const['remote_ip'] != $nsnst_const['server_ip'])) {
  echo abget_template("abuse_invalid2.tpl");
  die();
}


and change it to
Code:
if (!defined('IPN_CALLED')){
// Invalid user agent
if($nsnst_const['user_agent']=="none" AND !stristr($_SERVER['PHP_SELF'], "backend.php") AND ($nsnst_const['remote_ip'] != $nsnst_const['server_ip'])) {
  echo abget_template("abuse_invalid2.tpl");
  die();
}
}


and thats it! Good Luck
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum