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 Monday at 09:36 AM Share Posted Monday at 09:36 AM 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'); SoloInter, Eleeist, konon and 1 other 3 1 Link to comment Share on other sites More sharing options...
Mike Gholson Posted Monday at 06:35 PM Author Share Posted Monday at 06:35 PM 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 Monday at 06:41 PM Author Share Posted Monday at 06:41 PM 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 Monday at 07:02 PM Share Posted Monday at 07:02 PM 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 Monday at 09:49 PM Share Posted Monday at 09:49 PM 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 yesterday at 03:24 AM Author Share Posted yesterday at 03:24 AM 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 yesterday at 04:04 AM Author Share Posted yesterday at 04:04 AM 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...
Marc Posted yesterday at 08:33 AM Share Posted yesterday at 08:33 AM 4 hours ago, Mike Gholson said: 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 Indeed paypal will, but your site doesnt charge out PayPal. Only stripe would actually call out for payment, so had assumed it was stripe you were referring to there unfortunately. When deleting paypal, it does say there that it will remove them Im pretty sure thats done on a task, so I would delete that copy of the site if they are still running, as it may not have actually cancelled them all yet Link to comment Share on other sites More sharing options...
Richard Arch Posted 14 hours ago Share Posted 14 hours ago Could those reoccuring cost tasks be disabled on a test site? Link to comment Share on other sites More sharing options...
Marc Posted 4 hours ago Share Posted 4 hours ago 9 hours ago, Richard Arch said: Could those reoccuring cost tasks be disabled on a test site? No, as that may well be exactly what you are testing Link to comment Share on other sites More sharing options...
Recommended Posts