[TYPO3-german] Re: Fatal error: Call to a member function query() on a non-object in
Mallardi Gionni
giovit at hotmail.de
Wed Sep 3 16:21:07 CEST 2014
Quote: gionni wrote on Wed, 03 September 2014 16:09
----------------------------------------------------
> Hallo Kommunity
> ich bin neu im Typo3 und habe eine istallation des Paket 6.1.10 durchgeführt. Am anfang war alles gut, habe auch nur mit ###Marker### gearbeitet.
>
> als ich aber im Erweiterungsmanager Erweiterungen installieren wollte, habe ich folgende Fehlermeldung bekommen:
>
> Fatal error: Call to a member function query() on a non-object in /var/www/vhosts/standbyfriends.de/httpdocs/typo3_src+dummy-6.1.10/typo3/sysext/core/Classes/Database/DatabaseConnection.php on line 986
>
> diese Fehlermeldung kommt auch wenn ich woanders klicke, ausser wenn ich zum Fileadmin gehe, dann werden alle Ordner angezeigt.
>
> Habe verschiedene Foren durchforsten, habe aber nicht wirklich hilfsreich gefunden dass mein Problem beheben wurde.
>
> Was ich schon versucht habe:
>
> 1. Cache gelöscht?
> 2. displayErrors = 1?
> 3. Allgemeine Konfiguration angepasst;
$TYPO3_CONF_VARS['GFX']['TTFdpi'] = '96';
$TYPO3_CONF_VARS['GFX']['gdlib_2'] = '1';
$TYPO3_CONF_VARS['GFX']['noIconProc'] = '0';
$TYPO3_CONF_VARS['GFX']['imagefile_ext'] = 'gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai';
$TYPO3_CONF_VARS['GFX']['im_noScaleUp'] = '1';
$TYPO3_CONF_VARS['GFX']['enable_typo3temp_db_tracking'] = '1';
$TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/bin/';
$TYPO3_CONF_VARS['GFX']['imagefile_ext'] = 'gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai';
$TYPO3_CONF_VARS['GFX']['im_noScaleUp'] = '1';
$TYPO3_CONF_VARS['GFX']['png_truecolor'] = '1';
$TYPO3_CONF_VARS['GFX']['im_path_lzw'] = '/usr/bin/';
$TYPO3_CONF_VARS['GFX']['gif_compress'] = '1';
$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'gm';
$TYPO3_CONF_VARS['SYS']['systemLocale'] = 'de_DE';
> 4. Install-Tool -> Database Analyser -> Import... (aber hier stand dass alle Databases schon uptodate waren);
> 5. Natürlich bin ich auch auf die Idee gekommen die o.g. Zeile zu untersuchen, allerdings ist mein PHP-Wissen nicht so tief ausgelegt;
>hier ein Stück vom code:
/**************************************
*
* MySQL(i) wrapper functions
* (For use in your applications)
*
**************************************/
/**
* Executes query
* MySQLi query() wrapper function
* Beware: Use of this method should be avoided as it is experimentally supported by DBAL. You should consider
* using exec_SELECTquery() and similar methods instead.
*
* @param string $query Query to execute
* @return boolean|\mysqli_result|object MySQLi result object / DBAL object
*/
public function sql_query($query) {
if (!$this->isConnected) {
$this->connectDB();
}
<(986)> $res = $this->link->query($query); <(986)>
if ($this->debugOutput) {
var_dump$this->debug('sql_query', $query);
}
return $res;
}
/**
> Hat jemand eine Idee wie ich mein Problem lösen kann?
>
> Ich bedanke mich im voraus für eure Hilfe.
>
> ps.: ich hätte auch den besagten file hochgeladen aber der Upload hat kein php file akzeptiert.
----------------------------------------------------
More information about the TYPO3-german
mailing list