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/15/2010 2:32:01 PM
Gravatar
Total Posts 16

Bug when creating user from Second Site Calendar.

System Information
mojoPortal Version 2.3.5.4 MSSQL
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Version v4.0.30319 Running in Full Trust
Server Time Zone Eastern Standard Time
Server Local Time (GMT -5) 11/15/2010 3:21:43 PM
Greenwich Mean Time (GMT/UTC) 11/15/2010 8:21:43 PM
 

When my users are on my second sites Event Calendar Pro object and they attempt to register from one of my events they have a problem.  Basically, they are allowed to register, but once they do and they click the continue button it takes them to a page that does not exist. 

My second site is running as a Folder called cctx the url that it attempts to hit is http://tipsycanvas.brinkster.net/cctx/cctx/Events/PurchaseTicket.aspx?pageid=10&mid=14&ItemID=21

So basically the problem is that the link is accounting for the cctx folder twice.  Once as the Root directory and once as a regular directory.  Any thoughts on how to avoid this issue?

11/15/2010 2:44:39 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

For the time being i have just creating a link on the administration page that links http://tipsycanvas.brinkster.net/cctx/cctx/Events/PurchaseTicket.aspx to

http://tipsycanvas.brinkster.net/cctx/corpus-christi-tx.aspx

11/16/2010 8:37:53 AM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

I'm confused by your bug report because you say it happens after they click the "Continue" button, what page is this button on?

Can you clarify the steps to produce this problem?

Thanks,

Joe

11/16/2010 8:45:46 AM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

Also it seems like you have some strange redirects going on. When I'm on your cctx folder site ( http://tipsycanvas.brinkster.net/cctx/corpus-christi-tx.aspx ) and I click the home link which has the url http://tipsycanvas.brinkster.net/cctx/home.aspx It redirects to the parent site url http://tipsycanvas.brinkster.net/

Which makes me wonder why you are using multiple sites in the first place. you could easily visually partition a single site into different sections and avoid all the complicated urls and redirects associated with folder sites.

Best,

Joe

11/16/2010 1:33:12 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

Two issues here.  I have two separate paypal accounts and that is why have two seperate sites.  The only page that needs to be different on the second site is the event calendar for the second Tipsy Canvas Location.  Thus I have made all other pages return to the original site.

"I'm confused by your bug report because you say it happens after they click the "Continue" button, what page is this button on?" 

The Continue button pops up when a new website visitor clicks to register for a class and then they proceed to the "Register Now" button because they have never created a user.  They add their new user account then save and are redirected to the "Continue Button" which looks to point toward the even they originally tried to register for.  The only problem is that it links you to the Root directory of the second site twice.  Like "/cctx/cctx/", I put in a redirect when the system attempts to request this page "http://tipsycanvas.brinkster.net/cctx/cctx/Events/PurchaseTicket.aspx" now it directs them back to the Corpus Calendar page instead. 

Now, for a more urgent issue that just came to my attention today.  We released the website and people began registering for classes and paying on PayPal.  However, I am only getting a fraction of the registrations to return the PDT from PayPal.  I think it is because the user must click to Return to the Tipsy Canvas Website button from PayPal after Registering in order for the PDT to start transferring.  If the user simply closes the browser or types in a new URL before returning to the website  I do not receive notification that a seat has been sold or that a payment has been made.  We called Pay Pal and they mentioned that the PayPal button that we use on our website is for checkout only and that if we wanted to force the user to be redirected we would need to use the Pay Pal Cart Button.  Is this possible with Mojo Portal? 

Thanks for the quick responses so far.  This issue is by far my most challenging because of the limited seat inventory that we have for each class.  I am going now to buy you a few beers, please help in any way you can.

Thanks,

Russell

11/16/2010 1:49:45 PM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

Hi Russell,

Ok, that sounds like a redirect bug in the mojoportal registration page, I will look into it.

The issue with PayPal PDT is probably the same as the issue mentioned on this thread, there seems to be a bug at PayPal where the parameters sometimes get duplicated in the url when PayPal redirects to the PDTHandler page. I've added extra handling for this already in our source code repository so it will be fixed in the next release or if you are able to produce your own build from source code you could get it right now. However when I say fix I really mean workaround, the bug is on PayPal not in mojoPortal, and as indicated in the other thread it is not the first time this bug has come up at PayPal, it happened in 2006 and 2007.

Obviously if some of your customers are getting redirected by PDT then the paypal support was incorrect, there is nothing wrong with the button and nothing needs to be changed about the button to solve this, they just need to fix the problem of duplicated pdt params on their end.

The best thing you could do right now is also enable IPN (Instant Payment Notification), this way transactions are posted to your site regardless of whether PDT works. By having both PDT and IPN the notification to your site is redundant so you don't miss any transactions even if PDT fails. It will still send the user a confirmation email and track the order in your site when the IPN notification comes in or when PDT is correct.

Our documentation has instructions for configuring both PDT and IPN

http://www.mojoportal.com/using-paypal-standard.aspx

Hope it helps,

Joe

ps Many thanks for the cups of coffee!

11/16/2010 2:20:51 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

Thanks for the information.  The funny thing is I do have IPN turned on within PayPal.  I just did a test and it looks like every payment that is submitted with a valid PayPal account is being automatically redirected back to the mojo portal confirmation page.  It is just the users who enter their CC info in but do not register with pay pal that are having the redirect problem.  And if they click to Return to my site the payment is processed in MojoPortal.  I even resent an IPN earlier and I guess it wasn't received either.  The IPN URL is http://tipsycanvas.brinkster.net/Services/PayPalIPNHandler.aspx .  I think that is correct.

11/16/2010 2:32:31 PM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

IPN will only happen after the payment has been fully processed so with a credit card rather than a paypal account it may not be as "Instant", it may take a few minutes.

If you are using a folder site then both your PDT url and IPN url must have the folder in the url like:

http://tipsycanvas.brinkster.net/cctx/Services/PayPalIPNHandler.aspx

You should be able to see PDT and IPN responses from the admin order browser > order detail. You should see the paypal log for each sold ticket order. We have the same thing in WebStore and that is how I verified that I was not getting PDT on several orders last week, I would only see the IPN in the log.

Hope it helps,

Joe

11/16/2010 2:33:43 PM
Gravatar
Total Posts 16

Re: Bug when creating user from Second Site Calendar.

It seems that I am getting a lot of system errors on attempting to send confirmation emails.  I wonder if that is what is causing the IPN process to fail.  What has to be set to send out confirmaiton emails?

11/16/2010 2:42:16 PM
Gravatar
Total Posts 18439

Re: Bug when creating user from Second Site Calendar.

Email cannot affect IPN nor PDT. Ticket order confirmation email is triggered either by PDT or IPN that indicates payment has cleared (whichever one comes first). So if neither of those happens no email will be sent. When it does send the email if it fails it will log it, the same as any feature in mojoPortal that sends email, but nothing depends on the success of sending email, the only consequence of failure to send email is that the message is not sent and therefore not received.

http://www.mojoportal.com/emailconfiguration.aspx

Hope it helps,

Joe

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.