Re: [campsite-support] Errors when attach image by url
  • Please disable the notices in PHP and you'll see the image. Normally a live
    server should not have warnings and notices enabled.

    I'll fix the problem so the image will load even with notices enabled in
    3.3.4.

    Mugur

    On Mon, Dec 7, 2009 at 9:05 AM, wrote:

    > Author: RobertB
    > Link: http://code.campware.org/phorum/read.php?8,7877,7877#msg-7877
    >
    > --------------------------------------------------------------------------------
    >
    > Holman can you please give me information obout this type errors:
    >
    > When I attach image (by url) to article (image is not on my web server)
    > I found, that every time I load article in Apache error log apear
    > this error:
    >
    > PHP Notice: Undefined variable: derivates in
    > /var/www/users/novice/www/template_engine/classes/CampGetImage.php on line
    > 129, referer: http://sample.sample.com/sl/dec_2009/utrip/200/
    >
    > If I attach an image, that is physically on the server, everything is ok,
    > no errors...
    >
    > Is there any solution for this problem?
    >
    > Thanks
    > Robert
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • 1 Comment sorted by
  • Mugur Rus Wrote:
    -------------------------------------------------------
    > Please disable the notices in PHP and you'll see
    > the image. Normally a live
    > server should not have warnings and notices
    > enabled.

    Mugur thanks, I disable and it seems OK.
    By browsing errors no more apear in log.

    But thumbnail when I attach image (by url) to article is stil no awailable
    and only when I attach file in TinyMCE this happend:

    [error] [client x.x.x.x File does not exist: /var/www/vhosts/site.site.si/www/images/thumbnails/cms-thumb-000000259.jpg, referer: http://site.site.si/admin/imagearchive/index.php

    Thanks a lot
    Robert