PHP 7 and mysql_connect


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


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