Welcome Guest Search | Active Topics | Log In | Register

Error when i nstall new forum Options · View
sinbad911
#1 Posted : Friday, June 27, 2008 11:16:54 PM
Rank: Member


Joined: 11/20/2007
Posts: 24
Location: vn
ForumStatistics.ascx.cs is error in this line:

StatsLastPost.Text = String.Format( PageContext.Localization.GetText( "stats_lastpost" ), YafDateTime.FormatDateTimeTopic( ( DateTime ) statisticsDataRow ["LastPost"] ) );

"Index (zero based) must be greater than or equal to zero and less than the size of the argument list."
Diễn đàn đại học Công Nghiệp TPHCM: http://congnghiep4.com
Jaben
#2 Posted : Saturday, June 28, 2008 1:04:33 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,949
Location: Honolulu, HI
The localization (language) file you are using is not up to date. Take a look at "STATS_LASTPOST" inside the english.xml file and copy it (with localization) to the language file.

Also let me know which language file is having this problem.
"When you are grateful, fear disappears and abundance appears”."

junk
#3 Posted : Thursday, July 03, 2008 1:45:04 PM

Rank: YAF Forumling



Joined: 7/3/2008
Posts: 3
Location: here
****** resolved *****

After install try and login as Admin (yes name/pw are right)

Access Denied
You tried to enter a area where you didn't have access.
Continue...





YetAnotherForum 1.9.1.7
I'm running this on goddady.com, standard auto install from godaddy.
hosting platform=windows
.Net Runtime Version: ASP.Net 2.0/3.0/3.5
the forum in question

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="yafnet" type="yaf.SectionHandler,yaf"/>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>

<yafnet configSource="yafnet.config"/>
<rewriter configSource="urlrewriter.config"/>

<system.web>
<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
</httpModules>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<compilation defaultLanguage="c#" debug="false"/>
<pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>
<authentication mode="Forms">
<forms name=".YAFNET_Authentication" timeout="525600" />
</authentication>
<customErrors defaultRedirect="error.aspx" mode="RemoteOnly"/>
<!--trace enabled="true" pageOutput="true"/-->
<xhtmlConformance mode="Legacy"/></system.web>
</configuration>



ty Junk
junk
#4 Posted : Thursday, July 03, 2008 2:54:25 PM

Rank: YAF Forumling



Joined: 7/3/2008
Posts: 3
Location: here
starpeaceonline.net.previewdns.com/boards/

previewdns.com, seems to be the problem. I installed on another account and all went flawless
Junk
dragaodepapel
#5 Posted : Sunday, August 24, 2008 6:32:54 PM
Rank: Member


Joined: 8/20/2008
Posts: 13
Location: Curitiba, PR, Brazil
I tried to update the "STATS_LASTPOST", but without success.

The I coopied the content of the english.xml to portuguese.xml, taking care to maintain the original "<Resources language="Português" code="pt">" line.

I'm always getting this error. I made an updgrade from the version 1.9.1.7 to the new version.

It's not possible to active the debug, to see exactly where the error is happening, because the forum don't load, the connection is canceled Sad

The error that I get is the same of other topics I found here:
Code:
[FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.]
   System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) +2902441
   System.String.Format(IFormatProvider provider, String format, Object[] args) +91
   YAF.Controls.ForumStatistics.BindData() +2428
   YAF.Controls.ForumStatistics.DataBind() +10
   System.Web.UI.Control.DataBindChildren() +204
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   YAF.Pages.forum.BindData() +168
   YAF.Pages.forum.Page_Load(Object sender, EventArgs e) +441
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436



But, until now, no solution for this problem Sad
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.078 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET