Unable to add page content

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/15/2007 12:45:11 PM
Gravatar
Total Posts 22

Re: Unable to add page content

ah, that's explaining why I just was reading the page wondering why I did not notice it before!

I'm going to test the new dll

Federico

8/15/2007 12:56:06 PM
Gravatar
Total Posts 550

Re: Unable to add page content

Hi all

I so have this problem.I start to debug for find this bug.

A.Samarian

 

8/29/2007 7:08:25 AM
Gravatar
Total Posts 4

Re: Unable to add page content

Hi,

I can confirm this problem is to do with the publish date. Setting this date back a day in the mp_pagemodules table get the contents you add to show up :-). I guess you don't see this Joe because one of the date comparisons isn't being converted to local time correctly. I'll go and have a look now.

Having just downloaded and installed this application on a Win/MySql development system, I can also reoprt the old CreatedByUserID problem still exists for MySQL. For example, during setup this value isn't initialized in Default.aspx.cs when creating an initial module. When the mp_modules table is created with this database, the CreatedByUserID field is set as unsigned, and because the value isn't initialized in Default.aspx.cs (line 552 in 2.2.3.6), you try to insert -1 in the field.

Small issues (above) aside, this is a great piece of work, and I intend to spend a few days to see if we could use this frameowork for our business (which ultimately has to be deployed on Mono/Linux - still, I thought one step at a time!)

Many thanks

 

Allister

8/29/2007 7:39:36 AM
Gravatar
Total Posts 4

Re: Unable to add page content

Hi,

Further to above (unable to add page content), I have found the source of the bug (at least in MySQL). Line 7060 of dbPortal.cs (as of 2.2.3.6) should be:

arParams[4].Value = DateTime.UtcNow.AddMinutes(-30);

NOT

arParams[4].Value = DateTime.Now.AddMinutes(-30);

As you later compare against UTC (as you should) in getting the modules.

I hope this helps, and sorry I'm not experienced enoughh yet to submit this bug/correction directly.

Thanks again for a great product,

 

Allister

8/29/2007 8:16:29 AM
Gravatar
Total Posts 18439

Re: Unable to add page content

Hi Allister,

Thanks for pinpointing this bug. I will fix it and upload a new mojoPortal.Data.dll for MySql later today. I'll post here again when the new file is available.

Thanks,

Joe

 

8/29/2007 9:30:15 AM
Gravatar
Total Posts 18439

Re: Unable to add page content

I've uploaded a new datalayer for MySql as well as a new sourcecode file with fixes for both of these issues.

Thanks,

Joe

8/29/2007 10:35:49 AM
Gravatar
Total Posts 4

Re: Unable to add page content

Sorry to ask a stupid question, but when I browse the trunk repository(https://forgesvn1.novell.com/viewsvn/mojoportal/trunk/), the mojoPortal.Data.MySql folder shows it's still three days old, and the dbPortal.cs file is still revision 2654. Am I looking in the right place for the latest sources?

Thanks

Allister

8/29/2007 10:43:34 AM
Gravatar
Total Posts 18439

Re: Unable to add page content

Hi Allister,

I've updated the zip downloads and I've updated my svn sandbox, https://forgesvn1.novell.com/svn/mojoportal/sandboxes/joeaudette

I will merge these changes to trunk by the end of the day.

Joe

12/24/2007 3:09:24 PM
ulu
Gravatar
Total Posts 22

Re: Unable to add page content

I'm still having this bug. I'm using the 2.2.3.9 release, my zone is GMT+3. I'm using MsSql server, so it shouldn't be related to the database.

For example, suppose now is 10pm. If I create a content directly from the page, using the pencil icon, the content appears on thу page immediately, and the PublishFrom says 7pm. If I create it through the Content Management page, it doesn't appear, and PublishFrom says 10pm.

I'm just starting to get familiar with Mojo (got frustrated with DotNetNuke and looking for something better), and I'm quite impressed! Is it really developed by a single person?

ulu

12/27/2007 8:25:56 AM
Gravatar
Total Posts 18439

Re: Unable to add page content

Hi ulu,

I'm looking into this now and I do see a difference in the way the dates are handled in ContentManager vs in page creation. I will fix this today to make it consistent. It will be fixed in svn trunk by tonight.

Glad to hear you like mojoPortal!

I think a lot of .NET developers still haven't heard about mojoPortal. Projects like DNN and Rainbow benefit from having their own forums on the asp.net site so they find out about those projects easier. However, when I inquired about getting a forum for mojoPortal there I was brushed off.

mojoPortal is not all developed by one person there have been many significant contributions of effort from other people and we also leverage the work of a lot of other open source projects. However it is fair to say that I have done quite a bit of the work myself and as far as I know I am the only one working on it full time.

Best,

Joe

3/15/2008 7:40:49 PM
Gravatar
Total Posts 15

Re: Unable to add page content

Hi Joe,

Love the product by the way.  I got latest a couple of days ago and using my 'dev' installation (rather than the 'release' version that's working fine), I found the same issue (content publish dates out of step) when working with MSSQL (2005 Express).

I'm in Australia and found that the Publish begin dates were actually being set to 'now', when inserted, but the criteria on selection was obivously based on UTC date.  I realised that adding content through pagelayout.aspx calls mp_Modules_Insert (which in turn does an inline insert to mp_PageModules.

This second insert takes the 'created date' as the PublishBeginDate which is passed into the proc. 

The root of this call is in mojoportal.Business.Module.Create.  I simply changed the createdate from DateTime.Now to DateTime.UtcNow (line 356).  Everything started working for me then.  This may cause some other issues, but I'll keep this in my local version until I spot any strangeness!  I think other methods of adding content may work fine as they may use slightly different procs.

Cheers,

Matt 

 

You must sign in to post in the forums. This thread is closed to new posts.