Hi,
we found one error when enabling the cookie consent bar and advanced options.
We display message bar and cookie logic. And we select Auto reload page with: Auto reload on both buttons, or Auto reload Accept or do not accept
After this settings we have “> left under the socket.
The problem is in the file enfold/includes/helper-privacy.php on line 1522.
$output .= '<a class="avia-privacy-reload-tooltip-link" aria-hidden="true" href="#" rel="nofollow" data-avia-privacy-reload-tooltip="' . $reload . '"></a>';
The last quotation marks and the closing point brace before the closing a tag are too much. We have this already in the $output from $reload.
Please fix this in the next update.
Regards
Biggy
Hey Biggy,
Thank you for the update.
We don’t really see anything wrong with the code — it looks fine. Can you give us a screenshot of the issue?
$output .= '<div class="avia-privacy-reload-tooltip-link-container">';
$output .= '<a class="avia-privacy-reload-tooltip-link" aria-hidden="true" href="#" rel="nofollow" data-avia-privacy-reload-tooltip="' . $reload . '"></a>';
$output .= '</div>';
Best regards,
Ismael
Hi,
Thank you for the info.
Yes, you’re correct. Temporarily, you can use this filter in the functions.php file to replace the double quotes in the reload string with single quotes.
add_filter('avf_auto_reload_message', function($reload) {
return str_replace('"', '\'', $reload);
}, 10, 1);
The reload string is supposed to be inside the “data-avia-privacy-reload-tooltip” attribute, but it breaks out because of the double quotation marks. We’ll report the issue to the team.
Best regards,
Ismael
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon