test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • juanjovv Friend
    #133273

    Hello

    I have a problem with JA Larix and virtuemart.

    The site is http://www.maquinastatuar.com and you can see the problem in the index page

    PHP version: 5.1.6
    Web server: Apache/2.2.3 (CentOS)
    Joomla! 1.5.3 Production/Stable [ Vahi ] 22-April-2008 22:00 GMT
    VirtueMart 1.1.0 stable 23/04/2008 20:00 GMT

    I have the same problem with last version of JA Larix Quickstart

    My ISP tell me, the problem is php function readfile() is disabled for security reasons.

    Somebody know if is possible to solve this problem? or I need to change ISP

    Thank you very much

    Menalto Friend
    #270309

    Site is offline, so cant see anything..

    juanjovv Friend
    #270388

    The problem is, many servers have the readfile() function disabled for security reasons.

    Problem: Thumbnails don’t show
    Server error log: “readfile() has been disabled for security reasons”

    This can be solved adding a new function to replace readfile(), like this:


    function rpl_readfile($file){
    $handle=@fopen($file,"r");
    echo @fread($handle,filesize($file));
    @fclose($handle);
    }

    Then replace all ocurrences of readfile() function in these scripts:
    /components/com_virtuemart/fetchscript.php
    /components/com_virtuemart/show_image_in_imgtag.php
    /administrator/components/com_virtuemart/classes/shipping/minixml/classes/doc.inc.php

    More info:
    http://forum.virtuemart.net/index.php?topic=40289.0

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  juanjovv 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum