Got error message when trying to add a new (old) species

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
bekateen
Posts: 9332
Joined: 09 Sep 2014, 17:50
I've donated: $40.00!
My articles: 4
My images: 141
My cats species list: 145 (i:105, k:35)
My aquaria list: 41 (i:18)
My BLogs: 45 (i:150, p:2730)
My Wishlist: 35
Spotted: 183
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Got error message when trying to add a new (old) species

Post by bekateen »

Hi Jools,

Farlowella gladiolus is currently considered a valid species. I tried to add it using the quick add of existing species function, and I received the following error message:
Fatal error: Uncaught Error: Using $this when not in object context in /home/webcat/planetcatfish.com/admin/functions/add_species.php:84 Stack trace: #0 /home/webcat/planetcatfish.com/admin/quick_add_species.php(43): add_species('Farlowella glad...', true) #1 /home/webcat/planetcatfish.com/admin/index.php(350): quick_add_species->submit(Object(phpbb\db\driver\factory)) #2 /home/webcat/planetcatfish.com/admin/index.php(297): arn_admin_guts('qas', Object(phpbb\db\driver\factory), Object(phpbb\user), '5.1.1') #3 {main} thrown in /home/webcat/planetcatfish.com/admin/functions/add_species.php on line 84
Is this because F. gladiolus is already a synonym of ? I know of other examples in the CLOG where a specific epithet is both a valid name for one species, and a synonym for another, so I'm not clear on why this would be the hangup... in other words, I don't expect that to be the problem.

Cheers, Eric
Image
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order.
Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
User avatar
bekateen
Posts: 9332
Joined: 09 Sep 2014, 17:50
I've donated: $40.00!
My articles: 4
My images: 141
My cats species list: 145 (i:105, k:35)
My aquaria list: 41 (i:18)
My BLogs: 45 (i:150, p:2730)
My Wishlist: 35
Spotted: 183
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Got error message when trying to add a new (old) species

Post by bekateen »

Never mind, I was able to resolve it. So apparently the error was because Farlowella gladiolus was already a synonym of another species. I deleted the synonym entry, then added the species. Once was added as a species, I re-added it as a synonym under , and that task completed without problem. So apparently you can have the same name as both a valid species and as a synonym of another species (which we already knew), but you have to add the valid species first, then the synonym after.

Cheers,
Eric
Image
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order.
Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
User avatar
Jools
Expert
Posts: 16140
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Got error message when trying to add a new (old) species

Post by Jools »

The error should not be caused because the synonym exists already, however I can't see from the error what has caused it.

If a species is valid, it should not have a synonym entry - so have deleted it.

Cheers,

Jools
User avatar
Jools
Expert
Posts: 16140
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 948
My catfish: 237
My cats species list: 87 (i:237, k:1)
My BLogs: 7 (i:10, p:202)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Got error message when trying to add a new (old) species

Post by Jools »

Think this is fixed now?

Jools
User avatar
bekateen
Posts: 9332
Joined: 09 Sep 2014, 17:50
I've donated: $40.00!
My articles: 4
My images: 141
My cats species list: 145 (i:105, k:35)
My aquaria list: 41 (i:18)
My BLogs: 45 (i:150, p:2730)
My Wishlist: 35
Spotted: 183
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Got error message when trying to add a new (old) species

Post by bekateen »

Jools wrote: 12 Jan 2021, 18:46Think this is fixed now?
Haven't had a problem with synonyms or adding species since then (except what happened a couple of weeks ago, which you fixed recently).

Thanks for following up.

Cheers, Eric
Image
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order.
Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
Post Reply

Return to “All Resolved Issues”