• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

You will be disconnected after 15 minutes? error

imagelogic

Chevereto Noob
please watch this and tell me what is wrong


Code:
// 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
 
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.
 
Is this the ftp login you mean?

Code:
///////////////////////////////////////////////////////////////////
///// 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
 
Yes, however you have your $DOM_SCRIPT and $PATH_SERVER variables wrong. They should be :
Code:
$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
 
FTP mode is discontinued. Always use the lastest version (currently 1.9)
 
Back
Top