YAFLogo

yaq
  • yaq
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hi guys,

I've downloaded YAF-v1.9.4-RC2 source code this morning, compiled and tried to install on one of our local servers.

Followed the read-me procedure , but I got in a permanent redirect loop while trying to access /install/default.aspx.

I figured out that this happens in Yaf.Classes.Data.Db.cs line 8895.

It tries to execute a SP that does not exist yet 'exec [dbo].[yaf_registry_list] @Name=N'Version',@BoardID=default'

Please note i'm doing a fresh installation.

I commented the line for the redirect set to 'install' and got the installation working ok.

Please take a look at the issue whether it's truly a bug , or just some problem on my side.

Thanks a lot!

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Were you installing on Internet Explorer?
yaq
  • yaq
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Yup, with IE 8.

But also tried with Google Chrome. Same story. So I had to dig into the code to work-around it.

Skiltz
  • Skiltz
  • 59% (Neutral)
  • YAF Camper
15 years ago
I concur. Get stuck in a loop on brand new install.
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
15 years ago
Noticed something similar , have you tried adding your password to app.config before attempting install?

.


test
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Confirmed as an issue. Track progress here: YAF-67
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Fixed and committed.
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
15 years ago
I'd simply set there

if (YafContext.Current.CurrentForumPage != null)

instead previous try catch and it'll work fine.

But your solution is more fundamental 🙂

daveburke
15 years ago

Fixed and committed.

Jaben wrote:

WOOHOO! Thanks for jumping on this so quickly, Jaben. You just received another big "Thanks" for that!

So looking at the tracker details, if we update YAF.Classes.Core Localizer.cs from the repository we should be good to go? More specifically, I'll be able to release Gummy Bear 1.3 in the next couple of weeks with YAF 1.9.4 RC2 rather than wait for RC3?

Thanks again,

-Dave

UPDATE: I like the changes in Localizer.cs to prevent the install hang in the addition of InitCulture() plus some bonus Linq action. I'll update Localizer.cs and YAFLocalizer.cs and should be ready for MULTIPLE setups in preparation for Gummy 1.3. If there's any advice on getting other source updates into the Gummy 1.3/1.9.4RC2, I'd appreciate it.

UPDATE2: I needed the new string helper IsSet()/IsNotSet() functions from Utils/StringHelper.cs to compile updated Localizer.cs. I noticed that IsNullOrEmptyTrimmed() is now IsNotSet() but rather than update the entire solution I'm preserving IsNullOrEmptyTrimmed(), will use IsSet() w/ Localizer and call it good--unless anyone advises otherwise.

I'll be doing a ton of updates and fresh installs over the next few days. If I encounter any weirdness I'll post back.

As a sidebar, I plan on reducing YAF setup steps with this release. Will keep you posted on any interesting details.

-DB