seankwilliams / modern-footnotes

WordPress plugin to provide inline footnotes inspired by the styles of Grantland and FiveThirtyEight
14 stars 10 forks source link

Conflict with Elasticpress #45

Open gardinermichael opened 2 years ago

gardinermichael commented 2 years ago

Hi there,

An issue within the plugin seems to be throwing Elasticpress for a loop whenever it tries to index posts. This is the error I'm seeing:

Screen Shot 2021-12-16 at 7 03 48 PM

PHP 7.4 WP 5.8.2 Modern Footnotes 1.4.11 Elasticpress 3.6.5

Any suggestions on how to proceed?

seankwilliams commented 2 years ago

Hi @gardinermichael,

I'll have to investigate the exact cause of this further, but in the meantime, as a workaround, you might be able to get this working by changing modern-footnotes.php line 178 to this value:

if (!isset($modern_footnotes_all_posts_data[$scope_id]) && isset($GLOBALS['current_modern_footnotes_post_number'])) {