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?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
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
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
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
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close