Troubleshooting Logs, Consent Mode V2
-
Hello,
I’m not sure if the functionality problems occurred after the last update, but I’ve noticed the following:
- On one of the websites where it was installed, it doesn’t log any events at all (there are no entries in the “log table”Consent Records” tab).
- Consent Mode V2 no longer works in combination with Google Tag Manager (see the Event Consent State, into the link)
Best regards,
Radovan D.
-
After several checks, I noticed that the problem does not occur in version 1.4.0 and the problem is generated by version 1.5.0.
Hey, @radovand!
It seems that you might have enabled the “Hide empty categories” feature without listing any cookies.
Here’s what might be happening:
- In the “General” tab, the “Hide empty categories” option is enabled
- In the “Cookies” tab, no cookies are listed
This configuration would cause all categories to be hidden, leading to them appearing as “Denied” in Google Tag Manager.
To resolve this, either list your website’s cookies in the “Cookies” tab or disable the “Hide empty categories” option.
If that’s not the case, please provide your settings to help us troubleshoot the issue you’re experiencing more effectively.
To export your settings as a JSON file:
- Log in to wp-admin
- Navigate to “Cookie Consent”
- Scroll to the bottom of the settings page
- Click “Export Settings”
Hi,
It seems that you might have enabled the “Hide empty categories” feature without listing any cookies.
I just upgraded from version 1.4.0 to version 1.5.0 without changing anything in the plugin settings.
In the “General” tab, the “Hide empty categories” option is enabled
In the “Cookies” tab, no cookies are listedTrue, but this is the default state after the plugin update.
I disabled the “Hide empty categories” option and this solved the problem.
As a conclusion, after the update from v 1.4.0 to v 1.5.0, there appeared this option “Hide empty categories” which is enabed by default.
Thanks a lot.
Have a nice day
Radovan D.
I have another site, on which the plugin doesn’t work properly, even after deactivating “Hide empty categories”. In addition, it does not register “Consent records” at all.
The initial status for all cookies is denied:
https://ibb.co/yBxDW20Here are the content settings:
{“autorun”:true,”force_consent”:false,”autoclear_cookies”:false,”page_scripts”:true,”hide_from_bots”:true,”reconsent”:true,”delay”:0,”cookie_expiration”:182,”cookie_path”:”/”,”cookie_domain”:”horeca-masters.ro”,”auto_language”:”browser”,”cookie_name”:”pressidium_cookie_consent”,”languages”:{“ro”:{“consent_modal”:{“title”:”Consim??mantul cookie”,”description”:”Bun? ziua, folosim module cookie pentru a asigura buna func?ionare a site-ului, pentru a analiza traficul ?i performan?a ?i pentru a oferi func?ii de social media. Set?ri Cookie”,”primary_btn”:{“text”:”Accept tot”,”role”:”accept_all”},”secondary_btn”:{“text”:”Accept cele necesare”,”role”:”accept_necessary”}},”settings_modal”:{“title”:”Preferin?e pentru cookie-uri”,”save_settings_btn”:”Salveaz? set?rile”,”accept_all_btn”:”Accept tot”,”reject_all_btn”:”Refuz tot”,”close_btn_label”:”?nchide”,”cookie_table_headers”:[{“name”:”Nume”},{“domain”:”Domeniu”},{“expiration”:”Expirare”},{“path”:”Calea”},{“description”:”Descriere”}],”blocks”:[{“title”:”Utilizarea Cookie ??”,”description”:”Utiliz?m module cookie pentru a asigura buna func?ionare a site-ului, pentru a analiza traficul ?i performan?a ?i pentru a oferi func?ii de social media. Face?i clic pe diferitele titluri de categorie pentru a afla mai multe ?i pentru a schimba set?rile noastre implicite. Cu toate acestea, blocarea anumitor tipuri de module cookie poate avea un impact asupra experien?ei dvs. pe site ?i asupra serviciilor pe care le putem oferi.”},{“title”:”Cookie-uri strict necesare”,”description”:”Aceste module cookie sunt necesare pentru ca site-ul s? func?ioneze ?i nu pot fi dezactivate ?n sistemele noastre. V? pute?i seta browserul s? blocheze sau s? v? avertizeze cu privire la aceste module cookie, dar este posibil ca unele p?r?i ale site-ului s? nu func?ioneze.”,”toggle”:{“value”:”necessary”,”enabled”:true,”readonly”:true},”cookie_table”:[]},{“title”:”Cookie-uri de performan?? ?i analiz?”,”description”:”These cookies allow us to analyze visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site.”,”toggle”:{“value”:”analytics”,”enabled”:false,”readonly”:false},”cookie_table”:[]},{“title”:”Cookie-uri de publicitate ?i direc?ionare”,”description”:”Aceste module cookie pot fi setate prin intermediul site-ului nostru de c?tre furnizorii no?tri de social media ?i/sau partenerii no?tri de publicitate. Acestea pot fi utilizate de aceste companii pentru a construi un profil al intereselor dvs. ?i pentru a v? afi?a reclame relevante pe alte site-uri. Acestea nu stocheaz? direct informa?ii personale, ci se bazeaz? pe identificarea unic? a browserului ?i a dispozitivului dvs. de internet.”,”toggle”:{“value”:”targeting”,”enabled”:false,”readonly”:false},”cookie_table”:[]},{“title”:”Cookie-uri de func?ionalitate ?i preferin?e”,”description”:”Aceste module cookie ne permit s? oferim func?ionalitate ?mbun?t??it? ?i personalizare prin stocarea preferin?elor utilizatorului.”,”toggle”:{“value”:”preferences”,”enabled”:false,”readonly”:false},”cookie_table”:[]},{“title”:”Informa?ii suplimentare”,”description”:”For any queries in relation to our policy on cookies and your choices, please contact us.”}]}}},”gui_options”:{“consent_modal”:{“layout”:”box”,”position”:”bottom right”,”transition”:”slide”,”swap_buttons”:false},”settings_modal”:{“layout”:”box”,”position”:”left”,”transition”:”slide”}},”pressidium_options”:{“primary_btn_role”:”accept_all”,”secondary_btn_role”:”accept_necessary”,”cookie_table”:{“necessary”:[],”analytics”:[],”targeting”:[],”preferences”:[]},”blocked_scripts”:[],”colors”:{“bg”:”#f9faff”,”text”:”#112954″,”btn-primary-bg”:”#3859d0″,”btn-primary-text”:”#f9faff”,”btn-primary-hover-bg”:”#1d2e38″,”btn-primary-hover-text”:”#f9faff”,”btn-secondary-bg”:”#dfe7f9″,”btn-secondary-text”:”#112954″,”btn-secondary-hover-bg”:”#c6d1ea”,”btn-secondary-hover-text”:”#112954″,”toggle-bg-off”:”#8fa8d6″,”toggle-bg-on”:”#3859d0″,”toggle-bg-readonly”:”#cbd8f1″,”toggle-knob-bg”:”#fff”,”toggle-knob-icon-color”:”#ecf2fa”,”cookie-category-block-bg”:”#ebeff9″,”cookie-category-block-bg-hover”:”#dbe5f9″,”section-border”:”#f1f3f5″,”block-text”:”#112954″,”cookie-table-border”:”#e1e7f3″,”overlay-bg”:”rgba(230, 235, 255, .85)”,”webkit-scrollbar-bg”:”#ebeff9″,”webkit-scrollbar-bg-hover”:”#3859d0″,”btn-floating-bg”:”#3859d0″,”btn-floating-icon”:”#f9faff”,”btn-floating-hover-bg”:”#1d2e38″,”btn-floating-hover-icon”:”#f9faff”},”record_consents”:true,”gcm”:{“enabled”:true,”implementation”:”gtm”,”ads_data_redaction”:false,”url_passthrough”:false,”regions”:[]},”hide_empty_categories”:false,”font”:[],”floating_button”:{“enabled”:true,”size”:”sm”,”position”:”left”,”icon”:”pressidium”,”transition”:”fade-in-up”}},”revision”:1,”version”:”1.5.0″}
And there are two other problems:
- On a particular site, on which I installed the plugin, the cookie acceptance window loads every time I reload the page, regardless of whether I have accepted cookies or not.
- Displaying texts in the cookies window for different languages does not work.
In conclusion, the plugin is excellent although it has small problems, which I’m sure will be fixed.
Hey, @radovand!
Thanks for following up!
I just upgraded from version 1.4.0 to version 1.5.0 without changing anything in the plugin settings.
[…]
True, but this is the default state after the plugin update.
[…]
As a conclusion, after the update from v 1.4.0 to v 1.5.0, there appeared this option “Hide empty categories” which is enabed by default.Yes, you’re right. The “Hide empty categories” option was introduced in
1.5.0
. I see now that having it enabled by default might be confusing, so we’ll likely switch it off by default in the next version.In the next release, we’ll also include a warning to inform users when the “Hide empty categories” option is enabled, and no cookies are listed, which could interfere with Google Consent Mode.
I have another site, on which the plugin doesn’t work properly […] it does not register “Consent records” at all
Upon reviewing the settings you shared, it appears that requests to the
POST /wp-json/pressidium-cookie-consent/v1/consent
endpoint are failing with the following response:{ "success": false }
There’s probably an exception logged by the plugin for each failed attempt to record consents.
Would you be able to share the plugin logs so that we can better assist you with troubleshooting this issue?
To locate your logs, please follow these steps:
- Log in to wp-admin
- Navigate to “Cookie Consent”
- Switch to the “Logs” tab
- Click “Copy to clipboard”
- Paste the logs in your reply here
Remember to censor any sensitive data before posting.
On a particular site, on which I installed the plugin, the cookie acceptance window loads every time I reload the page, regardless of whether I have accepted cookies or not.
This could be happening due to an incorrect domain being set.
The issue could be caused by a misconfigured domain. This typically happens if you’ve imported settings from another site and forgot to update the “Cookie Domain” option.
Verify that the domain is set correctly in Cookie Consent → General → Configuration → Cookie Domain.
If that’s not the case, please provide a link to the affected website and your plugin settings as a JSON file for further investigation.
Displaying texts in the cookies window for different languages does not work.
This is already on our radar. We plan to implement this in a future iteration of the plugin. You can keep track of its progress in issue #54 on the plugin’s GitHub repository.
Thanks for the answers,
Content logs, for the problem site (all cooks are initialized on denied).
Pressidium Cookie Consent v1.5.0
PHP v8.1.28
WordPress v6.6.1
Installation @ https://www.horeca-masters.roUpdated settings successfully
Updated settings successfully
Updated settings successfullyAs for the site displaying the cookie message window on each page reload, the problem is due to the Chrome browser. The problem no longer occurs when using other browsers. It was a clear cache problem.
Thanks again.
The plugin is great.
I hope you end up with it in the top downloads on wordpress.Hey, @radovand!
Thank you for your kind words! We’re pleased to hear that you find our plugin valuable.
As for the site displaying the cookie message window on each page reload, the problem is due to the Chrome browser. The problem no longer occurs when using other browsers. It was a clear cache problem.
Great! I’m glad that’s all sorted.
Upon reviewing the settings you shared, it appears that requests to the POST /wp-json/pressidium-cookie-consent/v1/consent endpoint are failing with the following response:
{ "success": false }
It turns out the plugin always responds with
"success": false
, so that was a false negative. We’ll address that in the upcoming update.it does not register “Consent records” at all
Since there are no exceptions logged by the plugin, would you mind reviewing the server error logs for the website in question and sharing any relevant information?
Where you locate your server error logs will vary based on your hosting provider.
Remember to censor any sensitive data before posting.
Thank you.
These are the warnings displayed by “Query monitor”:
Undefined array key “slug”
- wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php:201
Pressidium\W\C\C\Cookie_Consent->print_inline_style()
wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php:226Pressidium\W\C\C\Cookie_Consent->print_inline_head()
wp-includes/class-wp-hook.php:324do_action('admin_head')
wp-admin/admin-header.php:163
Undefined array key “family”:
wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php:202Pressidium\W\C\C\Cookie_Consent->print_inline_style()
wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php:226Pressidium\W\C\C\Cookie_Consent->print_inline_head()
wp-includes/class-wp-hook.php:324do_action('admin_head')
wp-admin/admin-header.php:163
These are the errors from errors.log
[03-Aug-2024 04:30:00 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Database_Manager.php on line 116
[03-Aug-2024 04:30:00 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wpd8_pressidium_cookie_consents (
id VARCHAR(255) NOT NULL PRIMARY KEY ,
consent_date DATETIME NOT NULL ,
url VARCHAR(255) NOT NULL ,
geo_location VARCHAR(255) ,
ip_address VARCHAR(255) NOT NULL ,
user_agent VARCHAR(255) NOT NULL ,
necessary_consent TINYINT(1) DEFAULT 0 NOT NULL ,
analytics_consent TINYINT(1) DEFAULT 0 NOT NULL ,
targeting_consent TINYINT(1) DEFAULT 0 NOT NULL ,
preferences_consent TINYINT(1) DEFAULT 0 NOT NULL ,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL ,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Pressidium\WP\CookieConsent\init_plugin, Pressidium\WP\CookieConsent\Plugin->init, Pressidium\WP\CookieConsent\Plugin->register_tables, Pressidium\WP\CookieConsent\Database\Database_Manager->maybe_upgrade_tables, Pressidium\WP\CookieConsent\Database\Table->create, dbDelta
[03-Aug-2024 04:30:25 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = '5d44b069-fcad-49c4-a942-54835b34c097' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record [03-Aug-2024 04:30:25 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert [03-Aug-2024 04:30:45 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records, Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows
[03-Aug-2024 04:30:45 UTC] PHP Fatal error: Uncaught TypeError: Pressidium\WP\CookieConsent\Database\Table::get_total_number_of_rows(): Return value must be of type int, null returned in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php:218
Stack trace: 0 /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Admin/Settings/Settings_API.php(1067): Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows() 1 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records() 2 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() 3 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 4 /home/horecamasters/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request() 5 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 6 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/horecamasters/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 8 /home/horecamasters/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 9 /home/horecamasters/public_html/wp-includes/class-wp.php(813): WP->parse_request() 10 /home/horecamasters/public_html/wp-includes/functions.php(1336): WP->main() 11 /home/horecamasters/public_html/wp-blog-header.php(16): wp() 12 /home/horecamasters/public_html/index.php(17): require('/home/horecamas…') 13 {main}
thrown in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php on line 218
[03-Aug-2024 04:30:52 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = '5d44b069-fcad-49c4-a942-54835b34c097' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record [03-Aug-2024 04:30:52 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert [03-Aug-2024 04:31:20 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records, Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows
[03-Aug-2024 04:31:20 UTC] PHP Fatal error: Uncaught TypeError: Pressidium\WP\CookieConsent\Database\Table::get_total_number_of_rows(): Return value must be of type int, null returned in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php:218
Stack trace: 0 /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Admin/Settings/Settings_API.php(1067): Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows() 1 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records() 2 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() 3 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 4 /home/horecamasters/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request() 5 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 6 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/horecamasters/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 8 /home/horecamasters/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 9 /home/horecamasters/public_html/wp-includes/class-wp.php(813): WP->parse_request() 10 /home/horecamasters/public_html/wp-includes/functions.php(1336): WP->main() 11 /home/horecamasters/public_html/wp-blog-header.php(16): wp() 12 /home/horecamasters/public_html/index.php(17): require('/home/horecamas…') 13 {main}
thrown in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php on line 218
[03-Aug-2024 04:32:03 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = '006a819b-60c2-4b1f-a027-3df29eb4cef4' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record [03-Aug-2024 04:32:03 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert [03-Aug-2024 04:32:48 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = '006a819b-60c2-4b1f-a027-3df29eb4cef4' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record
[03-Aug-2024 04:32:48 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert
[03-Aug-2024 04:33:20 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT(*) FROM wpd8_pressidium_cookie_consents made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records, Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows
[03-Aug-2024 04:33:20 UTC] PHP Fatal error: Uncaught TypeError: Pressidium\WP\CookieConsent\Database\Table::get_total_number_of_rows(): Return value must be of type int, null returned in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php:218
Stack trace: 0 /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Admin/Settings/Settings_API.php(1067): Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows() 1 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records() 2 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() 3 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 4 /home/horecamasters/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request() 5 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 6 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/horecamasters/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 8 /home/horecamasters/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 9 /home/horecamasters/public_html/wp-includes/class-wp.php(813): WP->parse_request() 10 /home/horecamasters/public_html/wp-includes/functions.php(1336): WP->main() 11 /home/horecamasters/public_html/wp-blog-header.php(16): wp() 12 /home/horecamasters/public_html/index.php(17): require('/home/horecamas…') 13 {main}
thrown in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php on line 218
[03-Aug-2024 04:33:22 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = 'ad1a1554-4790-4c9a-9db2-0587c6a79654' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record [03-Aug-2024 04:33:22 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert [03-Aug-2024 04:35:11 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records, Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows
[03-Aug-2024 04:35:11 UTC] PHP Fatal error: Uncaught TypeError: Pressidium\WP\CookieConsent\Database\Table::get_total_number_of_rows(): Return value must be of type int, null returned in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php:218
Stack trace: 0 /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Admin/Settings/Settings_API.php(1067): Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows() 1 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records() 2 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() 3 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 4 /home/horecamasters/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request() 5 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 6 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/horecamasters/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 8 /home/horecamasters/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 9 /home/horecamasters/public_html/wp-includes/class-wp.php(813): WP->parse_request() 10 /home/horecamasters/public_html/wp-includes/functions.php(1336): WP->main() 11 /home/horecamasters/public_html/wp-blog-header.php(16): wp() 12 /home/horecamasters/public_html/index.php(17): require('/home/horecamas…') 13 {main}
thrown in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php on line 218
[03-Aug-2024 04:35:22 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT(*) FROM wpd8_pressidium_cookie_consents made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records, Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows
[03-Aug-2024 04:35:22 UTC] PHP Fatal error: Uncaught TypeError: Pressidium\WP\CookieConsent\Database\Table::get_total_number_of_rows(): Return value must be of type int, null returned in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php:218
Stack trace: 0 /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Admin/Settings/Settings_API.php(1067): Pressidium\WP\CookieConsent\Database\Table->get_total_number_of_rows() 1 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->get_consent_records() 2 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() 3 /home/horecamasters/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 4 /home/horecamasters/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request() 5 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 6 /home/horecamasters/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/horecamasters/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 8 /home/horecamasters/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 9 /home/horecamasters/public_html/wp-includes/class-wp.php(813): WP->parse_request() 10 /home/horecamasters/public_html/wp-includes/functions.php(1336): WP->main() 11 /home/horecamasters/public_html/wp-blog-header.php(16): wp() 12 /home/horecamasters/public_html/index.php(17): require('/home/horecamas…') 13 {main}
thrown in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Database/Table.php on line 218
[03-Aug-2024 04:35:28 UTC] PHP Warning: Undefined array key "slug" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 201
[03-Aug-2024 04:35:28 UTC] PHP Warning: Undefined array key "family" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 202
[03-Aug-2024 04:35:32 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = 'ad1a1554-4790-4c9a-9db2-0587c6a79654' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record [03-Aug-2024 04:35:32 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert [03-Aug-2024 04:35:41 UTC] PHP Warning: Undefined array key "slug" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 201 [03-Aug-2024 04:35:41 UTC] PHP Warning: Undefined array key "family" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 202 [03-Aug-2024 04:36:10 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT() FROM wpd8_pressidium_cookie_consents WHERE id = 'edac1231-e762-4961-83c9-34bdd6c833ef' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record
[03-Aug-2024 04:36:10 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert
[03-Aug-2024 04:36:39 UTC] PHP Warning: Undefined array key "slug" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 201
[03-Aug-2024 04:36:39 UTC] PHP Warning: Undefined array key "family" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 202
[03-Aug-2024 04:36:42 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SELECT COUNT(*) FROM wpd8_pressidium_cookie_consents WHERE id = 'edac1231-e762-4961-83c9-34bdd6c833ef' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->has_consent_record
[03-Aug-2024 04:36:42 UTC] WordPress database error Table 'horecamasters_w488.wpd8_pressidium_cookie_consents' doesn't exist for query SHOW FULL COLUMNS FROMwpd8_pressidium_cookie_consents
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Pressidium\WP\CookieConsent\Admin\Settings\Settings_API->update_consent, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->set_consent_record, Pressidium\WP\CookieConsent\Database\Tables\Consents_Table->insert_consent_record, Pressidium\WP\CookieConsent\Database\Table->insert
[03-Aug-2024 04:36:53 UTC] PHP Warning: Undefined array key "slug" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 201
[03-Aug-2024 04:36:53 UTC] PHP Warning: Undefined array key "family" in /home/horecamasters/public_html/wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php on line 202Hey, @radovand!
Thanks for following up!
After looking over the logs you provided, I spotted this error:
WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wpd8_pressidium_cookie_consents
which might be due to the
MyISAM
storage engine’s limitations.This was addressed in
1.5.1
(GitHub issue: #84), which was just released.Please let us know if this solution worked for you.
Yes, it works.
Thank you.
- You must be logged in to reply to this topic.