Hey,
first of all a big compliment – the plugin is really awesome!
It would be a great feature if you could restrict the display to logged-in users or user groups – also e.g. with the Restrict Content plugin.
Is there a workaround or maybe will you take in mind this idea for the future?
Best
Chris
Hello,
I have random memory saturations, they disappear when I deactivate the plugin.
[05-Jan-2023 16:10:04 UTC] PHP Fatal error: ?Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/<vhost>/www/wp-content/plugins/advanced-notification
s/includes/an-api.php on line 58
I can see that on that line there’s just a configuration array, so it’s quite tricky to debug.
]]>Hello, I am testing the update of our server to PHP 8 and the plugin breaks.
[03-Jan-2023 11:17:57 UTC] PHP Warning: foreach() argument must be of type array|object, string given in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php on line 96
[03-Jan-2023 11:17:57 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: array + string in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php:104
Stack trace:
#0 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(113): AdvancedNotificationsFunctions->register_notifications()
#1 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(124): AdvancedNotificationsFunctions->notifications_list()
#2 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(144): AdvancedNotificationsFunctions->active_notifications_list()
#3 /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php(50): AdvancedNotificationsFunctions->get_page_notifications()
#4 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(308): AdvancedNotificationsFunctions->add_enqueue()
#5 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#6 /var/www/<virtualhost>/www/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /var/www/<virtualhost>/www/wp-includes/script-loader.php(2180): do_action()
#8 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts()
#9 /var/www/<virtualhost>/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#10 /var/www/<virtualhost>/www/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/<virtualhost>/www/wp-includes/general-template.php(3043): do_action()
#12 /var/www/<virtualhost>/www/wp-content/themes/jupiter-child/header.php(4): wp_head()
#13 /var/www/<virtualhost>/www/wp-includes/template.php(783): require_once('...')
#14 /var/www/<virtualhost>/www/wp-includes/template.php(718): load_template()
#15 /var/www/<virtualhost>/www/wp-includes/general-template.php(48): locate_template()
#16 /var/www/<virtualhost>/www/wp-content/themes/jupiter/page.php(8): get_header()
#17 /var/www/<virtualhost>/www/wp-includes/template-loader.php(106): include('...')
#18 /var/www/<virtualhost>/www/wp-blog-header.php(19): require_once('...')
#19 /var/www/<virtualhost>/www/index.php(17): require('...')
#20 {main}
thrown in /var/www/<virtualhost>/www/wp-content/plugins/advanced-notifications/includes/an-functions.php on line 104
Since PHP 7.4 is EOL, do you mind to fix this bug ?
Thanks
]]>Two questions :
1) Specific page/post
We want to use your plugin to show a notification on our homepage (and ONLY) our homepage, but when selecting the publish type ‘Only on a specific page’, we cannot select which page it should show on.
Where can we configure on which page(s) it should show up?
2) We want to upload an animated HTML-5 banner as an animation instead of a plain text/photo notification.
Is this possible with your plugin? If so, can you tell us where we can import the HTML-5 package?
P.S: I cannot add a link to the website, as it is a protected domain which is not accessible by exernal users.
Kind regards
]]>Hi,
I’m using the Advanced Notifications plugin on a number of sites and I’ve noticed that a Javascript error appears in the console whenever you click into a form field on the contact page.
Uncaught TypeError: Cannot read properties of undefined (reading ‘animation_in’)
an.js line 172
The error is having a detrimental impact on sites using Woocommerce and is preventing orders from being placed in some cases.
Please could you look into this and suggest a potential solution to prevent the Javascript error from occurring. Thank you.
Kind regards,
Garry Knapper
Hello,
With Rules set to limit display of post 1180 to once-per-day, it displays on every page load.
an_cancel_for_1180 & an_limitations_1180 seem to be in place … ?
Is this a function of wpengine cache? Alert Notice Boxes plug-in did not have issue, FYI.
]]>Hi, checking today the server error log I discovered a lot of the following errors:
AH01071: Got error 'PHP message: PHP Warning: include_once(/[...]/wp-content/plugins/advanced-notifications/includes/an-interface-api-pro.php): Failed to open stream: No such file or directory in /[...]/wp-content/plugins/advanced-notifications/advanced-notifications.php on line 44
PHP message: PHP Warning: include_once(): Failed opening '/[...]/wp-content/plugins/advanced-notifications/includes/an-interface-api-pro.php' for inclusion (include_path='.:/opt/plesk/php/8.1/share/pear') in /[...]/wp-content/plugins/advanced-notifications/advanced-notifications.php on line 44
PHP message: PHP Warning: include_once(/[...]/wp-content/plugins/advanced-notifications/includes/an-functions-pro.php): Failed to open stream: No such file or directory in /[...]/wp-content/plugins/advanced-notifications/advanced-notifications.php on line 45
PHP message: PHP Warning: include_once(): Failed opening '/[...]/wp-content/plugins/advanced-notifications/includes/an-functions-pro.php' for inclusion (include_path='.:/opt/plesk/php/8.1/share/pear') in /[...]/wp-content/plugins/advanced-notifications/advanced-notifications.php on line 45'
]]>
I am wondering if there is a way to trigger a notification to pop up when a button is clicked, in addition to the normal triggers?
]]>In one of my notification pop ups I have a form embedded. The color of the submit button is different on various devices, and seems to be ignoring any css or site settings. Grey on desktop, red on iPad, blue on iPhone.
I have tried it with both Gravity Forms and also a form builder from my theme.
I’ve tried a ton of things, but can’t seem to get any to work. Any idea on what to do?
]]>I just installed this plugin after seeing the old version was closed. I tried to add in a shortcode for a Gravity Form, but it’s not displaying the form, just the shortcode itself.
I couldn’t find any setting to turn shortcakes on or off or anything.
Any idea what’s happening?
]]>