multisite – Fatal error on plugin in line 649 QUESTION & ANSWERS
Question
Fatal error: Cannot redeclare qa_question_submitted_redirect() (previously declared in /home/cp1271444p05/public_html/wp-content/plugins/question-answer/templates/add-question/add-question-hook.php:649) in /home/cp1271444p05/public_html/wp-content/plugins/question-answer/templates/add-question/add-question-hook.php on line 649
***I have a big issues on my siteweb. Please could you help me?
I am going to copy the code in the line 649 for helping you.***
The code in the line 649 is
function qa_question_submitted_redirect($question_ID, $post_data){
The all code is below
/* Redirect to new page when redirect is enable */
add_action('qa_question_submitted', 'qa_question_submitted_redirect', 99, 2);
function qa_question_submitted_redirect($question_ID, $post_data){
$qa_page_question_post_redirect = get_option('qa_page_question_post_redirect');
$redirect_page_url = get_permalink($qa_page_question_post_redirect);
if(!empty($qa_page_question_post_redirect)){
wp_safe_redirect($redirect_page_url);
exit;
}
}
0
4 months
2022-04-10T23:45:41-05:00
2022-04-10T23:45:41-05:00 0 Answers
0 views
0
Leave an answer