l_grant
  •  l_grant
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2010-01-10T05:03:51Z
After I installed and published my YAF forum,YAF-v1.9.4-RC1.it's good running!
Today i did edit the sourcecode ,rebuild and republish this solution,is succeed also.but when i open this website,error occur:
Exception Details: System.Exception: Invalid Page Pointer: SHOUTBOX

Source Error: 


Line 185:      if (this._pagePointer == null)
Line 186:      {
Line 187:        throw new Exception("Invalid Page Pointer: " + this._currentPage);
Line 188:      }
Line 189:
 

Source File: E:\Software Development\CCL Forum\YAF-v1.9.4-RC1-SRC\YAF.Classes\YAF.Classes.Core\Localization\Localizer.cs    Line: 187 

Stack Trace: 


[Exception: Invalid Page Pointer: SHOUTBOX]
   YAF.Classes.Core.Localizer.GetText(String tag, String& localizedText) in E:\Software Development\Forum\YAF-v1.9.4-RC1-SRC\YAF.Classes\YAF.Classes.Core\Localization\Localizer.cs:187
   YAF.Classes.Core.YafLocalization.GetLocalizedTextInternal(String page, String tag) in E:\Software Development\Forum\YAF-v1.9.4-RC1-SRC\YAF.Classes\YAF.Classes.Core\Localization\YafLocalization.cs:327
   YAF.Classes.Core.YafLocalization.GetText(String page, String tag) in E:\Software Development\Forum\YAF-v1.9.4-RC1-SRC\YAF.Classes\YAF.Classes.Core\Localization\YafLocalization.cs:393
   YAF.Controls.ShoutBox.Page_Load(Object sender, EventArgs e) +192
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

It looks like languagesfile error.But i copy /languages folders and web.config app.config db.config to republished website and restart IIS and web site.It is still error alike. When I created a new database for this republished website,it auto run /install/default.aspx start a new wizzard. So i think it maybe by config error,not by code, but unluckily i can't find what is mistake.

Sponsor
l_grant
  •  l_grant
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2010-01-10T05:44:27Z
:oops: My God!
I see,All problem similar is cause by language files your selected.
Be careful config your language file!
tirgil
  •  tirgil
  • 51.2% (Neutral)
  • YAF Forumling
2010-02-01T14:49:18Z
Hi,
i select turkish language and then same error.Then i shanged to english still same problem. Now our "my topics" link does not work. Always it says "Invalid Page Pointer: MyTopics"
tirgil
  •  tirgil
  • 51.2% (Neutral)
  • YAF Forumling
2010-02-01T16:53:10Z
Hi,

Try this; change Localizer.cs line number

this._pagePointer = this._doc.SelectSingleNode(string.Format("//page[@name='{0}']", Page.ToUpper()));

to this

this._pagePointer = this._doc.SelectSingleNode(string.Format("//page[@name='{0}']", Page.ToUpper(new CultureInfo("en"))));

it works for me.
tuyenba
2010-04-16T03:29:19Z
Hi,
I got the same problem when i tried to change language to Vietnamese. I think I found it:
- This error only occurs when compiling project in DEBUG mode, that's why website is good running at the fist time even if you change it to any language
- "Invalid Page Pointer: MYTOPICS", "Invalid Page Pointer: BUDDY" or Invalid Page Pointer: ..." is because our language files(other than English language file) do not contain "<page name="MYTOPICS">", <page name="BUDDY"> or <page name="...">.

My problem solved

trungtq
2010-04-16T04:38:18Z
Thanks tuyenba. My broblem solved. YetAnotherForum should fix this bug for the next release.
Nothing is impossible
http://forum.sanotc.com 
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2010-04-16T04:54:37Z
trungtq wrote:

YetAnotherForum should fix this bug for the next release.


No, they shouldn't. It's your problems with an outdated language file.
All the files are synced to english one, which means that new entries are untranslated and english ones, but they are not missing.

trungtq
2010-07-12T02:25:14Z
bbobb wrote:

trungtq wrote:

YetAnotherForum should fix this bug for the next release.


No, they shouldn't. It's your problems with an outdated language file.
All the files are synced to english one, which means that new entries are untranslated and english ones, but they are not missing.


Nothing is impossible
http://forum.sanotc.com 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved