Title: HTTP 500 &gt; main.php (&#8220;/wp-admin/upgrade.php&#8221;) Db update automatic process
Last modified: June 9, 2024

---

# HTTP 500 > main.php (“/wp-admin/upgrade.php”) Db update automatic process

 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/http-500-main-php-wp-admin-upgrade-php-db-update-automatic-process/)
 * Got this fatal error when the site itself (WordPress user-agent) browse the path“/
   wp-admin/upgrade.php” :
 * `[09-Jun-2024 08:53:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined
   function woocommerce_get_page_id() in /home/xxxxxxxx/public_html/xxxxxxxx/plugins/
   brands-for-woocommerce/main.php:318
   #0 /home/xxxxxxxx/public_html/wp-includes/
   class-wp-hook.php(324): BeRocket_product_brand->register_taxonomy('')#1 /home/
   xxxxxxxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(
   NULL, Array)#2 /home/xxxxxxxx/public_html/wp-includes/plugin.php(517): WP_Hook-
   >do_action(Array)#3 /home/xxxxxxxx/public_html/wp-settings.php(695): do_action('
   init')#4 /home/xxxxxxxx/public_html/wp-config.php(118): require_once('/home/xxxxxxxx/...')#
   5 /home/xxxxxxxx/public_html/wp-load.php(50): require_once('/home/xxxxxxxx/...')#
   6 /home/xxxxxxxx/public_html/wp-admin/upgrade.php(18): require('/home/xxxxxxxx/...')#
   7 {main}
 * **“main.php” at line 318**
   `$shop_page_id = woocommerce_get_page_id( 'shop' );`
 * Use **wc_get_page_id** instead !!!

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

 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/http-500-main-php-wp-admin-upgrade-php-db-update-automatic-process/#post-17813285)
 * Hello,
   We will try to fix it in next plugin release.Regards,Oleg
 *  Thread Starter [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/http-500-main-php-wp-admin-upgrade-php-db-update-automatic-process/#post-17813311)
 * Thanks [@razyrx](https://wordpress.org/support/users/razyrx/)

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

The topic ‘HTTP 500 > main.php (“/wp-admin/upgrade.php”) Db update automatic process’
is closed to new replies.

 * ![](https://ps.w.org/brands-for-woocommerce/assets/icon-256x256.gif?rev=2770284)
 * [Brands for WooCommerce](https://wordpress.org/plugins/brands-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/brands-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/brands-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/brands-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/brands-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/brands-for-woocommerce/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [deprecated function](https://wordpress.org/support/topic-tag/deprecated-function/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [HTTP500](https://wordpress.org/support/topic-tag/http500/)
 * [wc](https://wordpress.org/support/topic-tag/wc/)

 * 2 replies
 * 2 participants
 * Last reply from: [Riversatile](https://wordpress.org/support/users/riversatile/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/http-500-main-php-wp-admin-upgrade-php-db-update-automatic-process/#post-17813311)
 * Status: not resolved