[2.0 RC2] error log ,is it issues ??

Started by islam2hamy, December 02, 2009, 03:20:49 AM

Previous topic - Next topic

islam2hamy

[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


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Norv

Can you please disable eval , then post the (new) errors you may be getting?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

islam2hamy

8: Undefined index: can_approve_posts
file: Themes/default/Display.template.php
line: 990

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





karlbenson

What language are you using?
Can you check that your language files have an entry for $txt['can_approve_posts']

islam2hamy

Arabic

no that's one not in the "index.arabic-utf8.php"

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Norv

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.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

islam2hamy

==>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

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Norv

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.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Norv

It seems confirmed to belong to the mod, to an older version of it. I'll mark this topic as solved then.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Advertisement: