Mike Gholson Posted Saturday at 05:31 PM Share Posted Saturday at 05:31 PM Hi guys, After making a duplicate of my production site, I was able to get it upgraded with IPB 5 beta1. However, I noticed that emails are being sent to members (from the beta site). Is there a way I can totally disable emails on the beta site? It turns out that all forums and PM's are reset to a "new" status so the emails are flooding. Also, does running a copy of my production site also charge users for subscriptions? I want to know if I will need to disable something else to prevent this. Thank you! Link to comment Share on other sites More sharing options...
Marc Posted 22 hours ago Share Posted 22 hours ago I would suggest deleting payment gateways entirely so its not charging, as you are indeed correct there. As far as emails, you can put them in debug. To do that, you would create a constants.php file and add the following <?php define('EMAIL_DEBUG_PATH', '/dev/null'); Eleeist, SoloInter, konon and 1 other 3 1 Link to comment Share on other sites More sharing options...
Mike Gholson Posted 13 hours ago Author Share Posted 13 hours ago Thank you, I disabled email using the constants.php. However, I get an error when I try to remove payment types. See below. TypeError: IPS\File::get(): Argument #2 ($url) must be of type IPS\Http\Url|string, null given, called in /var/www/vhosts/classiczcars.com/beta.classiczcars.com/applications/nexus/sources/Gateway/Gateway.php on line 441 (0) #0 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/applications/nexus/sources/Gateway/Gateway.php(441): IPS\File::get() #1 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/system/Node/Controller.php(1372): IPS\nexus\Gateway->delete() #2 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/applications/nexus/modules/admin/payments/gateways.php(211): IPS\Node\Controller->delete() #3 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/system/Dispatcher/Controller.php(128): IPS\nexus\modules\admin\payments\gateways->delete() #4 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/system/Node/Controller.php(117): IPS\Dispatcher\Controller->execute() #5 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/applications/nexus/modules/admin/payments/gateways.php(61): IPS\Node\Controller->execute() #6 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/applications/nexus/modules/admin/payments/paymentsettings.php(86): IPS\nexus\modules\admin\payments\gateways->execute() #7 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/system/Dispatcher/Controller.php(128): IPS\nexus\modules\admin\payments\paymentsettings->__call() #8 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute() #9 /var/www/vhosts/classiczcars.com/beta.classiczcars.com/admin/index.php(15): IPS\Dispatcher->run() #10 {main} Is there another method I can use to disable these automatic payments? I'm afraid the system will charge people twice for their subscription (production site and beta site). Thank you! Mike Link to comment Share on other sites More sharing options...
Mike Gholson Posted 13 hours ago Author Share Posted 13 hours ago TBH, it would be nice to add a enable/disable function to the payment methods. This way we can shut off the gateway in times like this. I noticed the system tried reaching out to Paypal to cancel all the subscriptions but it failed (probably due to the domain name). So hopefully my production site wasn't affected by a bunch of cancelations. Link to comment Share on other sites More sharing options...
rnorth6920 Posted 13 hours ago Share Posted 13 hours ago 24 minutes ago, Mike Gholson said: Is there another method I can use to disable these automatic payments? I'm afraid the system will charge people twice for their subscription (production site and beta site). Thank you! Mike There is usually an option for "test" or "sandbox" within your payment gateway provider. Just put the test payment info in your admin payment section and you should be fine. I'd prefer and on off switch built into IPS, but doubt we'll ever get that. So the previous option is the best option that I'm aware of. SoloInter 1 Link to comment Share on other sites More sharing options...
Richard Arch Posted 10 hours ago Share Posted 10 hours ago You can also add the following to a constants.php file which will give you a new test payment gateway. Then swap your products/subscriptions over to use this instead. \define( 'NEXUS_TEST_GATEWAYS', true ); As Mike said I too would love a method to enable/disable the payment methods. Link to comment Share on other sites More sharing options...
Mike Gholson Posted 5 hours ago Author Share Posted 5 hours ago Yeah, looks like by attempting to delete my payment gateways from my beta site, I canceled them on my production site. Whatever you do, don't delete the gateways from a beta site if you are running a direct duplicate of your production site. RIP Link to comment Share on other sites More sharing options...
Mike Gholson Posted 4 hours ago Author Share Posted 4 hours ago Apparently deleting a payment gateway sends a message to Paypal telling them to shut off every single recurring subscription. I also recommend some kind of confirmation dialog or an opt-out of this process. Mike Link to comment Share on other sites More sharing options...
Recommended Posts