Error with phpmyadmin

johnjackson wrote on Tuesday, July 05, 2005:

I have received the following error messages when I click on database reporting(using OpenEmr 2.7.2 on Ubuntu)-

Warning: mb_ereg(): mbregex compile err: premature end of regular expression in /var/www/openemr-2.7.2/interface/main/myadmin/libraries/common.lib.php on line 1082

Warning: Cannot modify header information - headers already sent by (output started at /var/www/openemr-2.7.2/interface/main/myadmin/libraries/common.lib.php:1082) in /var/www/openemr-2.7.2/interface/main/myadmin/index.php on line 44.
PHP and mysql are seem to be working fine. All other functions of OpenEmr work fine… Does anyone know where I should start looking to correct this error? There was a post in the user section about this issue but I can not find where it was replied to…

Thank you in advance.

JohnJ

sunsetsystems wrote on Tuesday, July 05, 2005:

Someone else ran into this also:

http://sourceforge.net/forum/forum.php?thread_id=1282747&forum_id=202505

I’m not sure what the current status is.

– Rod <rod at sunsetsystems dot com>

johnjackson wrote on Tuesday, July 05, 2005:

Thanks for the post! ,

I changed the common.lib.php file line 1082
from

if ($is_show_dbs && ereg(’(^|[^\])(_|%)’, $dblist[$i])) {

to

if ($is_show_dbs ) {

I can now get into the database administration section of OpenEmr. Could this cause problems later on?

JohnJackson

sunsetsystems wrote on Tuesday, July 05, 2005:

I don’t know.  I suspect it would be safer to replace the "&quot; with "\&quot;, if that eliminates the compile error.

– Rod <rod at sunsetsystems dot com>