Title: Fatal error during PHP command execution
Last modified: March 22, 2022

---

# Fatal error during PHP command execution

 *  Resolved [keysuck](https://wordpress.org/support/users/keysuck/)
 * (@keysuck)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/)
 * I received the following error while executing a PHP command:
 * >  Fatal error: Cannot use Automattic\WooCommerce\Admin\Features\OnboardingTasks\
   > Tasks\WooCommercePayments as WooCommercePayments because the name is already
   > in use in /instruments/www/wp-content/plugins/woocommerce/packages/woocommerce-
   > admin/src/Notes/SetUpAdditionalPaymentTypes.php on line 13
 * I have never encountered this issue in the past while running the same command.
   Please offer an assistance.
    -  This topic was modified 4 years, 1 month ago by [keysuck](https://wordpress.org/support/users/keysuck/).
    -  This topic was modified 4 years, 1 month ago by [keysuck](https://wordpress.org/support/users/keysuck/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15483032)
 * Hi [@keysuck](https://wordpress.org/support/users/keysuck/)
 * I understand that you got this error while running a PHP command.
 * From the code you shared it seems that it might be something related to the payment
   types set up at WooCommerce Payments.
 * As this is a development related topic I recommend reaching out at [the WooCommerce Developer Resources Portal](https://developer.woocommerce.com/).
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * Lastly, for direct assistance with code troubleshooting/customizations, we recommend
   consulting with the WooCommerce Customizations Partners. [https://woocommerce.com/customizations/](https://woocommerce.com/customizations/)`
 * Nevertheless, I’m going to leave this thread open for a bit to see if anyone 
   is able to chime in to help you out here.
 * * _Support for custom coding is beyond the [scope of support](https://woocommerce.com/support-policy/)
   we are able to provide in this forum. This particular forum is for questions 
   that are related to the WooCommerce core features._
 *  Thread Starter [keysuck](https://wordpress.org/support/users/keysuck/)
 * (@keysuck)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15494772)
 * WooCommerce Payments plugin is not installed at my WP site.
    I have no where 
   else to ask regarding WooCommerce core issues but here.
 *  [Abiola Ogodo](https://wordpress.org/support/users/oaoyadeyi/)
 * (@oaoyadeyi)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15495720)
 * [@keysuck](https://wordpress.org/support/users/keysuck/)
 * To take a further look:
    What PHP command did you run?
 * I look forward to hearing from you.
 *  Thread Starter [keysuck](https://wordpress.org/support/users/keysuck/)
 * (@keysuck)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15500602)
 * I executed thumbnail regenerate command via wp-cli:
 * `php wp-cli.phar media regenerate --yes`
 * I checked again and after disabling WooCommerce the command executes normally.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15500687)
 * Hi [@keysuck](https://wordpress.org/support/users/keysuck/)
 * Thanks for sharing the command you ran.
 * Additionally, kindly also share a copy of your site’s System Status so we can
   take a closer look. You can find it via **WooCommerce > Status**. Select “Get
   system report” and then “Copy for support”. Once you’ve done that, paste it here
   in your response.
 * Could you please navigate to **WooCommerce > Status > Logs** and from the dropdown
   on the right side, please see if there are any logs starting with the words `
   fatal-error`?
 * Please let us know what you find.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15521138)
 * We haven’t heard back from you in a while, so I’m marking this thread as closed–
   we’ll be here if and/or when you are ready to continue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal error during PHP command execution’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-php-command-execution/#post-15521138)
 * Status: resolved