Slow Catalog Page Loads (v. 2.72 - 2.81)

Some servers do not allow paths for the getimagesize function, which can cause slow loads. As of version 2.82, we will be using only paths for this function. For now:

Version 2.81

  1. Open the openinfo.php file in the /enc/ folder.

  2. Change the line:

    $use_getimg_size = "yes";

    to:

    $use_getimg_size = "no";

Version 2.7x

  1. Open the products_variables.php file in the /enc/ folder.

  2. Change the line:

    $imgsize1=@getimagesize($searchrow[LgImage]);

    to:

    $lgimagepath=SB_HOME_PATH .'/' .str_replace($URL .'/', '', $searchrow[LgImage]);
    $imgsize1=@getimagesize($lgimagepath);
  3. Change the line:

    $imgsize2=@getimagesize($searchrow[LgImage2]);

    to:

    $lgimage2path=SB_HOME_PATH .'/' .str_replace($URL .'/', '', $searchrow[LgImage2]);
    $imgsize2=@getimagesize($lgimage2path);
  4. Change the line:

    $imgsize3=@getimagesize($searchrow[LgImage3]);

    to:

    $lgimage3path=SB_HOME_PATH .'/' .str_replace($URL .'/', '', $searchrow[LgImage3]);
    $imgsize3=@getimagesize($lgimage3path);