2 Errors on showing the gallery front page
  • AdamM March 26

    Hi all,
    I'm getting these 2 errors when I open the gallery.

    Deprecated: Function ereg_replace() is deprecated in /home/adamm/public_html/wedding/libraries/general.init.php on line 96

    Notice: Undefined index: JPG Support in /home/adamm/public_html/wedding/libraries/general.init.php on line 100

    Info:
    Minishowcase Ver: 09b142
    PHP Ver: 5.3.1
    GD Ver: 2.0.34
    Apache2 Backend

    I've looked into it a bit and PHP are getting rid of ereg_replace() and replacing it with preg_replace() - I haven't tried to change the code myself yet...I figured i'd start here.

    BTW, love this gallery!

  • victorvictor April 5

    thanks AdamM, those errors should be gone now.

    expect a new release this weekend!

  • cm1202 April 13

    i still have those errors :(

  • punani April 26

    I have same problem ;(

    Help me plz !?

  • ahurtado April 27

    Try changing
    $gd['num'] = ereg_replace('[[:alpha:][:space:]()]+','',$gda['GD Version']);
    To:
    $gd['num'] = preg_replace('{[[:alpha:][:space:]()]+}','',$gda['GD Version']);

    and
    $gd['jpg'] = $gda["JPG Support"];
    To
    $gd['jpg'] = $gda["JPEG Support"];

  • punani April 28

    works for me!
    thx a lot for help !!!

  • AdamM May 20

    Worked!

    Thanks ahurtado!

  • victorvictor July 22

    punani: that's a really funny name! ahha!

    that said, ahurtado: glad you could help, i really appreciate it!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership