Author Topic: Probleme beim Update auf 1.5  (Read 17734 times)

0 Members and 1 Guest are viewing this topic.

Offline Hasi

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.swinger-community.com
Probleme beim Update auf 1.5
« on: May 03, 2002, 06:48:33 PM »
Halli

nach dem Update auf die neue Version bekomme ich folgende Fehlermeldung:
DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4images_images i, 4images_users u, 4images_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
You have an error in your SQL syntax near 'RAND()' at line 4

Auch bei einer Neuinstallation ist dies der Fall.

wer sich es mal anschaun will:
http://www.hasi-online.de/800x600/Bilder.htm

Irgendjemand eine Idee??

Offline Sybille_H

  • Pre-Newbie
  • Posts: 1
    • View Profile
Probleme beim Update auf 1.5
« Reply #1 on: May 03, 2002, 10:15:22 PM »
Hallo,

leider habe ich haargenau das gleiche Problem.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Probleme beim Update auf 1.5
« Reply #2 on: May 03, 2002, 10:46:44 PM »
hi,

ich hab das update auf 3 verschiedenen server ausprobiert..
ohne troubles....

suse linux 7.1, apache 1.3.24, php 4.1.2, mysql 3.23.49a  (über 11000 bilder)
suse linux 7.2, apache 1.3.19, php 4.1.2, mysql 3.23.49 (über 1500 bilder)
windows 2000, omniHTTPd 2.0.9, php 4.1.2, mysql 3.23.49 (über 20000 bilder)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Xidan

  • Pre-Newbie
  • Posts: 3
    • View Profile
Probleme beim Update auf 1.5
« Reply #3 on: May 03, 2002, 11:41:42 PM »
Ich habe leider genau das gleiche Problem auf meiner Seite.
Die Page ist bei Strato gehosted. Kann es eventuell an strato liegen?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Probleme beim Update auf 1.5
« Reply #4 on: May 04, 2002, 09:15:49 AM »
Welche MySQL Versionen nutz Ihr denn?

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

Offline Hasi

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.swinger-community.com
Probleme beim Update auf 1.5
« Reply #5 on: May 04, 2002, 10:38:28 AM »
Kann wirklich an Strato liegen. Bin ebenfalls bei dem Verein.
Strato hat Version MySQL 3.22.32 drauf.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Probleme beim Update auf 1.5
« Reply #6 on: May 04, 2002, 11:32:35 AM »
Es liegt an der MySQL Version, in den Systemvorraussetzungen für 4images steht, dass mindestens Version 3.23 benötigt wird. Kurzfristig könnt Ihr das Problem durch abschalten des Zufallsbildes lösen.

Dazu ändert Ihr folgendes:

in "includes/page_header.php" diese Zeile:
Code: [Select]
$site_template->register_vars(array("random_image" => get_random_image()

so ändern:
Code: [Select]
$site_template->register_vars(array("random_image" => /*get_random_image()*/""

und in "categories.php" diese Zeile:
Code: [Select]
"random_cat_image" => get_random_image($cat_id)
so ändern:
Code: [Select]
"random_cat_image" => /*get_random_image($cat_id)*/""


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

Offline Xidan

  • Pre-Newbie
  • Posts: 3
    • View Profile
Probleme beim Update auf 1.5
« Reply #7 on: May 04, 2002, 12:09:27 PM »
Hallo Jan,

ich habe die entsprechenden Zeilen geändert, aber leider erscheint der Fehler immer noch.

Gruß Xidan

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Probleme beim Update auf 1.5
« Reply #8 on: May 04, 2002, 12:49:26 PM »
Ok, sorry. Hatte noch eine Stelle vergessen:

in "includes/functions.php" folgende Zeile:
Code: [Select]
$random_cat_image_file = get_random_image($category_id, 0, 1);

so ändern:
Code: [Select]
$random_cat_image_file = /*get_random_image($category_id, 0, 1)*/"";

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

Offline Hasi

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.swinger-community.com
Probleme beim Update auf 1.5
« Reply #9 on: May 04, 2002, 02:05:34 PM »
Super klappt!

Herzlichen Dank!

Offline Hasi

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.swinger-community.com
Probleme beim Update auf 1.5
« Reply #10 on: May 04, 2002, 03:43:28 PM »
Najaaaaaaaa,

Problem taucht noch in der details.php auf.
Kann man sicher auch abändern?!!!

Offline Hasi

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.swinger-community.com
Probleme beim Update auf 1.5
« Reply #11 on: May 04, 2002, 04:00:47 PM »
So ab's

In dem File "details.php" die Zeile:

Code: [Select]
$site_template->register_vars("random_cat_image", get_random_image($cat_id));

so ändern:

Code: [Select]
$site_template->register_vars("random_cat_image", /*get_random_image($cat_id)*/"");

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Probleme beim Update auf 1.5
« Reply #12 on: May 04, 2002, 06:56:12 PM »
Hast Recht, hab ich vergessen ;)

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

Offline Xidan

  • Pre-Newbie
  • Posts: 3
    • View Profile
Probleme beim Update auf 1.5
« Reply #13 on: May 05, 2002, 01:54:24 PM »
Vielen Dank,
 jetzt funktioniert es! Hoffentlich kommt strato mit der MySQL demnächst in die Puschen.

Gruß Xidan  :D