[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

MySQL Error im Group Block
Fragen und Diskussionen zu Modulen / Erweiterungen
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  Module & Blöcke

View previous topic :: View next topic  
Author Message
Joerg12
Investigator
Investigator

Offline Offline
Joined: Aug 11, 2006
Posts: 42

PostPosted: 23.02.2009 13:18
Post subject: MySQL Error im Group Block

Hallo,

seitdem ich den Block "Groups" installiert habe, kommt bei Besuchern, die nicht Mitglied sind, folgender MySQL Fehler:

PHP:
On /index.php?name=Your_Account
While executing query "SELECT g.group_id, g.group_name, g.group_type
FROM cms_bbgroups g, cms_bbuser_group ug
WHERE ug.user_id =
AND ug.group_id = g.group_id
AND ug.user_pending = 1
AND g.group_single_user = 0
ORDER BY g.group_name, ug.user_id"

the following error occured: 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 'AND ug.group_id = g.group_id
AND ug.user_pending = 1
AND g.group_single_'
at line 4

In
: block-Groups.php on line: 50

Guest information
:
User id:
Username:
Admin: No
IP
: 0.0.0.0
Host
: 0.0.0.0

Jemand ne Idee ?

Gruss
Jörg.


Joerg12's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly CMS 9.2.1, PHP 5.2.5, MySQL 5.0.18
Back to top
View user's profile
clubhouse
Special-Agent
Special-Agent

Offline Offline
Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen
PostPosted: 23.02.2009 13:41
Post subject: Re: MySQL Error im Group Block

es gibt keine g.group_single_user ?

datei editieren?

_________________


clubhouse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Joerg12
Investigator
Investigator

Offline Offline
Joined: Aug 11, 2006
Posts: 42

PostPosted: 23.02.2009 13:52
Post subject: Re: MySQL Error im Group Block

Hallo,

feierst Du etwa zuviel Karneval, oder warum lässt Du bei jedem Posting denselben unsinnigen Spruch ab ??

Die Vorsilben definieren die jeweilige Datenbank und sind vorher genau deklariert....

Gruss
Jörg.


Joerg12's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly CMS 9.2.1, PHP 5.2.5, MySQL 5.0.18
Back to top
View user's profile
Klas
Moderator
Moderator

Offline Offline
Joined: Apr 14, 2004
Posts: 293

PostPosted: 23.02.2009 22:27
Post subject: Re: MySQL Error im Group Block

Tja, hinter 'WHERE ug.user_id = ' sollte die userid stehen, eine '1' bei nicht angemeldeten. Die wird geholt aus $userinfo['user_id'] - warum die in dem Block bei dir nicht initialisiert ist kann ich nicht sagen. Du kannst ja mal im Block über Zeile 43 eine Zeile : print_r($userinfo); einzufügen um zu sehen ob die komplette $userinfo nicht initialisiert ist oder nur die $userinfo['user_id'].

_________________
Bitte lies dies bevor du fragst.

Klas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  Module & Blöcke
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy