View previous topic :: View next topic |
Author |
Message |
Ingster
Senior First Team regular
Joined: 20 Aug 2002
Posts: 876
|
Posted: Tue May 10, 2005 6:43 pm Post subject: FAO Anyone who knows about php |
 |
|
Right, I'm looking after the Barrow website while the webmaster is on holiday for the next 5 months. He left me VERY brief instructions as to what to do when things go wrong. Sure enough, one week in to my stint, and we've hit an iceberg.
Does anyone know what this message means:
Warning: fread(): Length parameter must be greater than 0. in /home/b
It's appearing on the index page and I haven't a clue what it means.  |
|
Back to top |
|
 |
DMN
Herbalist

Joined: 29 Jul 2002
Posts: 2496
Location: Fortified Island Hideout - digging escape tunnels
|
Posted: Tue May 10, 2005 7:11 pm Post subject: |
 |
|
Could you post a link to where it is appearing? Or show us some source code (the actual PHP it self)?
From what you have posted there it seems simple, just change the parameter so its set to 1 or above, but without Source code its hard to see how it fits into the rest of the PHP. ie what does that parameter control and what is changed by asigning it a different value. |
|
Back to top |
|
 |
Ingster
Senior First Team regular
Joined: 20 Aug 2002
Posts: 876
|
Posted: Tue May 10, 2005 7:28 pm Post subject: |
 |
|
www.barrowfc.com is the page and the error should be up the top.
If you click to go on the main forum then there will be a blank rectangle where the links to the other Conf North teams forums should be and along the right hand column there should be an 'Events Diary' which has disappeared.
Source code? What's that? 
_________________
Mousse from a bowl is delicious but putting it on another person is demented. |
|
Back to top |
|
 |
yorkshireandproud
Red & Blue NET FC

Joined: 08 Mar 2004
Posts: 2375
Location: Bishopthorpe
|
Posted: Tue May 10, 2005 8:29 pm Post subject: |
 |
|
Ingster wrote: |
Source code? What's that?  |
and he's left you in charge?
|
|
Back to top |
|
 |
LA Metros Hockey Player
Future Olympian

Joined: 30 Aug 2003
Posts: 5898
Location: The nice part of Leeds
|
Posted: Tue May 10, 2005 8:33 pm Post subject: |
 |
|
My solution, get Laurence on the job.
Are you Neil Campbell by the way? |
|
Back to top |
|
 |
DMN
Herbalist

Joined: 29 Jul 2002
Posts: 2496
Location: Fortified Island Hideout - digging escape tunnels
|
Posted: Tue May 10, 2005 8:44 pm Post subject: |
 |
|
The error line is source code, its what the page is written in.
My PHP is a little rusty but it looks to me like you may have simply deleted part of the code.
Check your pm's. |
|
Back to top |
|
 |
acombred
First team captain

Joined: 14 Jul 2002
Posts: 3752
Location: York, UK
|
Posted: Tue May 10, 2005 8:54 pm Post subject: |
 |
|
DMN wrote: |
The error line is source code, its what the page is written in.
My PHP is a little rusty but it looks to me like you may have simply deleted part of the code.
Check your pm's. |
I think DMN is along the right lines!
Have you edited the affected page*? When editing a page that contains php (or any other programming language) code, you must be very careful not to accidentally delete part of the code.
I would advise restoring the original page, and re-editing it.
* According to the error message the affected page is-:
home/barrowfc/public_html/pages/main.php
Also, make a backup each time it's edited.
|
|
Back to top |
|
 |
LA Metros Hockey Player
Future Olympian

Joined: 30 Aug 2003
Posts: 5898
Location: The nice part of Leeds
|
Posted: Tue May 10, 2005 9:17 pm Post subject: |
 |
|
acombred wrote: |
DMN wrote: |
The error line is source code, its what the page is written in.
My PHP is a little rusty but it looks to me like you may have simply deleted part of the code.
Check your pm's. |
I think DMN is along the right lines!
Have you edited the affected page*? When editing a page that contains php (or any other programming language) code, you must be very careful not to accidentally delete part of the code.
I would advise restoring the original page, and re-editing it.
* According to the error message the affected page is-:
home/barrowfc/public_html/pages/main.php
Also, make a backup each time it's edited.
|
Are you charging Laurence
|
|
Back to top |
|
 |
Ingster
Senior First Team regular
Joined: 20 Aug 2002
Posts: 876
|
Posted: Wed May 11, 2005 9:47 pm Post subject: |
 |
|
Thanks for the advice DMN, Larry and assorted others.
_________________
Mousse from a bowl is delicious but putting it on another person is demented. |
|
Back to top |
|
 |
AllModCons
Poster of the Year 2003

Joined: 10 Aug 2002
Posts: 10554
Location: A 'P' please Bob.
|
Posted: Mon May 16, 2005 12:23 pm Post subject: |
 |
|
LA Metros Hockey Player wrote: |
Are you Neil Campbell by the way? |

_________________
"Like a pale moon in a sunny sky
Death gazes down as I pass by
To remind me that I'm but my father's son"
|
|
Back to top |
|
 |
LA Metros Hockey Player
Future Olympian

Joined: 30 Aug 2003
Posts: 5898
Location: The nice part of Leeds
|
Posted: Mon May 16, 2005 8:45 pm Post subject: |
 |
|
AllModCons wrote: |
LA Metros Hockey Player wrote: |
Are you Neil Campbell by the way? |
|
|
|
Back to top |
|
 |
|