AB 4.0.8 Categry bug on frontend

Started by RobertG, 08 August 2026, 16:03:39

Previous topic - Next topic

RobertG

Federica, I'm testing a client's site on my server.

The site contains 1,428 articles. I cleared the index and restarted it; the result is indeed 1,428 indexed articles.
Indexing is carried out in batches and does not stop at the end of the first batch; it continues until everything that can be indexed has been indexed..

On my website, only 100 of the 468 books have been indexed, and to index the rest, I have to edit them one by one and save them. Once I've done that, they're added to the index.
Why does this indexing stop after the first batch?

federica

You are right but I found that the same behavior happens even with articles.

I tried to clear index (maintenance->clear index) then re-index again.

In my installation not even one article is indexed, but when I modify an article then it is indexed.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

RobertG

It's odd – I've tested it on other sites, and on some of them, Alexandria Book's indexing stops at 50.
I've added another website: 393 articles, 45 categories and 1 contact have been indexed.
I cleared the index and started again, but nothing changed – the figures are exactly the same.
I installed Abook 4.0.9 and the Smart Search plugin, imported my own data, then activated the plugin and restarted the indexing process.
Now, I do have all the books, but only 30 categories of articles instead of 45, and no articles or contacts at all!
It's incomprehensible.

RobertG

So I made a new test on my online J6 site for Abook.
The indexation stopped on 100 books, nothing else has been indexed. :(

RobertG

Other test: I set the number of data from 50 to 300 and got the error
A parsing error occurred whilst processing the following JSON data:
JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 488 of the JSON 

However, the 300 books are well indexed (though 170 are missing).
No category, no article were indexed.

If I set Indexer batch size to 150, 150 books are indexed, nothing else.

I tried 300 on the local site where 450 books were indexed, and now all are indexed, categories and articles too.

It looks as though an error is occurring that stops the indexing process without displaying a message on the screen.

RobertG

Sometimes, on the index page, during indexing, a message appears stating Abook 0 Of 1 instead of 0 of 470, when the count of categories and articles are correct (Articles 0 Of 11, for example).
Could that be the reason why indexing stopped after the first batch?