Recent Topics

1 Feb 20, 2014 11:10    

Hello,

I am using b2e 5.0.7 and PHP 5.5 and I get the following error message in my blog:

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/.sites/xxx/sitexxx/web/blogs/inc/_core/_misc.funcs.php on line 871


When using preg_replace_callback instead I get another errormessage:

Warning: preg_replace_callback(): Requires argument 2, 'Array', to be a valid callback in /home/.sites/xxx/sitexxx/web/blogs/inc/_core/_misc.funcs.php on line 871

How can I avoid this?

Thanks and regards
will

2 Feb 20, 2014 16:06

Hello @saunders,

Maybe, the main problem is the PHP version you're currently using. The same way b2evo has lower requirements, there is also higher limits. So, that issue will be self-solved in the time to come (it's a normal situation), could you decrease your PHP version to 5.4 in the meantime?

Also, you could detect which one is the plugin that is producing that message by disabling each one of them, making a small change in the content and saving the post. For sure, one of the plugin that you're using is the source of the problem.

Regards!

3 Feb 20, 2014 18:15

Thanks mgsolipa!

I downgraded to PHP 5.4 - now the problem with preg_replace_callback does not pop up any more.

But another problem, not mentioned yet, still exists. After upgrading from 5.0.6 to 5.0.7 I get this error message:

Unerlaubte Mischung von Sortierreihenfolgen (latin1_swedish_ci, IMPLICIT) und (utf8_general_ci, COERCIBLE) f?r Operation 'like'(Errno=1267)


.. allthough utf8 for the database and utf8_general_ci for the tables are set correctly. I checked this a least tree times, table by table.

I had a look at locales.php. There en-US is set for locales and charset is defined by iso-8859-1. I don't know how to force a change by configuring the backend (admin) settings. There de-DE is set.

May be you can advice also for this problem

Thanks and regards,
will


Form is loading...