STH archive not working?
-
- Posts: 889
- Joined: Tue Aug 30, 2005 12:42 am
- Contact:
STH archive not working?
Just went to look for something on the stairwaytohell.com archive, which I'm certain was working last I tried it (within the last month or so), and I just get blank pages. For example: http://www.stairwaytohell.com/bbc/archi ... ilter=.zip
This also affects JSBeeb's "Load from STH" option.
I know the STH archive isn't being updated any more - but is it still supposed to work? Or have I just got unlucky with some transient and/or local issue?
--Tom
This also affects JSBeeb's "Load from STH" option.
I know the STH archive isn't being updated any more - but is it still supposed to work? Or have I just got unlucky with some transient and/or local issue?
--Tom
b2 BBC B/B+/Master emulator: https://github.com/tom-seddon/b2; BeebLink filing system: https://github.com/tom-seddon/beeblink; more BBC Micro stuff: https://github.com/tom-seddon?tab=repos ... :bbc-micro
Re: STH archive not working?
The archive seems to be there ( http://www.stairwaytohell.com/bbc/archive/diskimages/ ) but the "reclist.php" page is return 500 errors ("server error").
Rgds
Stephen
Stephen
- richardtoohey
- Posts: 4075
- Joined: Thu Dec 29, 2011 5:13 am
- Location: Tauranga, New Zealand
- Contact:
Re: STH archive not working?
Upgrade to PHP 7.x needs attention? (But no HTTP headers so can't see PHP version anyway.)
Or could be something completely different.
Or could be something completely different.
Re: STH archive not working?
Hi, this has happened before (where php upgrades have broken the indexer scripts, which were written many years ago!).
If any php wizards can identify anything in the attached /render.php and reclist/reclister scripts that may be causing the problem, please let me know.
If FTP access is needed, again - let me know.
Thanks.
If any php wizards can identify anything in the attached /render.php and reclist/reclister scripts that may be causing the problem, please let me know.
If FTP access is needed, again - let me know.
Thanks.
- Attachments
-
- render.zip
- (712 Bytes) Downloaded 79 times
-
- reclister.zip
- (1.1 KiB) Downloaded 76 times
-
- reclist.zip
- (1.12 KiB) Downloaded 83 times
Please subscribe to the ABug YouTube channel!
- richardtoohey
- Posts: 4075
- Joined: Thu Dec 29, 2011 5:13 am
- Location: Tauranga, New Zealand
- Contact:
Re: STH archive not working?
Would be good to see the logs if you can get those.
Assuming we're talking upgrade from PHP 5.x to 7.x? Or is it something else?
In render.php - split is no longer available:
list($include, $buffer) = split("\"?'? ?-->", $buffer, 2);
It appears at least 3 times in render.php.
See http://php.net/manual/en/function.split.php
I'll have a look at the others too ...
Assuming we're talking upgrade from PHP 5.x to 7.x? Or is it something else?
In render.php - split is no longer available:
list($include, $buffer) = split("\"?'? ?-->", $buffer, 2);
It appears at least 3 times in render.php.
See http://php.net/manual/en/function.split.php
I'll have a look at the others too ...
Last edited by richardtoohey on Sun Dec 23, 2018 1:55 am, edited 1 time in total.
- richardtoohey
- Posts: 4075
- Joined: Thu Dec 29, 2011 5:13 am
- Location: Tauranga, New Zealand
- Contact:
Re: STH archive not working?
render.php also uses the deprecated spliti function:
http://php.net/manual/en/function.spliti.php
Looks like the other two files pull in render.php, so that will cause both of them to stop working until it is fixed.
Can't spot anything immediately obvious in the other two ... but that's where the server error logs will be a great help.
(Again this is all assuming we are talking about a move from PHP 5.x to 7.x).
http://php.net/manual/en/function.spliti.php
Looks like the other two files pull in render.php, so that will cause both of them to stop working until it is fixed.
Can't spot anything immediately obvious in the other two ... but that's where the server error logs will be a great help.
(Again this is all assuming we are talking about a move from PHP 5.x to 7.x).
- richardtoohey
- Posts: 4075
- Joined: Thu Dec 29, 2011 5:13 am
- Location: Tauranga, New Zealand
- Contact:
Re: STH archive not working?
Attached is a simple replacement of split / spliti with preg_split versions. Might help a bit. But might need tweaking and there may be more to do.
Don't think it will make anything worse - if they don't work, you'll still end up with the white screen.
Backup render.php and then copy & rename this new_render.php to render.php and see if it goes any further forward.
(Just spent the last few weeks moving from PHP 5.6 to PHP 7.2 on a few servers).
Don't think it will make anything worse - if they don't work, you'll still end up with the white screen.
Backup render.php and then copy & rename this new_render.php to render.php and see if it goes any further forward.
(Just spent the last few weeks moving from PHP 5.6 to PHP 7.2 on a few servers).
- Attachments
-
- new_render.zip
- (827 Bytes) Downloaded 83 times
Last edited by richardtoohey on Sun Dec 23, 2018 2:20 am, edited 1 time in total.
Re: STH archive not working?
Thanks Richard, I've only just got round to swapping in your updated render.php file and it appears to have done the trick!
Please subscribe to the ABug YouTube channel!
Re: STH archive not working?
Yay! Well done, both!
Btw, do we know what's happening with the Retro Software site?
- richardtoohey
- Posts: 4075
- Joined: Thu Dec 29, 2011 5:13 am
- Location: Tauranga, New Zealand
- Contact:
Re: STH archive not working?
Was expecting a few more glitches so will wait and see before counting chickens ...
I've been talking to Simon and he's talking to Dave re. the Retro Software site so we'll see (guessing it needs a newer version of MediaWiki that is PHP 7.x friendly, but that's a wild guess!)
I've been talking to Simon and he's talking to Dave re. the Retro Software site so we'll see (guessing it needs a newer version of MediaWiki that is PHP 7.x friendly, but that's a wild guess!)