sankari
Forum Replies Created
-
Hi @anupamkhatua,
Thank you for this info which I shared with the HivePress team. I will keep you posted.
Hi @turbodb,
Thanks for your answer and for sharing your findings and your code which helped a lot.
This one works for me and covers:
- subscription success page
- unsubscribe page
- unsubscribe success/failure page
function icegram_express_custom_styles() {
// add custom stylesheet for public pages of Icegram Express
wp_register_style( 'custom-ig-es-style', '/wp-content/uploads/custom-css-js/1792.css' );
$es_wp_styles = wp_styles();
$es_wp_styles->do_item( 'custom-ig-es-style' );
}
// unsubscribe page (/lite/public/class-email-subscribers-public.php)
add_action( 'ig_es_unsubscribe_form_after_start', 'icegram_express_custom_styles', 10, 0 );
// other public pages (/lite/public/partials/subscription-successful.php)
add_action( 'es_message_head', 'icegram_express_custom_styles', 10, 0 );Thanks again and have a great day!
Facing the same challenge as @turbodb, I tried to use the hook but it doesn’t add the stylesheet to the HTML code.
CSS:
/* Custom styles for Icegram Express */
#ig-es-unsubscribe-message.bg-indigo-600 {
background-color: #808080 !important;
}PHP:
function icegram_express_custom_styles() {
wp_enqueue_style( 'icegram_custom_styles', '/wp-content/uploads/custom-css-js/1792.css' );
}
add_action( 'ig_es_unsubscribe_form_after_start', 'icegram_express_custom_styles' );HTML output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example Title</title>
<meta1 http-equiv="refresh" content="10; url=https://example.tld/" charset="UTF-8"/>
<link rel='stylesheet' id='tailwind-css' href='https://example.tld/wp-content/plugins/email-subscribers/lite/admin/dist/main.css?ver=5.7.47' media='all' />
</head>
<body class="min-h-screen mt-16 px-4 pt-10 pb-12 mx-auto max-w-7xl bg-gray-200 sm:px-6 lg:px-8">
<section class="bg-indigo-600 py-12 px-12 text-white shadow-md sm:rounded-lg mx-auto sm:w-2/3 xl:w-7/12" id="ig-es-unsubscribe-message">
<div class="leading-6 tracking-wide">
<h3 class="font-medium text-base pb-4">
Unsubscription confirmed ! </h3>
<p class="font-thin text-lg">
[Custom text] </p>
</div>
</section>
<!-- Start-IG-Code -->
<!-- End-IG-Code -->
</body>
</html>Could you please tell me what I’m missing out?
Thank you!
Plugins:
Icegram Express 5.7.47
WPCode Lite 2.2.5
Simple Custom CSS and JS 3.49 (external stylesheet)- This reply was modified 1 year, 7 months ago by sankari.
Sorry, I just realized that the question of how to style it has been answered here already. So, I am closing this topic. Thanks!
@anupamkhatua Thank you very much for reply and for enhancing user’s data privacy.
Hi @anupamkhatua,
Thank you for your reply and screenshots. It’s the solution I’ve been using.
Hope you don’t mind my question but how can the background color of the message box be changed? It seems that those HTML pages are independent from the theme in use, so adding CSS in the Customizer doesn’t help.
Thanks!
Hello again @anupamkhatua ,
HivePress support replied that they inspected the code part where the error is triggered and this may be an Icegram Express issue. And they asked me to share these details with you:
“The error occurs because the core WordPress filter hook
add_meta_boxesstops passing the second parameter$post(or passesnull) on Icegram Express pages for some reason add_meta_boxes – Hook | Developer.WordPress.org Please check if Icegram Express somehow uses/affects this filter hook, it should pass the post object as a second parameter as documented in WordPress, maybe one of the callback functions added to this hook affects this.On our side, we’ll add another check if the post object is not
null(in the next update), but it shouldn’t benullin any case as per the WordPress documentation.”Please review and advise. Thanks!
Hope you are doing well too.
Thanks very much for your reply. Your information is helpful.
The reason I was asking about the logs as well is because I have a case where email addresses appear in the logs. It happened with SMTP errors like this one:
2025-01-02T16:30:19+00:00 ERROR SMTP Error: The following recipients failed: name@example.com: : Recipient address rejected: User unknown in virtual mailbox tableDoes this happen with others SMTP errors, too?
How long does the system store the logs?
So to summarize:
- Personal data of contacts who were part of a campaign remains stored for an unlimited time. For better data privacy, data of deleted users might be anonymized by a future release.
- Personal data of contacts who were not part of a campaign remains stored and for an unlimited time. In order to comply with GDPR, the data controller [i.e. administrator] either has to set up a workflow action that deletes the personal data of unsubscribed contacts from the audience or has to delete it manually.
Is that correct?
Thanks again and have a good weekend!
Hey @anupamkhatua,
That’s good news, thank you!
Hello @anupamkhatua,
Thanks very much for replying so soon and sorry to bother you.
I shared the issue with HivePress here now and will close this topic when resolved.
Thank you.
PS: Regarding my first question, I realise that deleting data of unsubscribing users can be achieved by a workflow/action “Delete User”. I assume it deletes the subscriber’s data from the audience list. What about the data in stored reports and logs?
Thank you for fixing, @papin
Hello @darkog ,
Thank you for your fast response.
Yes, the website uses the Wordfence plugin.
By deactivating it, the login page became accessible in recovery mode but after entering the credentials and hitting the log-in button the page just refreshed without any notice. By accessing it in regular mode in a private browser window it still showed the same PHP error.
It turned out that the cause was somewhere else: The WordPress Address (URL) and Site Address (URL) where missing in wp-config.php!
define('WP_HOME','https://www.domain.tld'); define('WP_SITEURL','https://www.domain.tld');Adding them solved the issue.
Thanks again for your support.
Same issue here, getting the fatal error when trying to access the WordPress login page:
Fatal error: Uncaught Error: Undefined constant “NONCE_KEY” in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-logs.php:152
Stack trace:
#0 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-logs.php(1252): IP_Location_Block_Logs::cipher_mode_key()
#1 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-apis.php(703): IP_Location_Block_Logs::search_cache(‘xxx.xxx.xxx.xx’)
#2 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-apis.php(716): IP_Location_Block_API_Cache::get_cache(‘xxx.xxx.xxx.xx’)
#3 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block.php(498): IP_Location_Block_API_Cache->get_location(‘xxx.xxx.xxx.xx’, Array)
#4 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block.php(809): IP_Location_Block::_get_geolocation(‘xxx.xxx.xxx.xx’, Array, Array, Array)
#5 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block.php(938): IP_Location_Block->validate_ip(‘login’, Array, true)
#6 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-load.php(159): IP_Location_Block->validate_login(1)
#7 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block.php(48): IP_Location_Block_Loader->run()
#8 /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block.php(212): IP_Location_Block->__construct()
#9 /home/httpd/vhosts/domain.tld/httpdocs/wp-includes/class-wp-hook.php(324): IP_Location_Block::get_instance(”)
#10 /home/httpd/vhosts/domain.tld/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /home/httpd/vhosts/domain.tld/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/httpd/vhosts/domain.tld/httpdocs/wp-settings.php(550): do_action(‘plugins_loaded’)
#13 /home/httpd/vhosts/domain.tld/httpdocs/wp-config.php(118): require_once(‘/home/httpd/vho…’)
#14 /home/httpd/vhosts/domain.tld/httpdocs/wp-load.php(50): require_once(‘/home/httpd/vho…’)
#15 /home/httpd/vhosts/domain.tld/httpdocs/wp-login.php(12): require(‘/home/httpd/vho…’)
#16 {main} thrown in /home/httpd/vhosts/domain.tld/httpdocs/wp-content/plugins/ip-location-block/classes/class-ip-location-block-logs.php on line 152
The keys exist in wp-config.php. Generating new keys through the API didn’t help.
The link sent by email to access WordPress in recovery mode throws the same error with almost the stack trace details.
There are no errors in the server log.
How can I solve this?
Forum: Themes and Templates
In reply to: [Raft] How to add SEO meta data to the front pageHi @andreearadacina21,
It helped! Thanks very much for your quick support.