# PHP 7 and mysql\_connect

**URL:** <https://colorlibsupport.com/t/php-7-and-mysql-connect/27753>\
**Category:** Unite Theme\
**Created:** [February 9, 2021, 9:32pm UTC](https://colorlibsupport.com/t/php-7-and-mysql-connect/27753 "2021-02-09T21:32:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamedkhaled](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/50afbb/32.png) [@Mohamedkhaled](https://colorlibsupport.com/u/Mohamedkhaled)\
**Post date:** [February 9, 2021, 9:32pm UTC](https://colorlibsupport.com/t/php-7-and-mysql-connect/27753/1 "2021-02-09T21:32:04Z")

</div>

Hi,

I love Unite theme as we are using it for our website. My existing theme gets broken after updating the WordPress to version 5.6 and PHP to version 7.4. I managed to update the theme and plugins. however, I encountering an issue while trying to embed a new web form to any page. PHP function that is not available in PHP 7. It is mysql\_connect. is there anyway to fix this issue.

Unite theme version: 2.0.2

Error: **Fatal error** : Uncaught Error: Call to undefined function mysql\_connect() in /home/khoshaim/www/www/wp-content/themes/unite/page-publication.php:35 Stack trace: #0 /home/khoshaim/www/www/wp-includes/template-loader.php(106): include() #1 /home/khoshaim/www/www/wp-blog-header.php(19): require\_once(‘/home/khoshaim/…’) #2 /home/khoshaim/www/www/index.php(17): require(‘/home/khoshaim/…’) #3 {main} thrown in **/home/khoshaim/www/www/wp-content/themes/unite/page-publication.php** on line **35**

Thanks,

 ![image](https://colorlibsupport.com/uploads/default/original/2X/b/b741b1d431b9ed4722d34a47b9059fa95887638a.png)

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [February 10, 2021, 9:51am UTC](https://colorlibsupport.com/t/php-7-and-mysql-connect/27753/2 "2021-02-10T09:51:42Z")

</div>

Hey there

1. please update it to the latest version
2. Please downgrade the version of your PHP and try again, it’s not fully ready to PHP 7.4
