images and php getimagesize error solution

5 views
Skip to first unread message

jacmgr

unread,
Oct 26, 2009, 7:39:35 PM10/26/09
to BoltWire
Been playing with images recently and putting them in different
folders under the files folder. On my localhost had no errors. When
upload to a live site got this error:
-----
Warning: getimagesize() [function.getimagesize]: URL file-access is
disabled in the server configuration in /home/.melitrissa/jacmgr/
vacationrentalplanner.com/sites/boltwire/barn/scripts/markups.php on
line 814
-----

I cured it by commenting out line 803ish in markups.php, but not sure
if that has bigger impacts.

Commented out this line
//if (substr($location, 0, strlen($imgPath)) != $imgPath) $location =
$fieldURL . $location;

Seems to work on both localhost and live site.

The Editor

unread,
Oct 26, 2009, 7:51:05 PM10/26/09
to bolt...@googlegroups.com
Is this on the latest version? What link are you using to the img? It
seems deleting that line would normally prevent you from having any
images in your field's files folder show up.

I'm wondering if you have a .htaccess blocking the field's "files"
folder on the server that is giving you that message. It would be
better to get to the root of the problem than disconnect the symptom
in this case.

Not to mention you'll be getting bugs back every time you upgrade and
have to recomment it out.

Cheers,
Dan
Reply all
Reply to author
Forward
0 new messages