Trying to build out a new site, D7.12, Commerce 7.x-1.2, Commerce Post Affiliate Pro 7.x-1.x-dev and PAP library downloaded via project page link to http://demo.qualityunit.com.

Clicking any of the tabs on the admin/commerce/config/post-affiliate-pro page produces:
Fatal error: Call to a member function getMessage() on a non-object in /home/sdtdev7/public_html/sites/all/modules/commerce_post_affiliate_pro/commerce_post_affiliate_pro.module on line 569

This error is due to not having the Merchant ID in the admin/commerce/config/post-affiliate-pro and the module trying to write an error about the failed login to watchdog.

While this error is not a show stopper as I will have the ID soon, I am not getting any of the perms for the module in permissions admin screen. These two things together give me concern as I need to have a site up, with affiliate functionality a few days ago. So a couple of questions:
Is there a functional installation of the Post Affiliate Pro module in D7 with Commerce?
Should I go to Ubercart 3 with Affiliate 2 for now and come back to Commerce with PAP later?

I thank you for your work on this module. I prefer to use Commerce with PAP and am interested in helping with it. If it could be ready for use in a day or two I will help now. If it needs more love than that, I have to get this site up with Ubercart and then come back to Commerce with PAP.

Thank you,
Ron D.

Comments

larowlan’s picture

Hi Ron
Whilst it's only a dev release, it's being successfully used on production site (I ported it for that site).
When you get your PAP codes, see how you go. I'm keen to get others' input on the module and would guide you through getting it going.
If we could narrow down any issues from your install I'd be happy to roll an alpha release shortly after.
Thanks

Lee

RonD’s picture

Hi Lee,
Got info from PAP, put it in the config screen. Still getting invalid login, but now at least the error messages displayed on my screen.

Do you have any set up/config instructions I could get?

Still not getting any permissions available. It's like the code is not getting executed. any pointers on what to do with this part of the issue?

Ron D.

larowlan’s picture

Can you elaborate on the permissions, are you missing the options on the permission screen?
Possibly I've missed those in the port.

RonD’s picture

The permissions definitions are in the module, they are not displaying on the permissions screen.

Ron D.

larowlan’s picture

Hey, I've committed the fix for the missing permissions, I'd not renamed the hook properly.
Dev releases are re-rolled every 24 hours, or you can fetch it from git.

RonD’s picture

Thank you Lee, the permissions settings are now working in the Permissions admin screen.

Still getting invalid login to PAP. that I need to work with them on. However, still getting the error I originally posted about:

Fatal error: Call to a member function getMessage() on a non-object in /home/sdtdev7/public_html/sites/all/modules/commerce_post_affiliate_pro/commerce_post_affiliate_pro.module on line 569

This is where the module is trying to write a message to watchdog about the login failure to PAP. That error message is not getting to watchdog, but a notice is:

Notice: Undefined variable: e in commerce_post_affiliate_pro_get_session() (line 569 of /home/sdtdev7/public_html/sites/all/modules/commerce_post_affiliate_pro/commerce_post_affiliate_pro.module).

Also, should we be doing this troubleshooting and exchange off-list?

Ron D.