Hello,
the page is inaccessible (password protected) so i can’t check.
Apologies, I went to disable that straight away but you must have got there before me. Please try again.
You are using also paragraph clearance settings.
There were some fixes in clearance checks.
Can you please clear them to check only word counting?
OK I have removed those settings and it is now inserting 5 of blocks #2.
So maybe it is not the word counting but the position shifting code that has changed? I had it set to try to shift position up to 2 paragraphs below then above.
Actually looking at the blocks that are now inserted I can’t see why they were failing the clearance settings anyway.
Paragraph clearance: the plugin checks all the content from the insertion position to the specified pragraph above or below the insertion position. This is useful when you have some elements you would like to avoid between the pararaphs (elements that are not counted as paragraphs).
You can use debugging function Log processing to see the reason why some block was not inserted:
https://adinserter.pro/documentation/debugging
I would suggest installing this version which contains some additional fixes:
https://downloads.wordpress.org/plugin/ad-inserter.zip
Then let’s check again.
This is the extract from the insertion log for block 2:
7 BLOCK 2 CLEARANCE CHECK POSITION 9
0 BLOCK 2 CLEARANCE CHECK POSITION 9 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 10 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 11 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 8 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 7 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 18
0 BLOCK 2 CLEARANCE CHECK POSITION 18 OK
0 BLOCK 2 CLEARANCE CHECK POSITION 27
0 BLOCK 2 CLEARANCE CHECK POSITION 27 FAILED (ABOVE: <h, BELOW: <ul)
0 BLOCK 2 CLEARANCE CHECK POSITION 28 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 29 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 26 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 25 FAILED (ABOVE: <h, BELOW: <ul)
0 BLOCK 2 CLEARANCE CHECK POSITION 36
0 BLOCK 2 CLEARANCE CHECK POSITION 36 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 37 FAILED (ABOVE: <h, BELOW: <ul)
0 BLOCK 2 CLEARANCE CHECK POSITION 38 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 35 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 34 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 45
0 BLOCK 2 CLEARANCE CHECK POSITION 45 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 46 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 44 FAILED (ABOVE: <h)
0 BLOCK 2 CLEARANCE CHECK POSITION 43 FAILED (ABOVE: <h)
0 BLOCK 2 INSERTION POSITIONS: *, 18, *, *, *
`I’ve manually installed the version suggested. WordPress said it was the same as the version installed, but I went ahead anyway.
With the clearance settings off, block #2s are inserted after paras 12, 21, 32, 44, 53. In each case the block has an ordinary paragraph above and below. The clearance settings I normally have check for images, headings, blockquotes, lists etc. one para above and one para below, so they shouldn’t make any difference right?
But with the clearance settings back I get just one block #2 showing, after para 21. The log shows it tried to insert a block at position 9 (this seems wrong – it should have ignored 3 paras with < 14 words). It is correct to fail the clearance check at para 9 (it has a heading above) so it then tries positions 10, 11, 8, 7. It thinks all of these fail the clearance check as well, but that is wrong. In each case it says it failed due to “ABOVE: <h”. But this is wrong, not all of those have a heading above.
So in summary, with clearance checks turned on, it seems to be counting paras that it shouldn’t because they have fewer than 14 words, and it also seems to be failing clearance checks that should pass.
Hang on… positions are not the same as paragraphs it seems?
Need to check on our test server with the same content and clearance settings.
Assuming that position #9 is actually para #12, what I said about the clearance checks failing incorrectly still holds – not all of the two paras above and below para #12 have a heading above.
The problem has been identified and fixed.
You can try the latest development version which contains a fix for the issue:
https://downloads.wordpress.org/plugin/ad-inserter.zip