Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

PHP Script on Upgrade

  • Andras D.
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 13 hours ago #178415 by Andras D.
PHP Script on Upgrade was created by Andras D.
Hello, 

I seem to have a problem with the custom PHP scripts (PHP Script Settings) when someone upgrades to another subscription.
I use Subscription Active Script, Subscription Expired Script and Subscription Update Script. When a user upgrades looks like none of these is being called (run).
All works just fine for new subscriptions but not upgrades.

Is it possible that the upgrade process bypasses the script run? I expect the  Subscription Active Script to be run.

Thanks!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 weeks 6 days ago #178426 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PHP Script on Upgrade
Hi Andras

Yes. When users upgrade their subscription, the script Subscription Active Script should be executed

Tuan

Please Log in or Create an account to join the conversation.

  • Andras D.
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 6 days ago #178428 by Andras D.
Replied by Andras D. on topic PHP Script on Upgrade
Hi Tuan,

It does not seem to be the case. I had two upgrades recently, but the Subscription Active Script was not executed.
I have logging enabled in my PHP script, and it did not log anything at all for the upgrades. No PHP error has been logged either.

Are there any sort of internal logs for Membership Pro?

Thanks!

Regards, Andras

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 weeks 6 days ago #178429 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PHP Script on Upgrade
There is no internal logs like that. But I'm sure the script will be executed. It will work in the same way when someone subscribes for the plan and the subscription becomes active. There is no difference

Please Log in or Create an account to join the conversation.