Page 1 of 1

has the catelog crashed?

Posted: 08 Aug 2011, 14:17
by sidguppy
I just tried to check on a few catelog species and ran headlong into the maw of this:
[phpBB Debug] PHP Notice: in file /home/webcat/planetcatfish.com/catelog/_species.php on line 42: require_once(../includes/new_functions/get_subfamily.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required '../includes/new_functions/get_subfamily.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/webcat/planetcatfish.com/catelog/_species.php on line 42
I randomly hit several species from a range of families and it looks like a catelog-wide error

Re: has the catelog crashed?

Posted: 08 Aug 2011, 14:26
by Dave Rinaldo

Re: has the catelog crashed?

Posted: 08 Aug 2011, 14:30
by MatsP
I'm guessing that Jools have just updated the _species.php to my latest changes, but (for some reason) the new file that also belongs in this update, new_functions/get_subfamily.php is missing... Either that, or there's something else that has gone wrong...

I can't see what is going on with the server files themselves, but the file is there in the source code repository...

As Dave points out, it's probably to do with the application of my fix for a less severe error (calling a function that doesn't exist).

--
Mats

Re: has the catelog crashed?

Posted: 08 Aug 2011, 16:02
by MatsP
Oh, and a workaround is to use the "old" (as in was in use until last week) Cat-eLog species pages.

Say, you look up L270, it gives the URL:

Code: Select all

http://www.planetcatfish.com/catelog/_species.php?species_id=232
Now, if you edit that to remove the _ before species.php, it becomes the "old" page:

Code: Select all

http://www.planetcatfish.com/catelog/species.php?species_id=232
The old page use a different "get_subfamily" function, which has been in the system for quite some time, so doesn't give an error.

--
Mats

Re: has the catelog crashed?

Posted: 08 Aug 2011, 19:34
by Jools
Yes, sorry - my fault, the upload of this file failed and I missed it. It should be fixed now.

Cheers,

Jools