logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
jdepoy24549696  
#1 Posted : Tuesday, October 6, 2020 3:49:51 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

On the Google Feed Admin configuration page there is a checkbox "Enable Automatic Feed" and a place to enter a time interval in minutes.

I have this checked and 360 minutes entered but the feed doesn't generate. Is this a bug?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Wednesday, October 7, 2020 1:51:43 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Yes, this was a bug which is now fixed in our upcoming release.

I can provide the fix if you want it before the release.

Thanks
jdepoy24549696  
#3 Posted : Wednesday, October 7, 2020 6:26:03 AM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

Yes, please, I would like to have the fix now.
shari  
#4 Posted : Wednesday, October 7, 2020 6:53:34 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Please follow the steps:

1- Open file Website\Global.asax.cs
2- Search for
Code:
public class MvcApplication : AbleApplication
    {

3- Replace with
Code:
public class MvcApplication : AbleApplication
    {
        private System.Threading.Timer _timer;

4- Search for
Code:

// INITIALIZE WIDGET MAP
WidgetBootstrapper.Init();
DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(RequiredIfAttribute), typeof(RequiredIfValidator));
DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(AssertThatAttribute), typeof(AssertThatValidator));

5- Replace with
Code:

// INITIALIZE WIDGET MAP
WidgetBootstrapper.Init();
DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(RequiredIfAttribute), typeof(RequiredIfValidator));
DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(AssertThatAttribute), typeof(AssertThatValidator));

// AUTO GOOGLE FEED GENERATION: LAUNCH TIMER IN FIVE MINUTES, CHECK FILE AGE ONCE PER MINUTE
_timer = new System.Threading.Timer(new System.Threading.TimerCallback(AbleCommerce.Code.GoogleFeed.FeedTimerTask), null, 300000, 60000);

6- Search for
Code:

protected override void Application_End()
{
     base.Application_End();
}

7- Replace with
Code:

 protected override void Application_End()
 {
     base.Application_End();

     if (_timer != null) _timer.Dispose();
 }

8- Compile the project
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.