zero-perfoliate
zero-perfoliate

Author Topic: Website PHP Error  (Read 1094 times)

Offline svens3lions

  • New PHP Members
  • Posts: 4
  • Karma: +0/-0
Website PHP Error
« on: August 24, 2008, 09:09:01 AM »
Hi - Can anyone help ?

My Webhost has upgraded the PHP on the server to 5.5.6 up from 4.4.8 and now my site has an error.

Warning: file() expects parameter 2 to be long, string given in /home/ontour/public_html/games/Wembley_Czech/index.php on line 248

I think it is the way a date is formatted, but all I do is upload photos and write a bit of HTML, I am no programmer.

The PHP program I use is SPA (Simple Photo Album) and does just what I want, I do have options like changing host to one with PHP4, or using another Photo Album like Coppermine, but I like SPA.

I can email the raw PHP program or the version off of the site if it is of some help

Anyone ?

icestormz

  • Guest
Re: Website PHP Error
« Reply #1 on: August 24, 2008, 07:02:03 PM »
Hi svens3lions

Some scripts are not compatible for PHP 5 so i would  do this first.

- Goto There site and see if they have a newer version


If not you can zip up the files and post it here

Offline svens3lions

  • New PHP Members
  • Posts: 4
  • Karma: +0/-0
Re: Website PHP Error
« Reply #2 on: August 25, 2008, 01:28:06 AM »
Hi - Thanks for the reply, the author of the script does not support this any longer and which is a good pointer to me that I need to move to something newer that uses PHP5, even more so as it looks like PHP6 is on its way.

But I am sure this is only a "Date" format related problem so I dont to throw the towel in just yet.

I have attached a version of the program.

Thanks

Alan

icestormz

  • Guest
Re: Website PHP Error
« Reply #3 on: August 25, 2008, 04:20:50 AM »
hi please give this a try

Offline svens3lions

  • New PHP Members
  • Posts: 4
  • Karma: +0/-0
Re: Website PHP Error
« Reply #4 on: August 25, 2008, 04:36:32 AM »
Hi - It came back with the same error, just 1 line earlier

Warning: file() expects parameter 2 to be long, string given in /home/ontour/public_html/games/Wembley_Czech/index.php on line 247

 
I seem to remember when it did work that the program displayed "This album created on, then a date" I dont need to know this, you could chop out all the date related coding, if that would help.

Alan

icestormz

  • Guest
Re: Website PHP Error
« Reply #5 on: August 26, 2008, 04:47:33 PM »
you have to convert the script into php5, or else you will keep getting this error

Offline svens3lions

  • New PHP Members
  • Posts: 4
  • Karma: +0/-0
Re: Website PHP Error
« Reply #6 on: August 27, 2008, 09:51:57 AM »
Hi - I have been spending some time looking at new Photo Galleries and there is one that has caught my eye, so I think I am gonna bite the bullet and redo the site.

Gallery 2 actually.

Thanks for the help, and your time.

Cheers

Alan

 

zero-perfoliate