Hi
I'd like to mention that the page where this is happening is using UNA 12.1.0 and PHP 7.4.33.
This warning message started appearing a couple of days ago (screenshot attached).
So far, it only happens when I access the homepage and https://tnea.ar/page/explore.
What should I do to prevent this from appearing?
Thank you very much.
- 96
Comments

Hello @Claudio Acosta !
Could you please provide us tow points about your issue:
1) after what actions it has appeared?
2) what do you have now in this line 2589 of the modules/boonex/timeline/classes/BxTimelineTemplate.php file?
Hi @LeonidS
1) This warning appears after logging in (sometimes yes, sometimes no). It also appears when accessing https://tnea.ar/page/explore.
The strange thing is that sometimes, when the page is refreshed (F5), the message disappears.
2) Line 2589:
$aResult['content'] = array_merge($aResult['content'], unserialize($aEvent['content']));
File attached.
I also find it odd that this started happening a few days ago. The only change I made a few days ago was the one you suggested at https://unacms.com/d/get_magic_quotes_gpc-is-deprecated, but I assume that's unrelated.
Thank you for your continued kindness.
Try to replace this line with this code:
if(!empty($aEvent['content'])) { $aContent = @unserialize($aEvent['content']); if(!empty($aContent) && is_array($aContent)) $aResult['content'] = array_merge($aResult['content'], $aContent); }Hi @LeonidS
The warning is no longer appearing.
I'll test it throughout the day, and if everything goes well, I'll mark this issue as resolved.
Thank you very much.
Hi @LeonidS
Everything is working fine.
I'm closing the issue.
Thank you very much.