Seite 10 von 130

Verfasst: 04.02.2008 17:44
von Ruhrpottler
Das hier spuckt er aus
SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY t.topic_last_post_time DESC LIMIT 5' at line 47 [1064]

SQL

SELECT t.forum_id, t.topic_id, t.topic_last_post_id, t.topic_last_post_time, t.topic_time, t.topic_title, t.topic_attachment, t.topic_views, t.poll_title, t.topic_replies, t.forum_id, t.topic_poster, u.username, u.user_id, u.user_type, u.user_colour, p.post_id, p.post_time, p.post_text, p.post_attachment, p.enable_smilies, p.enable_bbcode, p.enable_magic_url, p.bbcode_bitfield, p.bbcode_uid, f.forum_name FROM phpbb_topics AS t LEFT JOIN phpbb_users as u ON t.topic_last_poster_id = u.user_id LEFT JOIN phpbb_forums as f ON t.forum_id=f.forum_id LEFT JOIN phpbb_posts as p ON t.topic_last_post_id = p.post_id WHERE ( t.topic_type != 2 ) AND ( t.topic_type != 3) AND t.topic_status <> 2 AND t.topic_approved = 1 AND () ORDER BY t.topic_last_post_time DESC LIMIT 5

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()

FILE: includes/db/mysql.php
LINE: 205
CALL: dbal_mysql->sql_query()

FILE: includes/db/dbal.php
LINE: 157
CALL: dbal_mysql->_sql_query_limit()

FILE: portal/includes/functions.php
LINE: 312
CALL: dbal_mysql->sql_query_limit()

FILE: portal/block/news.php
LINE: 35
CALL: phpbb_fetch_posts()

FILE: portal.php
LINE: 100
CALL: include('portal/block/news.php')

Verfasst: 04.02.2008 18:05
von Saint

Verfasst: 05.02.2008 10:30
von Ruhrpottler
OK, danke .. das hat geholfen.

Habe die beiden genannten Funktionen erstmal abgeschaltet und dann auch keine Fehlermeldungen mehr bekommen. Allerdings brauchte das Portal immer noch ne Minute um sich zu öffnen. Hab ein wenig rumgefummelt und scheinbar lag es an der "Wordgraph" Funktion. Wenn die abgeschaltet ist läufts wunderbar :)

Verfasst: 05.02.2008 10:38
von Saint
Ah - danke, das ist ein konkreter Hinweis.
Der Wordgraph ist eh ein Feature... naja, sagen wir mal so: wer es braucht. :wink:

Zu dem SQL Problem: das Portal über den Installer deinstallieren und denn Version 0.2.1 neu installieren müsste auch Abhilfe bringen.
Dann solltest du auch alle Funktionen wieder nutzen können.

Verfasst: 06.02.2008 19:35
von Saint
Hier habe ich eine Liste der geänderten Dateien (0.2.0 --> 0.2.1) eingestellt, als auch Lösungen für bekannte Probleme der Version 0.2.1.

Verfasst: 07.02.2008 14:22
von ups
ups hat geschrieben:nen schöner block unterhalb der online user
und zwar einen der die online user anzeigt im flashchat von tufat :-)

ps: das snippet gibts schon von tufat selber zum eintragen in die index, man muß es nur anpassen und ins portal als block reinmachen :-)
der code wär eigendlich einfach...steht zur freien verfügung...

siehe hier http://www.tufat.com/docs/flashchat/who ... phpbb.html das kann ich selber machen, nur einen block wie man den erstellt im portal unterhalb der online user unterhalb von dem menue links oder unterhalb von der anmeldung/später eigenen avater...das weiß ich nicht...

oder hier ein java code

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">
<style type="text/css">
<!--
.normal {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
}
A {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #0000FF;
}
A:hover {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FF0000;
}
-->
</style>
</head>
	<body>
		<center>
		<p class=normal>There are 0 users in 4 rooms.</p>
					<table border="1" cellpadding="1" class="normal">
				<tr>
					<th>ID</th>
					<th>Name</th>
					<th>Count</th>
					<th>Users</th>
				</tr>
									<tr>
						<td>1</td>
						<td>The Lounge</td>
						<td>0</td>
						<td> </td>
					</tr>
									<tr>
						<td>2</td>
						<td>Hollywood</td>
						<td>0</td>
						<td> </td>
					</tr>
									<tr>
						<td>3</td>
						<td>Tech Talk</td>
						<td>0</td>
						<td> </td>
					</tr>
									<tr>
						<td>4</td>
						<td>Current Events</td>
						<td>0</td>
						<td> </td>
					</tr>
							</table>
		
		<p><a href="javascript:window.close()">Close</a></p>
		</center>
	</body>
</html>
steht alles in der wiki

Internal Server Error 500 nach ändern der htaccess

Verfasst: 07.02.2008 22:17
von alles
Hi, so sieht meine htaccess vor dem ändern aus
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
So funktioniert das Board noch, aber eure Portalseite wird nicht als Startseite aufgerufen.

Wenn ich nun aber diese Zeile:

Code: Alles auswählen

DirectoryIndex portal.php index.php index.html index.htm
hintenanfüge, bekomme ich obige Meldung. Was mache ich verkehrt?

Derzeit läuft das ganze bei mir ohne htaccess, aber das ist ja nicht im Sinne des Erfinders.

cu
alles

Verfasst: 07.02.2008 22:19
von Saint
Welche Meldung?

Verfasst: 07.02.2008 22:19
von alles
Titel: Internal Server Error 500 nach ändern der htaccess

cu
alles

Verfasst: 07.02.2008 22:22
von Saint
Ersetzte mal den Inhalte deiner .htaccess mit diesem:

Code: Alles auswählen

DirectoryIndex portal.php index.php index.html index.htm

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>