hmm I think I have the problem. I have used the RSS import to import my old articles and had checked the option to only fill normal body text, but not extended body text.
The normal sql statement in the statistics plugin (SELECT id, title, (LENGTH(body) + LENGTH(extended)) as full_length FROM {$serendipity['dbPrefix']}entries ORDER BY full_length DESC LIMIT $max_items) to query article length only delivers "null" as full_length for all articles. I have changed the sql a bit like that:
Code: Select all
"SELECT id, title, sum( LENGTH( body ) + LENGTH(EXTENDED ) ) AS full_length FROM s9y_entries GROUP BY title ORDER BY full_length LIMIT 1000"
Now I get for
some articles the correct length, but for the most I get "0" (not "null").
Hmm seemed a little bit strange, so I looked into the s9y_entries table and queried the following sql:
Code: Select all
SELECT id, title, length( body ) , length( EXTENDED ) FROM `s9y_entries` LIMIT 0 , 30
The result showed me for some articles that the length of the EXTENDED field was "null" and after some thoughts I could see it: its "null" only for articles I have not changed manually after the RSS import wrote them to the database. So the sql statement to import the articles if no extended body is to be filled is wrong.
I'm not THAT of an expert in sql/s9y so I'm leaving this bugfix for you
BTW: can you form me an sql statement that corrects the length of the EXTENDED field in my database without harming the other articles? Would be great! Thanks!