Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
hello,

installing website on php 7.2 and got this message:

PHP Warning: A non-numeric value encountered in tags.php line 1222


found it was the sub tag, being called with a blank value, so replaced
Code: Select all
1222            return $p0 - $p1;

with
Code: Select all
1222            return (int)$p0 - (int)$p1;


which seems to have sorted the matter (i found some info online about problems going to php 7.1/2)

would appreciate your thoughts on matter, particularly as to whether other tags might suffer from same issue. Or if i've missed the mark...

cheers,
gwil
Hi,

it was the sub tag, being called with a blank value

I think the warning is justified in this case and the best resolution would be to rectify the calling code to make it use the correct parameters to subtract.

Could you please let me know if that code happens to be a part of the core Couch panel?
If yes, do let me exactly where you found it and I'll rectify it.

Thanks
Hi KK,
I found it was when i had
Code: Select all
<cms:nested_pages masterpage='index.php' extended_info='1' >
    <cms:set fred = "<cms:sub k_total_siblings k_pos />" />
</cms:nested_pages>

Popped a check in for those two couch variables (they don't exist on first loop) and all good.
Thanks for the feedback.
Cheers,
gwil
3 posts Page 1 of 1
cron