Zum Inhalt springen

Fehler bei Klick vergrößern 3.6.1 *heul*

Erstellt am 26. Mai 2004 · 13 Antworten · letzte Antwort am 6. Juli 2004

Tags: Bilder, Datenbank, Frage

Obstel ·

Hab beim neuen typo3 3.6.1 folgende Fehler beim vergrößern von Thumbs, mit der option eingeschaltet im Backend "bei Klick vergrößern"

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 216

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 665

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 216

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 665

Was kann ich dagegen machen hab alles ausprobiert:

Compare with Required Data-Fields 2x mal gemacht
3.6.1 2mal draufgespielt

.... weis net mehr weiter.

clan ·

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 216

also ich würd ma folgendes vorschlagen, da ich mich typo 3 net auskenne, aber ein bissl in php 😉

geh in class.t3lib_db.php und schreibe in zeile 215
folgendes hinein.

echo mysql_error();

das dürfte dir sehr viel veraten, was da nicht stimmt.

ich denke mir mal das die verbindung zu db gar nicht aufgebaut wurde, oder halt vorher geschlossen wurde mit mysql_close();

Obstel ·

hab deinen echo code eingefügt.

Parse error: parse error, unexpected T_ECHO, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 215
clan ·

ok, tausch die funktion "exec_SELECTquery" gegen die hier ma aus und poste ma das result.

function exec_SELECTquery($select_fields,$from_table,$where_clause,$groupBy='',$orderBy='',$limit='')	{
	
	$error = "";
	$error = mysql_error();
	
		$res = mysql_query($this->SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit), $this->link);
	
	$error .= mysql_error();	
	if($error!=""){
		$sql = "";
		$sql = $this->SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit);
		echo "sql: ".$sql." ->".$error."<br>";
	}
	
		if ($this->debugOutput)	$this->debug('exec_SELECTquery');
		return $res;
}
Obstel ·
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 221

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 679

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 221

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 679
clan ·

und nochma austauschen 😉

	function exec_SELECTquery($select_fields,$from_table,$where_clause,$groupBy='',$orderBy='',$limit='')	{
		$error = "";
		$error = mysql_error();
			if($error != ""){
			echo $error;
			}

		$res = mysql_query($this->SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit));
		
		$error = "";
		$error = mysql_error();
			if($error != ""){
			echo $error;
			}
		
		if ($this->debugOutput)	$this->debug('exec_SELECTquery');
		return $res;
	}
Obstel ·
Warning: mysql_query(): Access denied for user: 'nobody@localhost' (Using password: NO) in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 223

Warning: mysql_query(): A link to the server could not be established in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 223
Access denied for user: 'nobody@localhost' (Using password: NO)
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 680
Access denied for user: 'nobody@localhost' (Using password: NO)
Warning: mysql_query(): Access denied for user: 'nobody@localhost' (Using password: NO) in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 223

Warning: mysql_query(): A link to the server could not be established in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 223
Access denied for user: 'nobody@localhost' (Using password: NO)
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 167

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /is/htdocs/13523/www.freelancerfan.de/scifi/t3lib/class.t3lib_db.php on line 680

ich glaub wir sind damit weiter gekommen 😃 [/quote]

clan ·

trag da mal hartcore die daten ein und poste ma was kommt.

also aus

mysql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password);

wird

mysql_pconnect("localhost", "db_username", "db_passwort");

du musst nur noch den db usernamen und passwort austauschen

Pawel ·

1. die Zeile lautet:

$res = mysql_query($this->SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit),this->$link);

2. habe ich den Fehler jetzt behoben, indem ich vor die Zeilen folgendes geschrieben habe:

if (this->$link != null) ...

Kann mir jemand erklären, warum der Pointer nicht initiert wurde?