Probleme mit Moderator Can

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
Opa Methusalix
Mitglied
Beiträge: 18
Registriert: 12.03.2010 01:15

Re: Probleme mit Moderator Can

Beitrag von Opa Methusalix »

Äääähm ja, in meiner my.cnf gibt es das hier nicht
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_E NGINE_SUBSTITUTION"
Also da gibt es garnichts mit sql-mode

Das is doch nicht normal oder?

Hier mal meine komplette my.cnf

Code: Alles auswählen

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port		= 3306
socket		= /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket		= /var/run/mysqld/mysqld.sock
nice		= 0

[mysqld]
#
# * Basic Settings
#
user		= mysql
pid-file	= /var/run/mysqld/mysqld.pid
socket		= /var/run/mysqld/mysqld.sock
port		= 3306
basedir		= /usr
datadir		= /var/lib/mysql
tmpdir		= /tmp
language	= /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address		= 127.0.0.1
#
# * Fine Tuning
#
key_buffer		= 2M
max_allowed_packet	= 4M
thread_stack		= 128K
thread_cache_size	= 8
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 512K
query_cache_size        = 4M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log		= /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries	= /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
#server-id		= 1
log_bin			= /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
expire_logs_days	= 10
max_binlog_size         = 100M
#binlog_do_db		= include_database_name
#binlog_ignore_db	= include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet	= 4M

[mysql]
#no-auto-rehash	# faster start of mysql but no tab completition

[isamchk]
key_buffer		= 2M

#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1


#
# * IMPORTANT: Additional settings that can override those from this file!
#
!includedir /etc/mysql/conf.d/
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Probleme mit Moderator Can

Beitrag von Mahony »

Hallo
Opa Methusalix hat geschrieben:Ok wenn ich da des GLobal einfüge, bekomme ich als global sql mode beim ersten Befehl das hier raus

Code: Alles auswählen

MYSQL40,HIGH_NOT_PRECEDENCE
und beim Zweiten steht dann alles leer, aber die fehlermeldung beim erstellen einer aktion ist immer noch die gleiche
Demnach hatte die Umstellung doch bereits funktioniert. Hast du mal den cache des Forums geleert? Normalerweise sollte der Fehler nach dem Umstellen des SQL Mode nämlich nicht mehr auftreten.


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Benutzeravatar
Opa Methusalix
Mitglied
Beiträge: 18
Registriert: 12.03.2010 01:15

Re: Probleme mit Moderator Can

Beitrag von Opa Methusalix »

SQL is umgestellt, cache is gelöscht, sql neu gestartet. und immer noch die gleiche Meldung. o.O
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Probleme mit Moderator Can

Beitrag von Mahony »

Hallo
...immer noch die gleiche Meldung...
Das dürfte eigentlich nicht sein, da dass Problem eindeutig durch den SQL STRICT MODE verursacht wird.
Gib mal in deinem Datenbank-Tool für die entsprechende Datenbank, in der dein Forum liegt, folgenden SQL Befehl ein

Code: Alles auswählen

SHOW VARIABLES
und schau nach, was bei sql_mode steht.


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Benutzeravatar
Opa Methusalix
Mitglied
Beiträge: 18
Registriert: 12.03.2010 01:15

Re: Probleme mit Moderator Can

Beitrag von Opa Methusalix »

Nix, des is leer
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Probleme mit Moderator Can

Beitrag von Mahony »

Hallo
Nachdem nun sichergestellt ist dass der Strict Mode deaktiviert ist, der Fehler aber immer noch auftritt, bleibt als Fehlerursache eigentlich nur noch ein fehlerhafter Einbau des MODs.

Am besten, du packst mal ein Paket mit den von dir geänderten Dateien zusammen, und ich sehe mir das mal an.

Edit - neuer Download: http://phpbb3.pytalhost.com/ModeratorCanv0.8.0.zip Ich habe noch einen Fehler entfernt. Bitte alle Dateien des MODs ersetzen und den cache des Forums leeren.

Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Probleme mit Moderator Can

Beitrag von Mahony »

Hallo Opa Methusalix
Ich habe mir den MOD noch einmal angesehen und die offensichtlichen Fehler behoben.
Hier kannst du dir das neue Paket herunter laden -
Beschreibung: Moderator Can 1.0.1
zum Download: Moderator Can 1.0.1

Der MOD sollte nun auch mit aktiviertem SQL STRICT MODE funktionieren.


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Schattentraum
Mitglied
Beiträge: 400
Registriert: 17.07.2008 15:14

Re: Probleme mit Moderator Can

Beitrag von Schattentraum »

Hey ,

also ich hab das eben bei mir eingebaut.

Und es taucht dieser Fehler auf:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /includes/functions_can.php  on line 18: mysql_get_server_info(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[phpBB Debug] PHP Notice: in file /includes/functions_can.php on line 18: mysql_get_server_info(): A link to the server could not be established
Benutztes Paket das vom Post über mir.

Angaben zum Webspace:

MySQL

* Server: 1.db.xxx.de via TCP/IP
* Server Version: 5.0.67-Max
* MySQL-Zeichensatz: UTF-8 Unicode (utf8)

Webserver

* Apache/2.2.10 (Linux/SUSE)
* MySQL-Client-Version: 5.0.67
* PHP Erweiterung: mysql

phpMyAdmin

* Versionsinformationen: 3.2.2

Und der Eintrag bei der phpbb php info:

mysqli
MysqlI Support enabled
Client API library version 5.0.67
Client API header version 5.0.67
MYSQLI_SOCKET /var/lib/mysql/mysql.sock

Wäre toll wenn du mir da weiter helfen könntest.

Grueße :)
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Probleme mit Moderator Can

Beitrag von Mahony »

Hallo
Lade dir die neue Version herunter, oder entferne den Code manuell wie angegeben.

Öffne die includes/functions_can.php
Suche und entferne

Code: Alles auswählen

$mysql_version = trim(mysql_get_server_info());
if (substr($mysql_version,0,1)>'4')
      {
          mysql_query("SET sql_mode=''");
      } 
Dieser Teil wird nicht mehr benötigt. Ich hatte wohl vergessen das heraus zu nehmen. Im neuen Download ist der überflüssige Code bereits entfernt.


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Schattentraum
Mitglied
Beiträge: 400
Registriert: 17.07.2008 15:14

Re: Probleme mit Moderator Can

Beitrag von Schattentraum »

Hey Mahony ,

dank dir für die Antwort , nun passt es :)

Grueße!
Antworten

Zurück zu „[3.0.x] Mod Support“