Fehlermedlung. Bräuchte Hilfe

Kann mir jemand damit helfen?
ich möchte die dfGallery 2.0 installieren und bekomme diese Fehlermeldung, weiß aber nicht, was das heißt :frowning:

[code] " . $msg . ‘’; }else{ return " " . $msg . ‘’; } } function verify_installation(){ $url_excludes = array(’/api/rest/test_curl’); $uri = $SERVER[‘REQUEST_URI’]; foreach ($url_excludes as $url) { $uripos = strpos($uri,$url); $uripos = ($uripos === FALSE) ? 0 : $uripos; if (substr($uri,$uripos) == $url){ return; } } $root_dir = dirname(FCPATH); // CUSTOM DEZINERFOLIO CODE FOR THE REQUIREMENTS CHECK $checks = array(); // EXTENSIONS TO LOAD $required_extensions = array(‘curl’,‘json’); $required_extensions_check = array(‘Required Extensions’,true,’’); $extension_prefix = (PHP_SHLIB_SUFFIX === ‘dll’) ? 'php’ : ‘’; foreach ($required_extensions as $extension) { if(extension_loaded($extension)){ $required_extensions_check[2] .= get_type_message(1,$extension . ’ is loaded.’); }else{ if(dl($extension_prefix . $extension .’.’. PHP_SHLIB_SUFFIX) != 1){ $required_extensions_check[1] &= false; $required_extensions_check[2] .= get_type_message(0,$extension . ’ is disabled.’); }else{ $required_extensions_check[2] .= get_type_message(1,$extension . ’ is loaded.’); } } } if ($required_extensions_check[1] == false){ $required_extensions_check[2] .= “Please load the required PHP extensions in your php.ini before you continue.”; } $checks[] = $required_extensions_check; // FILES TO EXIST $files_to_exist = array(); $files_to_exist[] = ‘/.htaccess’; $files_to_exist[] = ‘/app/config/dfg/upgrade_state.php’; $files_to_exist_check = array(‘Files that need to exist’,true,’’); foreach ($files_to_exist as $file) { if(file_exists($root_dir . $file)){ $files_to_exist_check[2] .= get_type_message(1,$file . ’ exists.’); }else{ $files_to_exist_check[1] &= false; $files_to_exist_check[2] .= get_type_message(0,$file . ’ doesn’t exist!.’); } } if ($files_to_exist_check[1] == false){ $files_to_exist_check[2] .= “
Please verify the required files exist in the installation.
Please copy over the files from the installation archive into the gallery folder.”; } $checks[] = $files_to_exist_check; // DIRECTORIES AND FILES THAT SHOULD BE WRITABLE. $writable_dirs = array(); $writable_dirs[] = ‘/resources/cache/’; $writable_dirs[] = ‘/resources/images/original/’; $writable_dirs[] = ‘/resources/images/large/’; $writable_dirs[] = ‘/resources/images/thumbnail/’; $writable_dirs[] = ‘/app/config/dfg/upgrade_state.php’; $writable_dirs_check = array(‘Check for writable files and directories’,true,’’); foreach ($writable_dirs as $dir) { if(is_writable($root_dir . $dir)){ $writable_dirs_check[2] .= get_type_message(1,$dir . ’ is writable.’); }else{ $writable_dirs_check[1] &= false; $writable_dirs_check[2] .= get_type_message(0,$dir . ’ is not writable!’); } } if ($writable_dirs_check[1] == false){ $writable_dirs_check[2] .= “Please provide write permissions (chmod 777) for required files/directories.”; } $checks[] = $writable_dirs_check; // CLEAN URLS. if(extension_loaded(‘curl’)){ $curl_url = ‘http://’.$_SERVER[‘SERVER_NAME’].substr($_SERVER[‘SCRIPT_NAME’],0,strpos($_SERVER[‘SCRIPT_NAME’],’/index.php’)). ‘/api/rest/test_curl’; $clean_url_check = curl_init($curl_url); curl_setopt($clean_url_check,CURLOPT_RETURNTRANSFER,true); $clean_url_check_resp = curl_exec($clean_url_check); if (curl_errno($clean_url_check)>0){ $checks[] = array(‘A curl error occured while checking for clean urls.’,false,"URL : $curl_url
cURL message : ". curl_error($clean_url_check)); }else{ if($clean_url_check_resp == ‘true’){ $checks[] = array(‘Clean urls’ have been enabled.’,true,’’); }else{ $checks[] = array(‘Invalid cURL response.’,false,“We expected ‘true’ from the url : $curl_url”); } } }else{ $checks[] = array(‘Unable to check clean urls, as curl is disabled.’,false,‘Please enable cURL extension first.’); } // check for database.php 777 if(file_exists(APPPATH.‘config/database.php’)){ $db_file_is_writable = is_writable(APPPATH.‘config/database.php’); include_once APPPATH.‘config/database.php’; $is_db_configured = is_array($config) && array_key_exists(‘active_group’,$config); if ($is_db_configured){ if ($db_file_is_writable){ $db_check = array(APPPATH.‘config/database.php is writable!’,true,‘Please change it to read permissions (chmod 0664) for this file to continue.’);; }else{ $db_check = array(‘Database Config is in read mode.’,true,’’); } }else{ if ($db_file_is_writable){ $db_check = array(‘Database Config is writable.’,true,’’); }else{ $db_check = array(‘Database Config is not writable.’,false,'Please provide write permissions (chmod 0777) for ‘.APPPATH.‘config/database.php file to continue.’); } } }else{ $db_check = array(APPPATH.‘config/database.php file doesnt’ exist .’,false,‘Please create an empty database.php file under app/config directory, with write permissions.’);; } $checks[] = $db_check; // END ALL CHECKS… // render the status if any… $_continue = true; foreach ($checks as $key => $check) { $_continue = $_continue && $check[1]; } if(!$_continue){ function base_url(){ global $config; return $config[‘base_url’]; } function load_view($file,$vars = array()){ extract($vars); include APPPATH.‘views/’. $file . EXT; } load_view(‘templates/header’); echo '
Not all requirements of DfGallery have been met.

'; foreach ($checks as $key => $check) { $msg = “$check[0]”; if(sizeof($check)>2){ $msg .= ‘
’.$check[2]; } $level = ($check[1]) ? ‘green’ : ‘red’; load_view(‘templates/message’,array(‘level’=>$level,‘message’=>$msg)); } load_view(‘templates/footer’); exit; } // END CUSTOM DEZINERFOLIO CODE FOR THE REQUIREMENTS CHECK } ?>[/code]

kann ich irgendetwas tunt damit mir wer hilft? habe ich den code falsch gepostet?

!coffee

möglicherweise ja, etwas unübersichtlich, aber das entscheidende ist, dass du uns nicht sagst, was für ein Fehler du erhälst :wink:

nun, das oben angeführte “ist” die Fehlermeldung. eigentlich sollte sich stattdessen ein Adminbereich auftun, mit dem ich dan die Galerie installieren kann bzw. einrichten.

achso hehe
das sieht dann ziemlich so aus, als hätte dein script einen syntaxfehler…

suche mal in der betroffenen datei das hier:" . $msg . ''; }else{ return " " . $msg . ''; } }und poste hier dann ein paar zeilen weiter oben bis zu diesem teil

Bist du sicher, dass diese datei auf “.php” endet?

mfg

tut mir leid, ich habe es nicht gefunden, daher der ganze code.

[code]<?php
include_once APPPATH.‘config/config.php’;

function get_type_message($type,$msg){
if ($type == 1){
return "  " . $msg . ‘’;
}else{
return "  " . $msg . ‘’;
}
}

function verify_installation(){

$url_excludes = array('/api/rest/test_curl');

$uri = $_SERVER['REQUEST_URI'];
foreach ($url_excludes as $url) {
	$uripos = strpos($uri,$url);
	$uripos = ($uripos === FALSE) ? 0 : $uripos;
	if (substr($uri,$uripos) == $url){
		return;
	}
}

$root_dir = dirname(FCPATH);

// CUSTOM DEZINERFOLIO CODE FOR THE REQUIREMENTS CHECK
$checks = array();


// EXTENSIONS TO LOAD
$required_extensions = array('curl','json');
$required_extensions_check =  array('Required Extensions',true,'');
$extension_prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';

foreach ($required_extensions as $extension) {
	if(extension_loaded($extension)){
		$required_extensions_check[2] .= get_type_message(1,$extension . ' is loaded.');
	}else{
    	if(dl($extension_prefix . $extension .'.'. PHP_SHLIB_SUFFIX) != 1){
			$required_extensions_check[1] &= false;
    		$required_extensions_check[2] .= get_type_message(0,$extension . ' is disabled.');
    	}else{
			$required_extensions_check[2] .= get_type_message(1,$extension . ' is loaded.');
    	}
	}
}
if ($required_extensions_check[1] == false){
	$required_extensions_check[2] .= "<i>Please load the required PHP extensions in your php.ini before you continue.</i>";
}
$checks[] = $required_extensions_check;




// FILES TO EXIST
$files_to_exist = array();
$files_to_exist[] = '/.htaccess';
$files_to_exist[] = '/app/config/dfg/upgrade_state.php';

$files_to_exist_check =  array('Files that need to exist',true,'');
foreach ($files_to_exist as $file) {
	if(file_exists($root_dir . $file)){
		$files_to_exist_check[2] .= get_type_message(1,$file . ' exists.');
	}else{
		$files_to_exist_check[1] &= false;
		$files_to_exist_check[2] .= get_type_message(0,$file . ' doesn\'t exist!.');
	}
}
if ($files_to_exist_check[1] == false){
	$files_to_exist_check[2] .= "<br/><i>Please verify the required files exist in the installation.<br/>Please copy over the files from the installation archive into the gallery folder.</i>";
}
$checks[] = $files_to_exist_check;



// DIRECTORIES AND FILES THAT SHOULD BE WRITABLE.
$writable_dirs = array();
$writable_dirs[] = '/resources/cache/';
$writable_dirs[] = '/resources/images/original/';
$writable_dirs[] = '/resources/images/large/';
$writable_dirs[] = '/resources/images/thumbnail/';
$writable_dirs[] = '/app/config/dfg/upgrade_state.php';

$writable_dirs_check =  array('Check for writable files and directories',true,'');
foreach ($writable_dirs as $dir) {
	if(is_writable($root_dir . $dir)){
		$writable_dirs_check[2] .= get_type_message(1,$dir . ' is writable.');
	}else{
		$writable_dirs_check[1] &= false;
		$writable_dirs_check[2] .= get_type_message(0,$dir . ' is not writable!');
	}
}
if ($writable_dirs_check[1] == false){
	$writable_dirs_check[2] .= "<i><strong>Please provide write permissions (chmod 777)  for required files/directories.</strong></i>";
}
$checks[] = $writable_dirs_check;



// CLEAN URLS.
if(extension_loaded('curl')){
	$curl_url = 'http://'.$_SERVER['SERVER_NAME'].substr($_SERVER['SCRIPT_NAME'],0,strpos($_SERVER['SCRIPT_NAME'],'/index.php')). '/api/rest/test_curl';
	$clean_url_check = curl_init($curl_url);
	curl_setopt($clean_url_check,CURLOPT_RETURNTRANSFER,true);
	$clean_url_check_resp = curl_exec($clean_url_check);
	if (curl_errno($clean_url_check)>0){
		$checks[] = array('A curl error occured while checking for clean urls.',false,"URL : $curl_url<br/>cURL message : ". curl_error($clean_url_check));
	}else{
		if($clean_url_check_resp == 'true'){
			$checks[] = array('Clean urls\' have been enabled.',true,'');
		}else{
			$checks[] = array('Invalid cURL response.',false,"We expected 'true' from the url : $curl_url");
		}
	}
}else{
	$checks[] = array('Unable to check clean urls, as curl is disabled.',false,'Please enable cURL extension first.');
}


// check for database.php 777
if(file_exists(APPPATH.'config/database.php')){
	$db_file_is_writable = is_writable(APPPATH.'config/database.php');
	include_once APPPATH.'config/database.php';
	$is_db_configured = is_array($config) && array_key_exists('active_group',$config);
	if ($is_db_configured){
		if ($db_file_is_writable){
			$db_check =  array(APPPATH.'config/database.php is writable!',true,'Please change it to read permissions (chmod 0664)  for this file to continue.');;
		}else{
			$db_check = array('Database Config is in read mode.',true,'');
		}
	}else{
		if ($db_file_is_writable){
			$db_check = array('Database Config is writable.',true,'');
		}else{
			$db_check = array('Database Config is not writable.',false,'Please provide write permissions (chmod 0777)  for '.APPPATH.'config/database.php file to continue.');
		}
	}
}else{
	$db_check =  array(APPPATH.'config/database.php file doesnt\' exist .',false,'Please create an empty database.php file under app/config directory, with write permissions.');;
}
$checks[] = $db_check;


// END ALL CHECKS...

// render the status if any...
$_continue = true;
foreach ($checks as $key => $check) {
	$_continue = $_continue && $check[1];
}

if(!$_continue){
	function base_url(){
		global $config;
		return $config['base_url'];
	}
	function load_view($file,$vars = array()){
		extract($vars);
		include APPPATH.'views/'. $file . EXT;
	}
	
	load_view('templates/header');
	echo '<h3>Not all requirements of DfGallery have been met.</h3><br/>';
	foreach ($checks as $key => $check) {
		$msg = "<strong>$check[0]</strong>";
		if(sizeof($check)>2){
			$msg .= '<br/>'.$check[2];
		}
		$level = ($check[1]) ? 'green' : 'red';
		load_view('templates/message',array('level'=>$level,'message'=>$msg));
	}
	load_view('templates/footer');
	exit;
}

// END CUSTOM DEZINERFOLIO CODE FOR THE REQUIREMENTS CHECK
}
?>[/code]

ich idiot, in dem Momet wo ich auf “absenden” gedrückt habe, habe ichs gesehen :smiley:

Ich habe das gefühl, dass deine datei nicht von php geparsed wird, damit meinee ich, dass du deine dateieindung auf php überprüfen sollst :wink:

mfg Joey

install.php so heißt die Datei. Ich bin leider absolut unwissend auf diesem Gebiet. Ich eschäftige mich nur mit Design und Html, und wollte die Gallerie einbauen und testweise einfach nur mal installieren, aber ja… geht nict :frowning:

Darf ich mal einen link, bitte?

achja: das ist übrigens keine Fehlermeldung sondern “ungelesener” php code :wink:

ftp://home.benjsch.bplaced.net/dfg/install.php

hmm,

sag mal da ist bestimmt ne htaccess drinn
code? ^^
vlt deaktivierst du da die dateiendung php …
mfg Joey

Nene, du rufst das ganze ja mit dem ft-protokoll auf ^^
das geht so nicht, du musst das ganze mit http aufrufen, also:
home.benjsch.bplaced.net/dfg/install.php

mfg Joey

ach du meine Güte. sowas lächerliches. aber wennman nichts weiß, macht man die verrücktesten sachen falsch.
jetzt kommt aber schon die nächste Fehlermeldung :frowning:

Warning: include_once(APPPATHconfig/config.php) [function.include-once]: failed to open stream: No such file or directory in /users/benjsch/www/dfg/install.php on line 2

Warning: include_once() [function.include]: Failed opening ‘APPPATHconfig/config.php’ for inclusion (include_path=’.:/etc/php/lib’) in /users/benjsch/www/dfg/install.php on line 2

okay auf das bin ich jetzt selbst draufgekommen.
nächster fehler:
curl is disabled. was heißt das? was is denn eine curl?

Ganze fehlermeldung:
Required Extensions
curl is disabled. json is loaded.Please load the required PHP extensions in your php.ini before you continue.

Ja, das ist nun ne Fehlermeldung xD

Das will dir nun sagen, dass die datei, die unter dem Pfad “APPPATHconfig/config.php” nicht da ist, öffne doch mal mit deinem ftp-proggi das verzeichnis und schau, ob da ne datei ist, die so heisst, falls nicht, hast du vlt. die doku nicht ganz gelesen oder nicht alle dateien hochgeladen…

mfg Joey

sie ist da, aber vermutlich muss ich das noch “ausfüllen”? aber wie und wo? diese ganzen fragezeichen und sonstige zeichen verwirren mich gg

[code]Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
/
/
*

  • DF - Override the default config URL to auto get the URL from the script name
    /
    //$config[‘base_url’] = “http://127.0.0.1/CodeIgniter/”;
    $config[‘base_url’] = ‘http://’.$_SERVER[‘SERVER_NAME’].substr($_SERVER[‘SCRIPT_NAME’],0,strpos($_SERVER[‘SCRIPT_NAME’],’/index.php’)). ‘/’;
    //echo print_r($_SERVER);
    /

    |--------------------------------------------------------------------------
    | Index File
    |--------------------------------------------------------------------------
    |
    | Typically this will be your index.php file, unless you’ve renamed it to
    | something else. If you are using mod_rewrite to remove the page set this
    | variable so that it is blank.
    |
    */
    $config[‘index_page’] = “”;

/*[/code]

achso:

[quote]nächster fehler:
curl is disabled. was heißt das? was is denn eine curl?[/quote]
wir sind hier…

hmm curl ist ein bestandteil (oder wie man dem sagen soll) von php, welcher hier aber aus sicherheistgründen deaktiviert ist… :unamused:

mfg Joey

habe ich das richtig verstanden dass bplaced diese art von Code nicht unterstützt? es handelt sich doch nur um eine Galerie :frowning:

Ja, ich glaube schon :wink:

sehr viele Programmierer solcher scripts achten nicht darauf, ob sie sicherheitsgefärdende funktionen benutzen oder nicht, das problem ist dann aber, dass das betroffene script auf den meisten freehostern nicht funktioniert, obwohl man das meiste davon auch ohne die betroffene Funktionen machen könnte - schade - …

mfg Joey

was hat das auf einmal zu bedeuten? ich habe an der .htacces herumprobiert, und dann kam das:

[quote]
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@bplaced.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2 Server at home.benjsch.bplaced.net Port 80[/quote]

meine htacces Datei:

[code]<FilesMatch “.(engine|inc|info|install|module|profile|po|sh|.sql|theme|tpl(.php)?|xtmpl)$|^(code-style.pl|Entries.|Repository|Root|Tag|Template)$”>
Order allow,deny

Options -Indexes

Options +FollowSymLinks

DirectoryIndex index.php

RewriteEngine On RewriteBase /dfg RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?/$1 [L]

[/code]

:ps:

ich weiss nicht, obs das ist, aber warum schreibst du

Order allow,deny

und dann nichts betreffendes?
meiner ansicht müsste da zumindest ein Allow befehl hin…

Was hast denn du zuletzt geändert?

mfg Joey