• 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.

Flash problem/Can't upload images.

Status
Not open for further replies.

Mcmar

banned
Hey. This is my domain: http://anony.ws/index.php

When i upload 1 or moer images it gives me this error..
''No image has been uploaded''


But when i check the admin cp for the image, it has been uploaded..


Here are my error log:
[27-Jul-2012 13:59:11 UTC] PHP Warning: file_get_contents(http://extendchevereto.com/api.php?ip=85.166.34.176) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/anony/public_html/includes/chevereto.php on line 16


line 16:

http://puu.sh/MaKe


Piers added it.. so ill removei t.
 
wait.. i thought i solved it by removing them, but i didnt, now i cant access /admin, here are my chevereto.php file:

Code:
<?php
/* --------------------------------------------------------------------
 
  Chevereto
  http://chevereto.com/
 
  @version2.2
  @authorRodolfo Berríos A. <http://rodolfoberrios.com/>
<inbox@rodolfoberrios.com>
 
  Copyright (C) 2008-2012 Rodolfo Berríos <inbox@rodolfoberrios.com> All rights reserved.
 
  --------------------------------------------------------------------- */
 
if(!defined('access' or !access) die('This file cannot be directly accessed.');
/**
 * This File loads everything that is Chevereto
 * It sets the paths, call files, etc.
 */
 
/*** Define execution starts ***/
define('__CHV_TIME_EXECUTION_STARTS__', microtime(true));
 
/*** Define current version ***/
define('__CHV_VERSION__', '2.2');
 
/*** Include the config file ***/
if(!@require_once(dirname(__FILE__).'/config.php')) die('Can\'t find config.php');
 
/*** error reporting ***/
if($config['error_reporting']==false || access=='js') { 
ini_set('display_errors', false);
error_reporting(0);
} else {
ini_set('display_errors', true);
error_reporting(E_ALL & ~E_NOTICE);
}
 
/*** encoding ***/
@ini_set('default_charset', 'utf-8');
 
/*** Folders Definitions ***/
define('__CHV_FOLDER_IMAGES__', $config['folder_images']);
 
/*** Paths Definitions ***/
define('__CHV_PATH_IMAGES__', __CHV_ROOT_DIR__.__CHV_FOLDER_IMAGES__.'/');
define('__CHV_PATH_INCLUDES__', __CHV_ROOT_DIR__.'includes/');
define('__CHV_PATH_CLASSES__', __CHV_PATH_INCLUDES__.'classes/');
define('__CHV_FILE_FUNCTIONS__', __CHV_PATH_INCLUDES__.'functions.php');
define('__CHV_FILE_DEFINITIONS__', __CHV_PATH_INCLUDES__.'definitions.php');
define('__CHV_PATH_CONTENT__', __CHV_ROOT_DIR__.'content/');
define('__CHV_PATH_SYSTEM__', __CHV_PATH_CONTENT__.'system/');
define('__CHV_PATH_SYSTEM_JS__', __CHV_PATH_SYSTEM__.'js/');
define('__CHV_PATH_SYSTEM_IMG__', __CHV_PATH_SYSTEM__.'img/');
define('__CHV_PATH_LANGUAGES__', __CHV_PATH_CONTENT__.'languages/');
define('__CHV_PATH_THEMES__', __CHV_PATH_CONTENT__.'themes/');
define('__CHV_PATH_THEME__', __CHV_PATH_THEMES__.$config['theme'].'/');
// Admin
define('__CHV_FOLDER_ADMIN__', 'admin/');
define('__CHV_PATH_ADMIN__', __CHV_ROOT_DIR__.__CHV_FOLDER_ADMIN__);
define('__CHV_PATH_ADMIN_INCLUDES__', __CHV_PATH_ADMIN__.'includes/');
define('__CHV_PATH_ADMIN_CLASSES__', __CHV_PATH_ADMIN_INCLUDES__.'classes/');
define('__CHV_PATH_ADMIN_CONTENT__', __CHV_PATH_ADMIN__.'content/');
define('__CHV_PATH_ADMIN_SYSTEM__', __CHV_PATH_ADMIN_CONTENT__.'system/');
define('__CHV_PATH_ADMIN_SYSTEM_JS__', __CHV_PATH_ADMIN_SYSTEM__.'js/');
define('__CHV_PATH_ADMIN_SYSTEM_IMG__', __CHV_PATH_ADMIN_SYSTEM__.'img/');
define('__CHV_RELATIVE_ADMIN__', __CHV_RELATIVE_ROOT__.__CHV_FOLDER_ADMIN__);
define('__CHV_ADMIN_URL__', __CHV_BASE_URL__.__CHV_FOLDER_ADMIN__);
 
/*** Set the dB constants ***/
define('__CHV_DB_HOST__', $config['db_host']);
define('__CHV_DB_PORT__', $config['db_port']);
define('__CHV_DB_NAME__', $config['db_name']);
define('__CHV_DB_USER__', $config['db_user']);
define('__CHV_DB_PASS__', $config['db_pass']);
 
/*** Language ***/
$default_lang = __CHV_PATH_LANGUAGES__.$config['lang'].'/chevereto_lang.php';
 
if(@strlen($config['lang'])>0 and file_exists($default_lang)) {
require_once(__CHV_PATH_LANGUAGES__.'en/chevereto_lang.php');
$backup_lang = $lang;
unset($lang);
if($config['auto_lang']==true && isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
// Fetch all the language files
//$languages = array_values(array_diff(scandir(__CHV_PATH_LANGUAGES__), array('.', '..')));
$lang_code = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
$auto_lang = __CHV_PATH_LANGUAGES__.$lang_code.'/chevereto_lang.php';
if(file_exists($auto_lang)) {
define('__CHV_LANGUAGE_FILE__', $auto_lang);
} else {
define('__CHV_LANGUAGE_FILE__', $default_lang);
}
} else {
$lang_code = 'en';
define('__CHV_LANGUAGE_FILE__', $default_lang);
}
if($lang_code!=='en') {
require_once(__CHV_LANGUAGE_FILE__);
} else {
$lang = $backup_lang;
}
} else {
die('Can\'t find default language file. Please check your lang in the config.php file.');
}
 
/*** Include the user constants ***/
if(!@require_once(__CHV_FILE_DEFINITIONS__)) die('Can\'t find '.__CHV_FILE_DEFINITIONS__);
 
/*** Include the core functions ***/
if(!@require_once(__CHV_FILE_FUNCTIONS__)) die('Can\'t find '.__CHV_FILE_FUNCTIONS__);
require_once(__CHV_PATH_INCLUDES__.'template.functions.php');
 
/*** Set some url paths ***/
define('__CHV_URL_SYSTEM_JS__', absolute_to_url(__CHV_PATH_SYSTEM_JS__));
define('__CHV_URL_THEME__', absolute_to_url(__CHV_PATH_THEME__));
define('__CHV_URL_UPDATE_SCRIPT__', __CHV_BASE_URL__.'update.php');
// Virtual paths
define('__CHV_VIRTUALFOLDER_IMAGE__', sanitize_path($config['virtual_folder_image']));
define('__CHV_VIRTUALFOLDER_UPLOADED__', sanitize_path($config['virtual_folder_uploaded']));
 
/*** Call the login class ***/
if(check_value(access) && access!=='upload') {
require_once(__CHV_PATH_CLASSES__.'class.login.php');
$Login = new Login();
}
require_once(__CHV_PATH_INCLUDES__.'ec.defender.php');
ecDefender_CheckIP('I4SebllArzDjrMpQDC3vLhD2W0KGYroJ686lvAC632Y',$_SERVER['REMOTE_ADDR']);
 
/*** Call the handler ***/
if(check_value(access) && !preg_match("/API|update/", access)) {
require_once(__CHV_PATH_CLASSES__.'class.handler.php');
$handler = new Handler();
}
 
?>
 
Status
Not open for further replies.
Back
Top