• In a latest php version there is an issue with the third argument for the method substr()

    PHP Fatal error: Uncaught TypeError: substr(): Argument #3 ($length) must be of type ?int, string given in /homepages/39/d173382052/htdocs/website-2021/wp-content/plugins/recent-posts-widget-plus/recent-posts-widget-plus.php:33

    Fixed it temporarily by casting $count to int (int)$count.

  • The topic ‘PHP issue with method substr’ is closed to new replies.