Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 07:30:01 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155550
Posts in
21714
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Error after installing WB
Pages: [
1
]
Go Down
Author
Topic: Error after installing WB (Read 853 times)
scheltel
Offline
Posts: 19
Error after installing WB
«
on:
August 03, 2011, 06:56:58 AM »
Hi,
I just have installed Website Baker 2.8.2 on a Windows 2008 with Apache 2.2.16, PHP 5.2.10.10 and MySQL 5.1. After I log in in the admin part of WB I'm getting the following error message:
Fatal error:
Call to a member function fetchRow() on a non-object in
C:\ApacheSites\mysite\framework\class.login.php
on line
135
Is there someone who can tell me what can be wrong? The installation procedure gave no errors at all.
Regards,
scheltel
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Error after installing WB
«
Reply #1 on:
August 03, 2011, 07:28:45 AM »
Hello,
it looks like not all tables are installed. Is there a users Table in your database?
Matthias
Logged
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #2 on:
August 03, 2011, 09:53:05 AM »
Hello,
Yes, there is a users table and it contains one record for username = 'admin'
Regards,
scheltel
Logged
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #3 on:
August 03, 2011, 10:09:26 AM »
Hello,
I did the query which causes the error manually in the MySQL Workbench:
SELECT * FROM `users` WHERE `username` = "admin" AND `password` = "03843becf17488afe6f
cc99dc799e7d4" AND `active` = 1;
The error I'm getting is:
Error Code: 1054 Unknown column 'admin' in 'where clause'
It looks like MySQL does not understand the query.
Regards,
scheltel
Logged
DarkViper
Development Team
Offline
Posts: 1253
Re: Error after installing WB
«
Reply #4 on:
August 03, 2011, 10:42:27 AM »
can you try following statement in your workbench please?
take care please for the exact syntax.
check, if really no prefix is needed for the tablename.
Code:
SELECT * FROM `users` WHERE (`username`='admin') AND (`password`='03843becf17488afe6fcc99dc799e7d4') AND (`active`=1)
Logged
Anleitungen lesen und selber nachdenken ist anstrengend... Da lass ich doch lieber andere für mich denken...
In
1984
: Nineteen Eighty-Four is a unrealistic utopia!!
In
2012
: Nineteen Eighty-Four is a little piece only of our reality!!
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #5 on:
August 03, 2011, 10:49:15 AM »
That query did return a record.
I think problem is caused by the double quotes around the values which are supplied in the query.
Do you know if there is a MySQL server setting to avoid get MySQL working with values which are double quoted?
Regards,
scheltel
Logged
DarkViper
Development Team
Offline
Posts: 1253
Re: Error after installing WB
«
Reply #6 on:
August 03, 2011, 11:27:57 AM »
it looks like your mysqld is running in non ANSI Mode (it often is a problem in a win environment).
Since any time w are working on to make all sql statements in WB SQL-strikt, but unfortunately, there are a lot of them and we need time to make it complete.
please try following (both lines should be sent at once):
Code:
SET SESSION `sql_mode`='ANSI';
SELECT * FROM `users` WHERE `username` = "admin" AND `password` = "03843becf17488afe6fcc99dc799e7d4" AND `active` = 1;
if this works, you need a small patch in the class.database.php - file
Code:
<?php
65
if(!
mysql_select_db
(
DB_NAME
)) {
66 $this
->
connected
=
false
;
67 $this
->
error
=
mysql_error
();
68
} else {
69 $this
->
connected
=
true
;
++
mysql_query
(
'SET SESSION sql_mode=\'ANSI\''
);
70
}
?>
«
Last Edit: August 03, 2011, 11:29:54 AM by DarkViper
»
Logged
Anleitungen lesen und selber nachdenken ist anstrengend... Da lass ich doch lieber andere für mich denken...
In
1984
: Nineteen Eighty-Four is a unrealistic utopia!!
In
2012
: Nineteen Eighty-Four is a little piece only of our reality!!
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #7 on:
August 03, 2011, 12:14:12 PM »
I'm still getting the same error
Strange... Older versions of WB (2.6.7) do not have this problem on the same machine.
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Error after installing WB
«
Reply #8 on:
August 03, 2011, 12:29:23 PM »
@scheltel
How is your MySQL configured? Is it running on Strict Mode or not?
But as 2.6.7 is running i think it doesn't run in strict mode, as 2.6.7 isn't definately written for strict Mode.
Matthias
Logged
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #9 on:
August 03, 2011, 12:34:22 PM »
See sql_mode part from the my.ini file.
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Logged
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #10 on:
August 03, 2011, 09:06:26 PM »
The server is already running in ANSI mode:
mysql> SELECT @@global.sql_mode;
+-------------------------------------------------------------+
| @@global.sql_mode |
+-------------------------------------------------------------+
| REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI |
+-------------------------------------------------------------+
1 row in set (0.00 sec)
mysql>
I think the ANSI_QUOTES setting is the cause of the problems.
Logged
DarkViper
Development Team
Offline
Posts: 1253
Re: Error after installing WB
«
Reply #11 on:
August 03, 2011, 10:14:05 PM »
ok... i examinate the SVN back into the past and found that around 2 years ago single-quoting was changed into doublequoting on class.login.php. Don't ask me why please...
It had no negative effect till now because older versions of mySQL handle it a bit more tolerant then newer ones using strikt mode.
Anyway. I changed all sql statements inside that class into sql-strikt now. Please test with the attached file and give me a note if it works. Then i will move it into SVN.
Logged
Anleitungen lesen und selber nachdenken ist anstrengend... Da lass ich doch lieber andere für mich denken...
In
1984
: Nineteen Eighty-Four is a unrealistic utopia!!
In
2012
: Nineteen Eighty-Four is a little piece only of our reality!!
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #12 on:
August 04, 2011, 08:37:58 AM »
The class.login.php works fine now. Thank you DrakViper
But know I'm getting an error when I try to add a new page:
Unknown column '_top' in 'field list'
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Error after installing WB
«
Reply #13 on:
August 04, 2011, 09:28:12 AM »
Hallo,
ist WB jetzt schon komplett auf die Zusammenarbeit mit MySQL strict Mode umgestellt? Ich glaube nicht, wenn schon, dann müsste ich den Entwicklern ein dickes Lob ausprechen
. Und selbst wenn der Core schon aktualisiert ist, viele Module sind es definitv noch nicht. Deswegen mal hier lesen:
I don't think that the whole core of WB is ready for MySQL strict mode. But even this would be the case, the most modules wouldn't. Read here:
http://dev.mysql.com/doc/refman/5.1/de/mysql-config-wizard-networking.html
http://dev.mysql.com/doc/refman/5.1/en/mysql-config-wizard-networking.html
und dann zum deaktivieren des strict-modes bitte folgendes in der my.ini ändern:
To deactivate strict mode change:
Code:
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
ändern in:
to:
Code:
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
einfach das STRICT_TRANS_TABLES entfernen und dann mysql neu starten.
simply remove STRICT_TRANS_TABLES and restart MySQL.
Danach sollten deine Fehlermeldungen (hoffe ich) weg sein.
After this there should be no more Error messages.
Matthias
P.S.
Didn't realized that I'm in the english Part of the Forum, translated it now.
«
Last Edit: August 05, 2011, 02:30:04 PM by ruebenwurzel
»
Logged
scheltel
Offline
Posts: 19
Re: Error after installing WB
«
Reply #14 on:
August 05, 2011, 01:36:07 PM »
@ ruebenwurzel
I have tried to alter the settings using the ' MySQL Server Instance Configuration Wizard'. But after that the MySQL Windows Service did not start at all.
After some research the Windows Service appeared to be started with the parameter '--ansi'. I think this parameter had a conflict with the new my.ini. I have removed the parameter using regedit. And now the service starts OK.
The Strict Mode is totally disabled now, WebsiteBaker 2.8.2 runs well on my server!
Thank you all for your support.
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...