Topic: You will be disconnected after 15 minutes? error

please watch this and tell me what is wrong


 
// CH-CH-Check FTP config //
if ($use_ftp == false) {
    if (!is_writable(DIR_IM)) {
        echo $o_errorbox.'Critital error: Chevereto can\'t upload files. Please enable FTP mode in config.php'.$c_errorbox;
        die();
    }
} else {
    $conn_id = ftp_connect($imagelogic.co.cc);
    $check_ftp_log = ftp_login($conn_id, $*******, $******);
    if ((!$conn_id) || (!$check_ftp_log)) {
        echo $o_errorbox.'Critital error: Wrong FTP values in config.php'.$c_errorbox;
        die();
    }
}

can someone help me? you cane see the error on www.imagelogic.co.cc

Thumbs up

Re: You will be disconnected after 15 minutes? error

You need to set your ftp login in the config.php file. Not in engine.php .
That message your getting is from the server, saying that if you do not upload anything within 15 minutes you are disconnected from the ftp server and have to reconnect. This is not a problem, Chevereto will do that automatic.

Thumbs up

Re: You will be disconnected after 15 minutes? error

Is this the ftp login you mean?

///////////////////////////////////////////////////////////////////
///// DO NOT EDIT BELOW THIS - (do it if the script can't run) ////
///////////////////////////////////////////////////////////////////

// SERVER ///
/* We get this values with $_SERVER. If your server doesn't resolve this values The script will not work.
   If the script doesn't work, you must change this values to be like values in the comments (see the exaple below) */

$DOM_SCRIPT = $_SERVER['imagelogic.co.cc']; // --> mysite.com
$PATH_SERVER = $_SERVER['/public_html']; // --> /public_html (pssst.. NO ENDING SLASH!)

    // example:
    # $DOM_SCRIPT = 'mysite.com';
    # $PATH_SERVER = '/public_html'; 
    /* Btw, you can check this values by uncommenting this: */
    // echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$PATH_SERVER;

// FTP MODE //
/* Use this if you want to upload the files through ftp php (http://php.net/ftp). This is handly when your server config don't
   allow to upload files without CHMOD 777, like almost all the cPanel. Using this, you can forget the CHMOD ;) */
$use_ftp = true; // true: Uses ftp to upload files - false: Upload without ftp.
$ftp_host = $DOM_SCRIPT; // Change this if your ftp host is not the same as your mysite.com -- example: $ftp_host = 'ftp.mysite.com';
$ftp_user = '******'; // valid username.
$ftp_pass = '******'; // Valid password.
// NOTICE: FTP user must have access to the script folder.

Thanks for help

Thumbs up

Re: You will be disconnected after 15 minutes? error

Yes, however you have your $DOM_SCRIPT and $PATH_SERVER variables wrong. They should be :

$DOM_SCRIPT ='imagelogic.co.cc'; // --> mysite.com
$PATH_SERVER = '/public_html'; // --> /public_html (pssst.. NO ENDING SLASH!)

And don't forget to undue your changes in engine.php

Last edited by gamerlv (2010-05-14 05:20:01)

Thumbs up

Re: You will be disconnected after 15 minutes? error

What do you mean with endue my changes?

Thumbs up

Re: You will be disconnected after 15 minutes? error

imagelogic wrote:

What do you mean with endue my changes?

hhmm, revert, change back to the way it was before you made any changes to the ftp connect code.

Thumbs up

Re: You will be disconnected after 15 minutes? error

Thanks for help but go to my website, www.imagelogic.com now there is an other error? can someone help me!

Thumbs up

Re: You will be disconnected after 15 minutes? error

sry it's www.imagelogic.co.cc

Thumbs up

Re: You will be disconnected after 15 minutes? error

FTP mode is discontinued. Always use the lastest version (currently 1.9)

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: You will be disconnected after 15 minutes? error

Always use the lastest version
________________________
solar panel solar house

Thumbs up