Closed Fraenkiman closed 7 months ago
Other findings discussed here.
Thought:
check /fp-includes/core/core.fpdb.class.php regarding
$q = $fpdb->getQuery(); $calc = $q->single;
When using PHP8.1 the following warning is stored in Serverlog:
Warning: Attempt to read property "single" on null in /var/www/html/flatpress-master-1106/fp-plugins/postviews/plugin.postviews.php on line 43
Current status:
$smarty->assign('views', $v);
on line 47 has no effect, {$views}
is just not set in the template.Needs further investigation!
Hi @azett,
as in most tricky cases, I can only shoot in the dark.
My number of hairs on my head are not enough for a solid solution.
We may need a new FP smarty plugin/smarty function that assigns the {$views}
variable correctly.
these are my notes:
//core.fpdb.class.php
// do_action('entry_block', $id);
//Smarty 4
// $_FP_SMARTY->registerPlugin('block', 'entry_block', 'smarty_block_entries');
//Smarty 2
// $_FP_SMARTY->register_block('entry_block', 'smarty_block_entries');
function smarty_function_entry_block($params, &$smarty)
{
return do_action('entry_block');
}
Best regards
Hello all,
the PostViews plugin counts/- does not show visitor comment views.
Please add it to the milestone
Best regards Frank