Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: islam2hamy on December 02, 2009, 03:20:49 AM

Title: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 02, 2009, 03:20:49 AM
[2.0 RC2] error log ,is it issues ??

QuoteUndefined index: can_approve_posts :8
File: /Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 900

*********
http://www.simplemachines.org/community/index.php?topic=135761.msg2380013#msg2380013

http://www.simplemachines.org/community/index.php?topic=300777.msg2124503#msg2124503

Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: Norv on December 02, 2009, 08:14:14 AM
Can you please disable eval (http://www.simplemachines.org/community/index.php?topic=290186.0) , then post the (new) errors you may be getting?
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 02, 2009, 09:56:45 AM
8: Undefined index: can_approve_posts
file: Themes/default/Display.template.php
line: 990
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: karlbenson on December 03, 2009, 04:23:49 PM
What language are you using?
Can you check that your language files have an entry for $txt['can_approve_posts']
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 03, 2009, 11:31:15 PM
Arabic

no that's one not in the "index.arabic-utf8.php"
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: Norv on December 03, 2009, 11:45:25 PM
I don't seem to find "can_approve_posts" in Display.template.php from RC2 public. Can you please tell, do you have mods installed?
Eventually, please attach your Display.template.php here.
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 03, 2009, 11:56:56 PM
==>990:                                       ', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '' ;

Aeva ~ Auto-Embed Video & Audio
Downloads System
Share This Topic
EmailValidator
Sitemap
Contact Page
Google Analytics Code
                                             Custom Copyright
Welcome Back
More Spiders
Ad Managment
Left-To-Right and Right-To-Left BBcode Buttons
Related Topics
RSS Feed Icon
Quran Flash
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: Norv on December 04, 2009, 12:29:04 AM
It seems the code causing the error belongs to the Related Topics mod. I'm not sure at first sight how it can be solved. It might be best to ask the mod author.

ETA: I am moving the topic to the Support boards, as it doesn't seem to be a bug in SMF. Please be assured that in case it proves otherwise, it will be reconsidered.
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 05, 2009, 11:15:18 AM
ok,Thank you.

http://www.simplemachines.org/community/index.php?topic=49410.msg2391174#msg2391174
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: Norv on December 05, 2009, 11:54:47 AM
It seems confirmed to belong to the mod, to an older version of it. I'll mark this topic as solved then.
Title: Re: [2.0 RC2] error log ,is it issues ??
Post by: islam2hamy on December 05, 2009, 12:31:58 PM
ok