Author Topic: PHP4 -> PHP5  (Read 35744 times)

0 Members and 1 Guest are viewing this topic.

Offline nurz

  • Newbie
  • *
  • Posts: 20
    • View Profile
PHP4 -> PHP5
« on: April 10, 2008, 10:48:02 AM »
Hallo zusammen,

ich habe sowohl die 1.7.4. als auch ein 1.7.6 im Einsatz und habe bislang PHP4 auf meinem Webserver gehabt. Jetzt steht das Update auf PHP5 und die neueste MYSQL Version an. Frage an die Experten: wird danach NICHTS mehr funktionieren oder stellt die Umstellung gar kein Problem dar? Wo gibt's event. Probleme?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: PHP4 -> PHP5
« Reply #1 on: April 10, 2008, 11:29:07 AM »
hi nurz,

es sollten keine probleme vorliegen da viele user schon php5 am server haben..
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 nurz

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: PHP4 -> PHP5
« Reply #2 on: April 30, 2008, 03:27:36 PM »
Habe jetzt mein upgrade auf php 5 gemacht, und schon sehe ich den ersten fehler, direkt auf der startseite:

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/user1281/html/includes/db_mysql.php on line 116

Woran könnte das liegen?
« Last Edit: April 30, 2008, 03:42:54 PM by nurz »

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: PHP4 -> PHP5
« Reply #3 on: April 30, 2008, 03:37:34 PM »

Offline nurz

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: PHP4 -> PHP5
« Reply #4 on: April 30, 2008, 04:05:08 PM »
Leider nein. Die ganzen Änderungen die dort erwähnt werden sind in meiner Version bereits integriert. Zudem habe ich nur diesen einen Fehler auf der Startseite. Ansonsten funktioniert alles.

EDIT. habe mich getäuscht. wenn ich mich als user einlogge, kommt:

DB Error: Bad SQL Query: SELECT IF(i.image_date >= 1208700414,RAND()+1,1) as random_no, 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 23, 89, 59, 8, 45, 5, 48, 38, 56, 79, 93, 90, 87, 95, 60, 32, 92, 44, 37, 21, 49, 80, 91, 57, 61, 9, 24, 41, 39, 20, 94, 52, 96, 62, 28, 6, 86, 14, 54, 51, 63, 29, 84, 7, 42, 50, 15, 36, 83, 19, 46, 76, 64, 25, 85, 18, 53, 43, 65, 47, 33, 66, 78, 30, 67, 82, 34, 68, 81, 26, 11, 77, 27, 69, 88, 31, 70, 22, 35, 17, 40, 71, 55, 72, 97, 73, 74, 75, 10, 58, 13, 16, 12) ORDER BY random_no DESC, i.image_date DESC LIMIT 5
Unknown column 'i.user_id' in 'on clause'

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: PHP4 -> PHP5
« Reply #5 on: April 30, 2008, 04:18:29 PM »

Offline nurz

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: PHP4 -> PHP5
« Reply #6 on: April 30, 2008, 04:27:36 PM »
Danke für die Hilfe. Ich bin draufgekommen!!! Und zwar habe ich eine Mod eingebaut. Dafür habe ich in der index.php was ändern müssen ... und da war noch ein nicht korrektes mysql statement drin! Danke nochmals für eure Hilfe.