PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 02-22-2005, 06:13 AM   #1
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
Warning: mb_ereg_replace() [function.mb-ereg-replace] ...

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/lightpower.de/htdocs/suche/libs/search_functions.php on line 174

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/lightpower.de/htdocs/suche/libs/search_functions.php on line 175

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/lightpower.de/htdocs/suche/libs/search_functions.php on line 176

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/lightpower.de/htdocs/suche/libs/search_functions.php on line 177

kaffeebronko is offline   Reply With Quote
Old 02-22-2005, 06:15 AM   #2
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
Warning: mb_ereg_replace() [function.mb-ereg-replace] ...

Hi!
I'm trying to get phpdig running... I got all the pages indexed correctly but when I try to search this comes out:
(can anybody help me please? -> thx!)

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/xxx/htdocs/suche/libs/search_functions.php on line 174

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/xxx/htdocs/suche/libs/search_functions.php on line 175

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/xxx/htdocs/suche/libs/search_functions.php on line 176

Warning: mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: premature end of char-class in /home/xxx/htdocs/suche/libs/search_functions.php on line 177

Last edited by kaffeebronko; 02-22-2005 at 06:20 AM.
kaffeebronko is offline   Reply With Quote
Old 02-22-2005, 05:44 PM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
What versions: PHP, MySQL, PhpDig?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 12:50 AM   #4
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
Sorry...

PHP 5.0.3
MySQL 4.1.10
PhpDig 1.8.8-rc1
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 12:55 AM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Do you have the .htaccess file that came with PhpDig 1.8.8 RC1 in your PhpDig directory?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 01:59 AM   #6
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
Yes, this is the content at the moment ( I didn't change anything...)

# start htaccess file
PHP_VALUE default_charset UTF-8
PHP_VALUE mbstring.func_overload 0
PHP_VALUE mbstring.encoding_translation On
# end htaccess file
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 02:01 AM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Try changing PHP_VALUE mbstring.func_overload 0 to PHP_VALUE mbstring.func_overload 7
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 02:27 AM   #8
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
I tried that in the php.ini yesterday. But anyway I tried it in the .htaccess - file after your posting, but it didn't seem work. Do you know any other hint? Would be cool... thanks.
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 02:37 AM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
You can set PHP_VALUE mbstring.func_overload 7 back to PHP_VALUE mbstring.func_overload 0 in the .htaccess file, as zero is what I considered when I made the code.

The thing is that the robot_functions.php file has similar statements, so it's weird that you didn't see errors like this when indexing, or did you?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 02:47 AM   #10
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
While Indexing the sites the program works very well... all things are ok... I proved it in the database. Only if I to search with the search.php script then I see this Warnings...
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 03:19 AM   #11
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Did you change any of the code? Again weird, because robot_functions.php contains similar statements, oh and so does phpdig_functions.php.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 03:42 AM   #12
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
No I didn't change any of the code... I did a fresh install 3 times. The last time I just edited the /includes/config.php and the /includes/connect.php..

connect.php:

define('PHPDIG_DB_PREFIX','');
define('PHPDIG_DB_HOST','localhost');
define('PHPDIG_DB_USER','xxx');
define('PHPDIG_DB_PASS','xxx');
define('PHPDIG_DB_NAME','phpdig');

and in the config.php I changed:

define('PHPDIG_ADM_AUTH','1'); // activates/deactivates login
define('PHPDIG_ADM_USER','xxx'); // login username
define('PHPDIG_ADM_PASS','xxx'); // login password

That's the only things I changed in my last install...
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 03:46 AM   #13
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Are you able to try PhpDig 1.8.8 RC1 on PHP 4.3.10?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-23-2005, 04:13 AM   #14
kaffeebronko
Green Mole
 
Join Date: Feb 2005
Posts: 13
yes... will take a moment... I'll try to downgrade the testserver...
kaffeebronko is offline   Reply With Quote
Old 02-23-2005, 05:02 AM   #15
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Okay, cool. I don't yet see why robot_functions.php and phpdig_functions.php work okay but search_functions.php barfs.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help using output as Array function ehdesign How-to Forum 0 09-16-2006 06:32 AM
mb_ereg_replace() frankyfish Troubleshooting 0 06-22-2006 01:02 PM
Spider problem, Search mb_ereg_replace problem. (Fixed?!) cpeter Troubleshooting 0 02-24-2006 02:56 PM
ereg(): REG_BADRPT jerrywin5 How-to Forum 2 04-06-2005 09:04 PM
Warning clearwater Troubleshooting 1 01-02-2004 09:31 PM


All times are GMT -8. The time now is 06:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.