Status: offline

destr0yr

Forum User
Full Member
Registered: 07/06/02
Posts: 324
Dirk, Blaine, et al.

Tried deleting a story tonight (GL 1.3.8-1sr4) and got the following error:
Text Formatted Code

Fatal error: Call to undefined function: hastopicaccess() in /homepages/12/d88571136/htdocs/okg/public_html/admin/story.php on line 989


 


Looks like their is a typo on line 989 of that particular file. Reads:
Text Formatted Code

if (hasTopicAccess ($tid) < 3) {


 

Should read:
Text Formatted Code

if (SEC_hasTopicAccess ($tid) < 3) {


 

Version of story.php i have is "story.php,v 1.99.2.1 2004/01/18 19:58:01". Deleting the story using the moderation page delete radio buttons works fine. If you edit the story and click the Delete button at the bottom the error will appear. The typo appears in both the security update and full release.
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Yep, that's a bug. It only exists in 1.3.8-1sr4 (and the current CVS version), but not in 1.3.7sr5.

It only happens when you edit a story submission and then decide to delete it from the story editor, though. It doesn't happen when you delete story submissions from the moderation page or when you delete existing stories.

Your fix should take care of the problem.