Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Call to undefined function mb_strtolower()

UserPost

4:05 am
June 7, 2010


pixeline

Member

posts 3

1

Using version 1.2.2 with wordpress 2.9.2.

When trying to create a new post i get this fatal error:


Fatal error: Call to undefined function mb_strtolower() in /home/infograp/public_html/wp-content/plugins/role-scoper/admin/admin_rs.php on line 175


UPDATE:

I found another error message, when clicking on posts > Edit:

Role Scoper Config Error: the specified taxonomy () has not defined its relation to the object data source. A col_term2obj_tid or col_objtable_tid setting is required.

Please help!


Thanks a lot,


Alexandre

9:24 pm
June 7, 2010


Kevin

Admin

posts 2503

2

You must be running a PHP version that doesn't support that function. Try editing the RS php files to change every instance of mb_strtolower to strtolower

2:41 pm
June 21, 2010


cwjordan

Member

posts 2

3

As I understand it, I would need to recompile php to make the mbstrings functions available.  I'm in the same boat as pixeline, and since it's not convenient to have php recompiled at this time, and I didn't feel like editing all the RS php files to change every instance of mb_strtolower to strtolower, instead I added a function to functions.php in my theme that made mb_strtolower a call to strtolower, like so:

<?php

/* workaround for mb_strtolower not being enabled in php */


function mb_strtolower ( $content ) {

  $content = strtolower( $content );

  return $content;

}

?>


I suppose that will cause problems in the case where mb_strtolower is actually needed, but it's a reasonable workaround for now, at least I can post without error.



10:08 am
June 22, 2010


Kevin

Admin

posts 2503

4

For the next release, I'm planning to revert to using strtolower unless SCOPER_MB_STRINGS is defined as true.

5:43 pm
June 22, 2010


cwjordan

Member

posts 2

5

Kevin, that sounds good to me, thanks!

12:21 am
June 23, 2010


pixeline

Member

posts 3

6

That's great, thanks a lot!


About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1245

Posts: 5653

Members:

There are 1255 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin