I found this solution worked for me.
on line 237, I replaced
‘foreach ($result as &$item):’
with
‘foreach ($result as $item):’
(removing the ‘&’)
I believe it would need changing on more than one line, so do a search and replace on this page…
/wp-content/plugins/simple-portfolio/simple-portfolio.php