oramryan
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Participants Database] Can’t add fields to databaseAdding one more post of feedback:
I got around the issue by commenting out line 829:
$name = mb_check_encoding($name, 'UTF-8') ? $name : mb_convert_encoding( $name, 'UTF-8' );Adding a field works now. I don’t need the sanity check for my personal use anyways.
Cheers,
Ryan- This reply was modified 8 years, 2 months ago by oramryan.
Forum: Plugins
In reply to: [Participants Database] Can’t add fields to databaseI got this in my PHP error log:
[20-Mar-2018 20:44:01 UTC] PHP Fatal error: Call to undefined function mb_check_encoding() in /var/www/html/wp-content/plugins/participants-database/classes/PDb_Manage_Fields.class.php on line 829
Function it is referring to is:
public static function make_name( $string ) { /* * truncate to 64 characters, then replace any characters that would cause problems * in queries */ $name = strtolower( str_replace( array(' ', '-', '/', "'", '"', '\\', '#', '.', '$', '&', '%'), array('_', '_', '_', '', '', '', '', '', '', 'and', 'pct'), stripslashes( substr( $string, 0, 64 ) ) ) ); /* * allow only proper unicode letters, numerals and legal symbols */ $name = mb_check_encoding($name, 'UTF-8') ? $name : mb_convert_encoding( $name, 'UTF-8' ); return preg_replace( '#[^\p{L}\p{N}_]#u', '', $name ); }Thanks for your help,
Ryan- This reply was modified 8 years, 2 months ago by oramryan.
Viewing 2 replies - 1 through 2 (of 2 total)