Author Topic: DB Error  (Read 8010 times)

0 Members and 1 Guest are viewing this topic.

Offline LEC

  • Pre-Newbie
  • Posts: 6
    • View Profile
DB Error
« on: July 20, 2002, 05:31:30 AM »
Hello,

I know, that this problem was monitored here, on forum, but there was'nt given any solution how to fix that (or i'm blind  :wink: )

I get this error after clean installation:

 
Code: [Select]
DB Error: Bad SQL Query: SELECT u.*, l.* FROM 4images_users u, 4images_lightboxes l WHERE u.user_id = AND l.user_id = u.user_id
You have an error in your SQL syntax near 'AND l.user_id = u.user_id' at line 3

DB Error: Bad SQL Query: SELECT * FROM 4images_users WHERE user_id =
You have an error in your SQL syntax near '' at line 3


When i try to ignore it & login, a get another:

Code: [Select]
DB Error: Bad SQL Query: SELECT u.*, l.* FROM 4images_users u, 4images_lightboxes l WHERE u.user_id = AND l.user_id = u.user_id
You have an error in your SQL syntax near 'AND l.user_id = u.user_id' at line 3

DB Error: Bad SQL Query: SELECT * FROM 4images_users WHERE user_id =
You have an error in your SQL syntax near '' at line 3

Warning: Cannot add header information - headers already sent by (output started at /home/services/host.sk.icpnet.pl/html/galeria/includes/db_mysql.php:185) in /home/services/host.sk.icpnet.pl/html/galeria/includes/sessions.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /home/services/host.sk.icpnet.pl/html/galeria/includes/db_mysql.php:185) in /home/services/host.sk.icpnet.pl/html/galeria/includes/sessions.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /home/services/host.sk.icpnet.pl/html/galeria/includes/db_mysql.php:185) in /home/services/host.sk.icpnet.pl/html/galeria/login.php on line 60


SQL is on the same machine (localhost) - HTTP server (running Apache/1.3.24 (Unix)  (PLD/Linux) mod_xslt/1.0 mod_ssl/2.8.7 OpenSSL/0.9.6b mod_perl/1.26 PHP/4.1.2; MySQL 3.23.49


Can U help me ? plz....

btw: on my local-testing serwer (FoxServ on Windows) everything works fine...  :roll:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
DB Error
« Reply #1 on: July 20, 2002, 09:53:46 AM »
Hi!

Hmmm..strange, never heard it before. If have really no idea. It seems that the user_id is missing in the session class.
Did you have any other error messages?

Greets Jan[/list]
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline LEC

  • Pre-Newbie
  • Posts: 6
    • View Profile
DB Error
« Reply #2 on: July 20, 2002, 10:12:47 AM »
Hi,


Well, i've checked database using PhpMyAdmin:

- there's 2 users after installation: me as admin, and Guest, there's Iser ID 9 for admin user and -1 for Guest. So, for me it seems to be right....


Other errors? Installation went smooth, first error was afer loading login.php... You can Check it on your own , here: http://host.sk.icpnet.pl/galeria/

If You wanna have some fun trying to fix it, I can send you login & pass either....

Geeeee, I was wonderring.... maybe it's something with the rights ?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
DB Error
« Reply #3 on: July 20, 2002, 11:16:53 AM »
Yes, you can send me your server login details.
jan@dotsunited.de

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline LEC

  • Pre-Newbie
  • Posts: 6
    • View Profile
DB Error
« Reply #4 on: July 20, 2002, 12:01:18 PM »
ok, thx a lot :) already sended...

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
DB Error
« Reply #5 on: July 20, 2002, 12:55:15 PM »
Ok, i fixed it. It seems there are some problems with the ips. Your server changed the ips in formats like :::fff:f127.0.0.1. It should work now.

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline LEC

  • Pre-Newbie
  • Posts: 6
    • View Profile
DB Error
« Reply #6 on: July 20, 2002, 01:05:14 PM »
that's correct, but it doesn't crash any other scripts (phpbb2, gallery, phparena) so I thought this time it wont be the crash-reason too...

Anyway thx a lot... You changed something in in php or in the database? I would be usefull to know for the future reinstalations... :)

You will be always welcome on the gallery - pretty much thanx again. Maybe as a thank You want polish laguage pack ? (made by myself)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
DB Error
« Reply #7 on: July 20, 2002, 01:19:07 PM »
I only changed "includes/sessions.php". In future releases i will integrate the changes i made in your script.

You can offer a polish language pack if you want but i don't take up any further "official" language packs.

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline LEC

  • Pre-Newbie
  • Posts: 6
    • View Profile
DB Error
« Reply #8 on: July 20, 2002, 01:26:03 PM »
ok, I understand. See YA!