YAFLogo

Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-24T16:48:58Z
Also the whats new module non-logged in users can't see any of the recent posts. Says no posts exist. How do I get it so visitors can see the most recent posts as well as those logged in?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.0 RC 3
2013-01-27T09:04:07Z
Originally Posted by: Harlequin 

Found the pin option thanks.

I do have a serious issue however. The DNN role Unverified Users keeps adding itself to the role list on YAF and giving those people mod access. As I see that role listed as a mod on the forum list. That role is not flagged as a mod and when I delete it from YAF it keeps getting re-added. How do I fix this? Thanks!

Ok this is a serious issue, turns out all dnn roles that where importat to yaf getting the admin access mask applied. I changed that the default dnn roles "Registered Users" and "Subscribers" getting the Member Access Mask and all other Custom Dnn Roles getting the "Read Only Access Mask" by default (You can change that later in the YAF admin Area where you can modify the Access Mask for the Custom Role, after it was imported).

I uploaded an updated Version (It maybe also fixes the other issue with the profile page)


UserPostedImage
Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-27T14:52:02Z
Originally Posted by: tha_watcha 

Originally Posted by: Harlequin 

Found the pin option thanks.

I do have a serious issue however. The DNN role Unverified Users keeps adding itself to the role list on YAF and giving those people mod access. As I see that role listed as a mod on the forum list. That role is not flagged as a mod and when I delete it from YAF it keeps getting re-added. How do I fix this? Thanks!

Ok this is a serious issue, turns out all dnn roles that where importat to yaf getting the admin access mask applied. I changed that the default dnn roles "Registered Users" and "Subscribers" getting the Member Access Mask and all other Custom Dnn Roles getting the "Read Only Access Mask" by default (You can change that later in the YAF admin Area where you can modify the Access Mask for the Custom Role, after it was imported).

I uploaded an updated Version (It maybe also fixes the other issue with the profile page)

Ok I will install the update and let you know. Just to let you know the user she changed her birth date to a valid date, and now I can view her profile without issue or errors. Perhaps new or imported members you should assign a date like 1/1/1980 or something like that to get rid of those 0's? Not sure if that is the issue but once a valid date was entered the issue went away.

Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-27T22:01:47Z
I tried to install the new version of the module and got this error during the install in DNN;

Server Error in '/' Application.

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Request timed out.]

----/Error----

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.0 RC 3
2013-01-28T10:35:35Z
Die you try to increase the execution timeout value in the web.config

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="28192" executionTimeout="6000" requestLengthDiskThreshold="18192" requestValidationMode="2.0" />

Otherwise you also could simply extract the updated dlls from the zip file and copy them over to your bin folder.


UserPostedImage
Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-28T15:23:41Z
Ok I uploaded all the .DLL's from the new package. But I did increase the timeout variable for next time. Thanks.

That said I am still having the issue, guests can not see data in the whats new module, it displays no data unless you are logged in. And the guests role is set to 'read only' most of the forums. Any ideas?

Also did you read my post about the birth date issue? seems the default date was causing the problem.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.0 RC 3
2013-01-28T15:41:50Z
Originally Posted by: Harlequin 

Ok I uploaded all the .DLL's from the new package. But I did increase the timeout variable for next time. Thanks.

That said I am still having the issue, guests can not see data in the whats new module, it displays no data unless you are logged in. And the guests role is set to 'read only' most of the forums. Any ideas?

Also did you read my post about the birth date issue? seems the default date was causing the problem.

I changed only the code for about the roles problem, the what's new module is still unresolved.

The read only access mask is applied to all custom dnn roles which are imported in to yaf. You can simply change that. Currently there is no other way when importing roles automatically. What I could do is create a setting where you can define the initial access mask for a custom role.

Yes I read about the birthday issue, I hadn't time to look in to the problem.


UserPostedImage
Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-28T16:59:57Z
Originally Posted by: tha_watcha 

I changed only the code for about the roles problem, the what's new module is still unresolved.

The read only access mask is applied to all custom dnn roles which are imported in to yaf. You can simply change that. Currently there is no other way when importing roles automatically. What I could do is create a setting where you can define the initial access mask for a custom role.

Yes I read about the birthday issue, I hadn't time to look in to the problem.

I don't mind guests default to read only, I was only stating that so you know guest should be able to see the posts in the whats new module. As if they go to the forum guests can read the forums without issue, those same posts don't appear in the whats new module however.

Thanks for looking into all of these issues, I'll await word when you can look into it and post about them.

On a related note, it's ok I removed all the roles except guest, registered member, admin and moderator? The other roles from the DNN site I don't need in the forums like custom roles I made and the unverified user. So I deleted them, that won't cause a issue will it or do I need all them there?

Harlequin
  • Harlequin
  • 60.4% (Friendly)
  • YAF Lover Topic Starter
2013-01-29T00:18:26Z
To follow up on the date issue to hopefully help you with more info, I get dozens of these errors in the event log a day mostly from guests;

System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

at System.Data.SqlTypes.SqlDateTime.FromTimeSpan(TimeSpan value)

at System.Data.SqlTypes.SqlDateTime.FromDateTime(DateTime value)

at System.Data.SqlClient.MetaType.FromDateTime(DateTime dateTime, Byte cb)

at System.Data.SqlClient.TdsParser.WriteValue(Object value, MetaType type, Byte scale, Int32 actualLength, Int32 encodingByteSize, Int32 offset, TdsParserStateObject stateObj)

at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)

at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)

at YAF.Classes.Data.MsSqlDbAccess.GetDatasetBasic(IDbCommand cmd, Boolean transaction)

at YAF.Classes.Data.MsSqlDbAccess.GetData(IDbCommand cmd, Boolean transaction)

at YAF.Types.Interfaces.IDbAccessExtensions.GetData(IDbAccess dbAccess, IDbCommand cmd)

at YAF.Classes.Data.LegacyDb.message_findunread(Object topicID, Object messageId, Object lastRead, Object showDeleted, Object authorUserID)

at YAF.Pages.posts.GetFindMessageId(Boolean showDeleted, Int32 userId, Int32& messagePosition)