These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
My apologies if this has been covered elsewhere.
Line 65 of images.php:
if (eregi('.jpg|.gif|.png|.swf|.flv', $image)) {
Causes the following php warning to show and the gallery display to fail (at least for me):
<b>Deprecated</b>: Function eregi() is deprecated in <b>images.php</b> on line <b>65</b>
Turns out eregi is deprecated as of 5.3.0:
http://php.net/manual/en/function.eregi.php
Now, I'm no regex master, but I replaced that line with:
if (preg_match('/.jpg|.gif|.png|.swf|.flv/i', $image)) {
...and it seems to have done the trick.
-g
Offline
Thank you.
This was real lifesaver, for SSP Standalone.
This will likely be a big help when people run into trouble after upgrades.
Offline
This saved me. Thanks. When I came across the error my first thought was to download the images.php file with hopes it had been updated. Maybe you could add this fix permanently to the downloadable file?
Offline