mat4
Forum Replies Created
-
Dear Support,
Do you already have a solution for this error?:
Notice: Undefined offset: 1 in ../wp-content/plugins/ultimate-member/core/um-short-functions.php on line 1315
The error is somehow related to the standard Youtube-Video field:
*** @Get youtube video ID from url ***/ function um_youtube_id_from_url($url) { $pattern = '%^# Match any youtube URL (?:https?://)? # Optional scheme. Either http or https (?:www\.)? # Optional www subdomain (?: # Group host alternatives youtu\.be/ # Either youtu.be, | youtube\.com # or youtube.com (?: # Group path alternatives /embed/ # Either /embed/ | /v/ # or /v/ | /watch\?v= # or /watch\?v= ) # End path alternatives. ) # End host alternatives. ([\w-]{10,12}) # Allow 10-12 for 11 char youtube id. $%x' ; $result = preg_match($pattern, $url, $matches); if (false !== $result) { return $matches[1]; } return false; } /***
Line 1315 says: return $matches[1];
I tried all kind of different validation methods, but it doesn’t help.
Please advise.
- This reply was modified 7 years, 1 month ago by mat4.
I also get the “ultimate-member/core/um-short-functions.php on line 1315”-Error
Please advise.
The directory doesn’t have any filters on.
When I start filtering the filter won”t work properly.For only showing females it does a good job but when selected showing only male it will present both genders.
The field form to be filtered is a drop down compulsory option field.
I disabled other plugins and it still does”t work.
The version is: 1.3.88
Current PHP version: native (7.1)
Dear UM Support,
thx for your quick reply.
The error log recorded the following issues:
PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /home/modelsan/public_html/wp-content/plugins/ultimate-member/core/um-filters-fields.php:396
Stack trace:
#0 /home/modelsan/public_html/wp-includes/class-wp-hook.php(298): um_field_non_utf8_value(‘Male’)
#1 /home/modelsan/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘Male’, Array)
#2 /home/modelsan/public_html/wp-content/plugins/ultimate-member/core/um-fields.php(1908): apply_filters(‘um_field_non_ut…’, ‘Male’)
#3 /home/modelsan/public_html/wp-content/plugins/ultimate-member/core/um-fields.php(2452): UM_Fields->edit_field(‘Gender2’, Array)
#4 /home/modelsan/public_html/wp-content/plugins/ultimate-member/core/um-actions-profile.php(554): UM_Fields->display(‘profile’, Array)
#5 /home/modelsan/public_html/wp-includes/class-wp-hook.php(298): um_add_profile_fields(Array)
#6 /home/modelsan/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
#7 /home/modelsan/public_html/wp-includes/plugin.php(453): in /home/modelsan/public_html/wp-content/plugins/ultimate-member/core/um-filters-fields.php on line 396Is this the reason for the problem I am facing? How to fix it?