Error on Submit Review Page
-
The following error displays on my new “Submit Review Page”
Warning: in_array() expects parameter 2 to be array, string given in /home/xxxxx/public_html/wp-content/plugins/ultimate-reviews/Shortcodes/SubmitReview.php on line 99
Here is the code that it’s referring to:
if ($Require_Login == “Yes” or in_array(“WooCommerce”, $Login_Options)) {
if (in_array(“WooCommerce”, $Login_Options)) {
$WooCommerce_Return = EWD_URP_WooCommerce_Customer_Login();if ($WooCommerce_Return[‘DisplayForm’] != “Yes”) {return $WooCommerce_Return[‘Response_HTML’];}
}
else {
$Logged_In_User = EWD_URP_Get_Login_Information();
if ($Logged_In_User[‘Login_Status’] == “None”) {
$ReturnString .= “<div class=’ewd-urp-login-message’>”;
$ReturnString .= __(“Please log in to leave a review”, ‘ultimate-reviews’);
$ReturnString .= “<br />”;
$ReturnString .= __(“Login Options:”, ‘ultimate-reviews’);
$ReturnString .= “</div>”;
$ReturnString .= “<div class=’ewd-urp-login-options’>”;
$ReturnString .= $Logged_In_User[‘ManageLogin’];
$ReturnString .= “</div>”;
return $ReturnString;
}
}
}
else {
$Logged_In_User[‘Author_Name’] = “”;
}The page I need help with: [log in to see the link]
- The topic ‘Error on Submit Review Page’ is closed to new replies.