XF 2.1 Deactivate PayPal

kick

Well-known member
ErrorException: [E_WARNING] array_merge(): Argument #2 is not an array in src/XF/Admin/Controller/PaymentProfile.php at line 154
  1. XF::handlePhpError()
  2. array_merge() in src/XF/Admin/Controller/PaymentProfile.php at line 154
  3. XF\Admin\Controller\PaymentProfile->actionDelete() in src/XF/Mvc/Dispatcher.php at line 321
  4. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
  5. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  6. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  7. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2178
  8. XF\App->run() in src/XF.php at line 390
  9. XF::runApp() in admin.php at line 13
 
This likely indicates you have a purchasable handler whose getPurchasablesByProfileId method is not returning an array.

In fact, it must be returning something but whatever it is, it isn't an array.
 
This is the standard XenForo payment profile for payment via PayPal and I can not turn it off. Today I turned it on and then decided to deactivate.
 
Yes, but you must have an add-on or custom code which implements a custom purchasable type. XF only includes the user_upgrade purchasable type. Do you have any other purchasable items? The code for one of these handlers is unexpectedly not returning an array in its getPurchasablesByProfileId method.
 
Back
Top Bottom