Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when create record #41

Closed
ufoloko opened this issue Jul 12, 2018 · 10 comments
Closed

Error when create record #41

ufoloko opened this issue Jul 12, 2018 · 10 comments
Labels

Comments

@ufoloko
Copy link
Contributor

ufoloko commented Jul 12, 2018

I installed last version 6.5 on DNN 8.0.4 and after set fields, when try to add a new record I’m receiving this error

Method not found: 'System.DateTime DotNetNuke.Common.Utilities.DateUtils.GetDatabaseUtcTime()

Please your help

@valadas valadas added the bug label Jul 12, 2018
@valadas
Copy link
Member

valadas commented Jul 12, 2018

Issue confirmed, GetDatabaseUtcTime only appeared in 9.1.0, this could be replaced with GetDatabaseTime which maps to it.

Also, when doing this, the module should be built on Dnn 8.0.4 references to make sure we don't have the same situation elsewhere in the code when the deprecated API calls where replaced.

@SCullman
Copy link
Contributor

I always develop my modules in latest but reference dnn assemblies of the minimum target.

@valadas
Copy link
Member

valadas commented Jul 13, 2018

Yes, this was an error from me, I am too used to building very specific modules for a single customer and I forgot to reference an older version

@CubeDweller
Copy link

I too just installed version 6.5.0 on DNN 8.0.4 and have similar errors.
Both when adding a record and with XSL Transformation (.xsl)
Method not found: 'System.DateTime DotNetNuke.Common.Utilities.DateUtils.GetDatabaseUtcTime()'
Is this being fixed? ETA?
(Sorry if its rude to ask; but I'm new to GitHub and my project is roadblock by this issue.)
Thank you for your help.

@SCullman
Copy link
Contributor

if you are in hurry, you have the following options:

  • Upgrade to DNN9.1.0 (or better latest)
  • or downgrade FnL to 6.4.0
  • or fix the bug on your own and send a pull request.

@CubeDweller
Copy link

Thank you for responding SCullman .
Unfortunately dislike DNN9 and don't have the skills to fix the bug.
So I'll try the downgrade.
Question: Can you install an older version of an extension "over" a newer one?

@SCullman
Copy link
Contributor

This depends on the extension. As long as the settings and database schema are the same, all you need is to replace the files (and assemblies). This should be the case for Fnl 6.4.0/6.5.0.

Procedure:

  1. Do a backup first, just to be sure!
  2. Open Host-Extensions, edit Form and List
  3. Goto section "Package Settings" and set the version number to 06.04.00, save (button update extension)
  4. Install FnL 6.4.0. It will ask you whether you wanna doe a repair installation. Click yes.
  5. Done.

@CubeDweller
Copy link

Thank you SCullman.
(That looks very clever.)
I did successfully go through the steps; but the issues remained.
Just going to hold off for now and hope a fix is coming.

@ghost
Copy link

ghost commented Sep 7, 2018

AFAIK DNN won't downgrade the dll which is present in the bin folder when repairing the module. Consequently, the dll version 6.5.0 will remain. I suggest you to manually overwrite the dll with the version 6.4.0.

@SCullman
Copy link
Contributor

SCullman commented Oct 3, 2018

fixed with #45

@SCullman SCullman closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants