WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • PHP Warning: getimagesize(…) view_cart.php on line 86
  • Print
Pages: [1]   Go Down

Author Topic: PHP Warning: getimagesize(…) view_cart.php on line 86  (Read 6885 times)

Offline scratch

  • Posts: 9
PHP Warning: getimagesize(…) view_cart.php on line 86
« on: October 23, 2011, 09:00:45 PM »
Having problems with a slow loading basket in Bakery..

The server log states the following error:

PHP Warning: getimagesize(…) view_cart.php on line 86

Can anyone help?

Many thanks
Logged

freeSbee

  • Guest
Re: PHP Warning: getimagesize(…) view_cart.php on line 86
« Reply #1 on: October 23, 2011, 09:40:23 PM »
Hi Scratch

The function getimagesize() does only work with urls if your server configuration (php.ini) has set the option allow_url_fopen = 1:
http://php.net/manual/de/function.getimagesize.php
Ask your hosting provider to do so.

Alternatively you can modify the Bakery file view_cart.php on line 83:
Code: [Select]
$items[$i]['thumb_url'] = WB_URL.MEDIA_DIRECTORY.$thumb_dir.$items[$i]['main_image'];Change it to
Code: [Select]
$items[$i]['thumb_url'] = WB_PATH.MEDIA_DIRECTORY.$thumb_dir.$items[$i]['main_image'];
Regards Christoph
Logged

Offline scratch

  • Posts: 9
Re: PHP Warning: getimagesize(…) view_cart.php on line 86
« Reply #2 on: October 23, 2011, 11:26:28 PM »
Many thanks!
I changed the view_cart file and it's working great now!
Much appreciated!
J
Logged

freeSbee

  • Guest
Re: PHP Warning: getimagesize(…) view_cart.php on line 86
« Reply #3 on: October 24, 2011, 06:20:25 PM »
There is a new Version of Bakery available that fixes the bug:
https://forum.WebsiteBaker.org/index.php/topic,18439.msg152782.html#msg152782

Regards Christoph
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • PHP Warning: getimagesize(…) view_cart.php on line 86
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2