-
AuthorPosts
-
October 16, 2019 at 8:45 pm #1148659
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
BiggyOctober 22, 2019 at 9:32 am #1150086Hey 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,
IsmaelOctober 22, 2019 at 10:08 am #1150095This reply has been marked as private.October 23, 2019 at 8:37 am #1150404Hi,
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,
IsmaelOctober 28, 2019 at 3:39 pm #1151781This reply has been marked as private.October 28, 2019 at 10:25 pm #1151917Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Auto reload page’ is closed to new replies.
