# Php 7 mysql\_pconnect()

**URL:** <https://help.egroupware.org/t/php-7-mysql-pconnect/70578>\
**Category:** eGW-users\
**Created:** [April 28, 2017, 8:00am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578 "2017-04-28T08:00:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [April 28, 2017, 8:00am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/1 "2017-04-28T08:00:17Z")

</div>

Hi All,  
I have updated to php7.0 and get the following error when I do Clear cache and register hooks  
Call to undefined function mysql\_pconnect()  
my setup is  
Debian 8  
PHP Version 7.0.18-1~dotdeb+8.1  
MySql = 10.1.22-MariaDB-1~jessie

in header.inc.php I had  
‘db\_type’ =\> ‘mysql’,  
I changed that to  
‘db\_type’ =\> ‘mysqli’,

Should this be MySQL PDO ?

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 3, 2017, 7:52am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/2 "2017-05-03T07:52:44Z")

</div>

Is this a bug or do I have an error in my configuration?

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 4, 2017, 8:35am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/3 "2017-05-04T08:35:45Z")

</div>

This also effects Chat

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 4, 2017, 8:49am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/4 "2017-05-04T08:49:34Z")

</div>

My settings are :-  
DB type = MySQLi  
DB port = 3306

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 4, 2017, 12:19pm UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/5 "2017-05-04T12:19:38Z")

</div>

I think egroupware needs to use mysqli\_pconnect() and not mysql\_pconnect()  
It sounds like a configuration issue on my server, Must I change some setting in MySQL ?

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 5, 2017, 8:36am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/6 "2017-05-05T08:36:57Z")

</div>

OK I did a complete removal and reinstall of egrpupware-epl using the  
Debian pkg manager.  
I restored the Mysql DB from backup  
All is working now.  
The down side is that I did not find the root cause of the problem.

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 8, 2017, 8:56am UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/7 "2017-05-08T08:56:53Z")

</div>

### Update

Only when I installed egroupware-epl-phpfreechat I get mysql\_pconnect() error.

---

<div class="post-metadata">

**Author:** ![ghooton](https://help.egroupware.org/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ghooton](https://help.egroupware.org/u/ghooton)\
**Post date:** [May 8, 2017, 1:56pm UTC](https://help.egroupware.org/t/php-7-mysql-pconnect/70578/8 "2017-05-08T13:56:10Z")

</div>

OK at [Release notes 16.1 · EGroupware/egroupware Wiki · GitHub](https://github.com/EGroupware/egroupware/wiki/Release-notes-16.1)  
I found the following:  
phpFreeChat (not available with PHP 7.0+)
