PHP error fix (ver 1.1.7+)
-
Hello,
Love the plugin, I use it on about three dozen client sites.
I’m not sure exactly at which version you started having this problem, but I’ve started getting a major error on the Add/Edit page where the page doesn’t load beyond the “Exclude Posts”
select
element. A spinner shows up and a number of errors log on the console.The issue comes from the /includes/hfcm-add-edit.php file, where on line 235 you have
<?php echo "<option value='{$i}'>{$i}</option>"; ?>
. This is **before** you define the $i variable in the for loop (link 237), so it breaks the page. I’m not sure why the option is there, given the for loop below.. I deleted line 235 entirely and the add/edit view works as expected.I’d love for you to implement this in the live plugin so that I don’t have to edit my plugin files across my sites.
Evan
- The topic ‘PHP error fix (ver 1.1.7+)’ is closed to new replies.