Bug when creating user from Second Site Calendar.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/18/2010 9:26:38 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

Joe,

I just looked through the PayPalLog table and the only Response was of type PDTSuccess.  I am guessing that something is wrong with PayPal, but I did just notice that when I type the PayPalIPNHandler.aspx page into the browser I go to a blank page, but when I goto the PayPalPDTHandler.aspx page manually it redirects me to the home page.  Could it be that in my version there is something wrong with the IPN listening page?

From an earlier post: I have two pay pal accounts and the first one points to http://tipsycanvas.brinkster.net/Services/PayPalIPNHandler.aspx and the second to http://tipsycanvas.brinkster.net/cctx/Services/PayPalIPNHandler.aspx. 

As always you are a huge help.

Thanks,

Russell

 

 

11/18/2010 9:50:36 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

Also,

I have a lot of these transactions in my system log

2010-11-17 08:01:42,390 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-11-17 08:01:42,390 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-11-17 08:01:42,500 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2010-11-17 08:01:42,500 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2010-11-17 08:02:32,671 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - started IndexWriterTask task
2010-11-17 08:02:42,578 INFO mojoPortal.Web.WebTaskManager - started WebTaskManager task
2010-11-17 08:20:52,843 ERROR mojoPortal.Web.Services.PayPalIPNHandler -
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.Services.PayPalIPNHandler.HandleRequest()
2010-11-17 08:23:10,046 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2010-11-17 08:23:10,062 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2010-11-17 08:23:10,187 INFO mojoPortal.Web.EmailMessageTask - Queued EmailMessageTask on a new thread
2010-11-17 08:23:10,234 INFO mojoPortal.Web.EmailMessageTask - deserialized EmailMessageTask task
 

11/19/2010 9:06:11 AM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

When paypal redirects a user back to your site they redirect them to the pdthandler which is why the pdthandler does another redirect after processing the pdt to take the user to the order detail page.

The post from paypal to the ipnhandler does not involve the user at all, it is a server to server post, so it does not redirect anywhere. This page is not a page that is meant to be viewed in the browser.

The errors in your log about the ipnhandler could very well be logged when you navigate to the ipnhandler page in your web browser because none of the expected values are posted as they would be if it was a real post from paypal. 

11/19/2010 10:29:42 AM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

So I tried to manually post 1 IPN using the URL specified in PayPal and the autogenerated message that PayPal provided and when I looked at the system log I received the same error

2010-11-19 11:12:54,390 ERROR mojoPortal.Web.Services.PayPalIPNHandler -
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.Services.PayPalIPNHandler.HandleRequest()
 

I am wondering if it has anything to do with my event titles.  I have added html img tags to the titles in order to show the picture of the class that they are painting. 

http://tipsycanvas.brinkster.net/Services/PayPalIPNHandler.aspx?mc_gross=70.00&protection_eligibility=Eligible&address_status=confirmed&item_number1=a2c43f98-88e9-45d7-81b7-c584b7ee1235&tax=0.00&item_number2=a2c43f98-88e9-45d7-81b7-c584b7ee1235&payer_id=AL5EFBAYYHKCG&address_street=123 Test Address&payment_date=06:32:19 Nov 19, 2010 PST&payment_status=Completed&charset=windows-1252&address_zip=30620&mc_shipping=0.00&mc_handling=0.00&first_name=FirstName&mc_fee=2.33&address_country_code=US&address_name=FirstName LastName&notify_version=3.0&custom=76eadadf-de78-47ce-b2bc-04c20e4eba11&payer_status=unverified&business=paint@tipsycanvas.com&address_country=United States&num_cart_items=2&mc_handling1=0.00&mc_handling2=0.00&address_city=Bethlehem&verify_sign=AWYxjS6LEFCeGqJDu35ZiF0NsD2FACkEWokmM85tIb2oQZBnS8tJQ10q&payer_email=scoobyservtoo@msn.com&mc_shipping1=0.00&mc_shipping2=0.00&txn_id=83V59194UP074063R&payment_type=instant&last_name=LastName&address_state=GA&item_name1=Snowman<br /><img src="/data/sites/1/images/snowman.jpg" width=100><br />7PM-10PM - 12/5/2010&receiver_email=paint@tipsycanvas.com&item_name2=Snowman<br /><img src="/data/sites/1/images/snowman.jpg" width=100><br />7PM-10PM - 12/5/2010&payment_fee=2.33&quantity1=1&quantity2=1&receiver_id=BMKPBYSWGWYWA&txn_type=cart&mc_gross_1=35.00&mc_currency=USD&mc_gross_2=35.00&residence_country=US&transaction_subject=76eadadf-de78-47ce-b2bc-04c20e4eba11&payment_gross=70.00

11/19/2010 11:01:32 AM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

Hi Russell,

I think you have found a bug in our paypalipnhandler for Event Calendar Pro, but I may have a workaround you can use until I can get new release out.

If you edit the file /Setup/providerconfig/paypalipnhandlers/sts-eventcalendarpro-paypalipnhandler.config

change the name from STSEventsPayPalIPNHandler to PayPalIPNHandlerProvider

then touch your web.config file to clear the cache, then try manually posting your ipn again and see if it works.

Best,

Joe

11/19/2010 1:07:31 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

Still no luck.. I tried it the following ways.

<?xml version="1.0" encoding="utf-8" ?>
<PayPalIPNHandlerProviders>
<providers>

<add name="STSEventsPayPalIPNHandler"
type="sts.Events.Web.Helpers.PayPalIPNHandlerProvider, sts.Events.Web.UI"
description="Source Tree Solutions Event Calendar Pro PayPalIPNHandlerProvider" />

</providers>
</PayPalIPNHandlerProviders>

<?xml version="1.0" encoding="utf-8" ?>
<PayPalIPNHandlerProviders>
<providers>

<add name="PayPalIPNHandlerProvider"
type="sts.Events.Web.Helpers.PayPalIPNHandlerProvider, sts.Events.Web.UI"
description="Source Tree Solutions Event Calendar Pro PayPalIPNHandlerProvider" />

</providers>
</PayPalIPNHandlerProviders>

<?xml version="1.0" encoding="utf-8" ?>
<PayPalIPNHandlerProviders>
<providers>

<add name="PayPalIPNHandlerProvider"
type="sts.Events.Web.Helpers.STSEventsPayPalIPNHandler, sts.Events.Web.UI"
description="Source Tree Solutions Event Calendar Pro PayPalIPNHandlerProvider" />

</providers>
</PayPalIPNHandlerProviders>


 

11/19/2010 1:19:29 PM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

I only said to edit the name nothing else, your last example looks correct.

How are you posting the IPN manually? it has to be a form post, it isn't going to read values out of the query string, so just pasting that url in the browser won't do it.

I would set it like the 3rd example then try a real order for a small amount, or if I'm not mistaken PayPal will retry IPN every 24 hours for a short time if it does not get a success response when it posts.

btw, I really like your site, I watched the video on your home page, Tipsy Canvas art classes is a cool concept.

 

11/19/2010 1:46:13 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

I think that I am breathing a sigh of relief.  I just made a new order and I saw both the IPN and the PDT transaction in the Cart Log.  Thank you so much for your help. 

I am still working on my email confirmation functionality, but I got the password reminder email to work. 

Thanks for the Kudos of my site, and for all your help.  It is actually my wife's business and I have been wanting to make it a dynamic site for about a year (I've been making static PayPal buttons and a HTML calendar every month).  MojoPortal's calendar is the perfect tool for a small business start up without the capital to pay a developer!!!

The only features that I would really like to see is the ability to throw a thumb nail image into the Event Title(or just a separate image button that would generate it's own HTML) so that you don't have to write the HTML tag, and the ability to use files located under "/data/sites/1/" on every site.  I would try a virtual directory for the second site, but my hosting doesn't allow virtual directories in IIS.

Thanks again,

Russell

You must sign in to post in the forums. This thread is closed to new posts.