Author Topic: Install problems  (Read 5200 times)

0 Members and 1 Guest are viewing this topic.

Offline michaelperman

  • Pre-Newbie
  • Posts: 5
    • View Profile
Install problems
« on: May 21, 2002, 01:58:12 AM »
Hi there,

I really like the look of your script when its working on other sites but I cant manage to get it to work.
I have installed it and got to the admin pages which has allowed me to add categories and images.
But when I click on the 'go to gallery homepage' link I get a blank screen with the message.

Fatal error: Call to undefined function: mysql_fetch_assoc() in ./includes/db_mysql.php on line 111

I hope you can help as I would love to get it working on my page.

The address is http://www.michaelperman.co.uk/gallery

Thanks

From Michael :) [/b]

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Install problems
« Reply #1 on: May 21, 2002, 08:26:01 AM »
Hi,

what php version are you running? I hope higher than 4.0.5 ;)
Try to change mysql_fetch_assoc to mysql_fetch_array in line 111 "includes/db_mysql.php".

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

Offline michaelperman

  • Pre-Newbie
  • Posts: 5
    • View Profile
Hi again
« Reply #2 on: May 23, 2002, 08:20:15 PM »
Thanks very much for your help.

The version of MySQL on my host is 3.23.22-beta,

I changed mysql_fetch_assoc to mysql_fetch_array in line 111 "includes/db_mysql.php". like you said in your reply.

Now the image categories page loads up but at the top there is some text saying

Warning: Array to be filled with values must be passed by reference. in ./includes/functions.php on line 284

Warning: Array to be filled with values must be passed by reference. in ./includes/functions.php on line 284



Sorry to bother you again.

Cheers from Michael
http://www.michaelperman.co.uk/gallery[/url]

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Install problems
« Reply #3 on: May 23, 2002, 08:27:45 PM »
Hi,

you have MySQL 3.23.22-beta and PHP 4.0.1pl2, the requiremenst says MySQL 3.23.33 and PHP 4.0.5 ;)

Okay, change in ./includes/functions.php on line 284:

Code: [Select]
if (!$remote_file && $imageinfo = getimagesize($file, $info)) {

to
Code: [Select]
if (!$remote_file && $imageinfo = @getimagesize($file, &$info)) {

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

Offline michaelperman

  • Pre-Newbie
  • Posts: 5
    • View Profile
Install problems
« Reply #4 on: May 26, 2002, 09:00:30 PM »
Hi

Thanks very much for the help, now its working OK.

Sorry should have read the requirements  :oops:

Cheers  :)

Michael