Hi, it seems the email cannot be loaded from the database What’s the URL you see on the browser?
Anyway that error is about editing a newsletter, it’s not related to subscriptions or other actions. If you have other errors, could you please share more details?
while trying to subscribe in front end:
WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
INSERT INTO wp_newsletter (email, name, surname, sex, status, ip, language, referrer, http_referer, token, country, city, region, last_activity, wp_user_id, updated) VALUES ('[email protected]', '', '', 'n', 'C', '27.34.64.160', '', '', '', 'da5444c430', '', '', '', '0', '0', '1751631386')
Fatal error: Uncaught Error: Attempt to assign property “_new” on bool in /home4/ptmxngmy/public_html/blog/wp-content/plugins/newsletter/subscription/subscription.php:530 Stack trace: #0 /home4/ptmxngmy/public_html/blog/wp-content/plugins/newsletter/subscription/subscription.php(230): NewsletterSubscription->subscribe2(Object(TNP_Subscription)) #1 /home4/ptmxngmy/public_html/blog/wp-includes/class-wp-hook.php(324): NewsletterSubscription->hook_newsletter_action(‘s’, NULL, NULL) #2 /home4/ptmxngmy/public_html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #3 /home4/ptmxngmy/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home4/ptmxngmy/public_html/blog/wp-content/plugins/newsletter/plugin.php(313): do_action(‘newsletter_acti…’, ‘s’, NULL, NULL) #5 /home4/ptmxngmy/public_html/blog/wp-content/plugins/newsletter/plugin.php(280): Newsletter->do_action() #6 /home4/ptmxngmy/public_html/blog/wp-includes/class-wp-hook.php(324): Newsletter->hook_wp_loaded(”) #7 /home4/ptmxngmy/public_html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #8 /home4/ptmxngmy/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home4/ptmxngmy/public_html/blog/wp-settings.php(749): do_action(‘wp_loaded’) #10 /home4/ptmxngmy/public_html/blog/wp-config.php(100): require_once(‘/home4/ptmxngmy…’) #11 /home4/ptmxngmy/public_html/blog/wp-load.php(50): require_once(‘/home4/ptmxngmy…’) #12 /home4/ptmxngmy/public_html/blog/wp-blog-header.php(13): require_once(‘/home4/ptmxngmy…’) #13 /home4/ptmxngmy/public_html/blog/index.php(17): require(‘/home4/ptmxngmy…’) #14 {main} thrown in /home4/ptmxngmy/public_html/blog/wp-content/plugins/newsletter/subscription/subscription.php on line 530
Now while creating newsletter and saving, error is displayed for 2sec and page is reloaded and its blank like New blank
That is a database error. Your tables are missing the primary key. Or missing the autoincrement option. Did you migrate them from another site?
nope, it was working fine, from last week it is giving me this error. what about completely wipe out database of newsletter, i deleted and reinstalled but database was not deleted, will fix if i complete delete newsletter with database, if yes how can i…??
from error.log:
wp-content/plugins/newsletter/includes/module.php on line 939
i have found more error:
This message was triggered by newsletter.
Call stack:
wp_die()
wp-content/plugins/newsletter/includes/module-base.php:1255
NewsletterModuleBase::dienow()
wp-content/plugins/newsletter/subscription/subscription.php:219
NewsletterSubscription->hook_newsletter_action()
wp-includes/class-wp-hook.php:324
do_action('newsletter_action')
wp-content/plugins/newsletter/plugin.php:313
Newsletter->do_action()
wp-content/plugins/newsletter/plugin.php:280
Newsletter->hook_wp_loaded()
wp-includes/class-wp-hook.php:324
do_action('wp_loaded')
wp-settings.php:749
Hi, you can delete all the tables newsletter*, the, when the plugin is reactivated, they will be recreated. If it was working, 99% you have crashed tables that just need to be repaired. Probably they’re myisam tables (innodb tables usually do not crash).
You should ask the provider for a check, there is a specific command to send to the database. There is even a plugin, maybe wp optimizer able to send that command but I’m not sure.
Hello,
haven’t heard you back from more than 3 weeks, we are now closing this ticket and mark it as resolved. If you still have questions or issues regarding our plugin, we’d kindly ask you to open another thread.
Regards,
Michael