Lists and Clicks not showing in admin, link_cpt_id field to small
-
Have a client who uses this plugin and said they’re not seeing links or clicks… I started debugging and noticed the queries to show links look for records in WP_PREFIX… prli_links where wp_posts id matches link_cpt_id.
The clients website has a lot of records and very large IDs e.g. 9004111222131878 but the link_cpt_id maxes out at 2147483647 since it’s set as an int(11).
As a test I created a link which still works and I can see all the existing links in the database. I then grabbed the ID that was created for that link in wp_posts and tried to update the record for it in wp_prli_links however the ID was to large and it would not let me update it via phpmyadmin. I then altered the wp_prli_links table and set the link_cpt_id as a bigint(20) to match that of the ID in wp_posts table, I was then able to paste the ID and then I see it in the links table in the plugin.
I feel like the wp_prli_links id, and link_cpt_id really should be created as bigint(20) to match that of the wp_posts table.
I noticed a lot of people have this same issue with links not showing up and I have a feeling they’re having the same issue with mismatched IDs due to the size you’re setting that field to when creating the database table. You even mention something about how it came behave weird on large databases. Should be an easy fix.
- The topic ‘Lists and Clicks not showing in admin, link_cpt_id field to small’ is closed to new replies.