Fatal Error when opening a result
-
Hi
When I try to view the results from the survey I receive following message:
Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/shortcodes.php:210 Stack trace: #0 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/shortcodes.php(210): strpos() #1 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/class-wp-embed.php(71): do_shortcode() #2 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/question-types.php(1448): WP_Embed->run_shortcode() #3 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/template-variables.php(1356): qsm_question_title_func() #4 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/template-variables.php(1149): qmn_polar_display_on_resultspage() #5 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/template-variables.php(483): qsm_questions_answers_shortcode_to_text() #6 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/class-wp-hook.php(303): mlw_qmn_variable_question_answers() #7 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters() #8 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php(295): apply_filters() #9 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php(64): qsm_generate_results_details_tab() #10 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/class-wp-hook.php(303): qsm_generate_result_details() #11 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #12 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action() #13 /srv/www/vhosts/bierjournal.ch/httpdocs/wp-admin/admin.php(259): do_action() #14 {main}<strong> thrown in /srv/www/vhosts/bierjournal.ch/httpdocs/wp-includes/shortcodes.php on line 210So I checked the file. On this line the funtion “has_shortcodes” starts:
/** * Whether the passed content contains the specified shortcode * * @since 3.6.0 * * @global array $shortcode_tags * * @param string $content Content to search for shortcodes. * @param string $tag Shortcode tag to check. * @return bool Whether the passed content contains the given shortcode. */ function has_shortcode( $content, $tag ) { if ( false === strpos( $content, '[' ) ) { return false; } if ( shortcode_exists( $tag ) ) { preg_match_all( '/' . get_shortcode_regex() . '/', $content, $matches, PREG_SET_ORDER ); if ( empty( $matches ) ) { return false; } foreach ( $matches as $shortcode ) { if ( $tag === $shortcode[2] ) { return true; } elseif ( ! empty( $shortcode[5] ) && has_shortcode( $shortcode[5], $tag ) ) { return true; } } } return false; }I have not used shortcodes actively. Nor am I a software engineer. Please help me to get the results. Otherwise all expenditure was for nothing.
Thanks
AlecThe page I need help with: [log in to see the link]
The topic ‘Fatal Error when opening a result’ is closed to new replies.