kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
223 stars 86 forks source link

Seeing console error, favorites never load #176

Open jacksonp2008 opened 1 year ago

jacksonp2008 commented 1 year ago

PHP Version 7.4.33 Wordpress: 6.1.1 Chrome or Edge on MAC

Tried disabling cache on bluehost and disabling endurance page cache plugin but no change. Buttons appear in loading state and the totals never update: user favorites and post favorites

Seeing this error as well:

Screen Shot 2023-03-29 at 8 16 08 AM

Any suggestions?

jacksonp2008 commented 1 year ago

Also in error log: [31-Mar-2023 18:03:43 UTC] PHP Notice: Undefined variable: site_id in /home2/qkqazymy/public_html/wp-content/plugins/favorites/app/Listeners/FavoriteList.php on line 49

jacksonp2008 commented 1 year ago

And in debug mode we see a failed post.

Screen Shot 2023-03-31 at 11 11 23 AM

jacksonp2008 commented 1 year ago

Don't everyone jump on this at once..

dustyyy commented 1 year ago

Ran into this same error. Traced it back to failing validation due to an invalid post type. I had to go to the settings and set the post types to enable Favorites for.