socioboard / Socioboard-5.0

Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.

Home Page:http://www.socioboard.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove3DaysBeforeScheduleInfo function not found

arrianda opened this issue · comments

#300
May I know where function "remove3DaysBeforeScheduleInfo" comes from? Is it from library or socioboard api? Because I can't found any reference to that function.
Even though I updated with new version, I still can't fix it yet

@arrianda If I had to guess, I think this is a typo in schedule-base.js. The function is referenced as this.remove3DaysBeforeScheduleInfo, so I believe it should be a function defined in the class; however it is not defined.

However, there is a function remove7DaysBeforeScheduleInfo() defined.

I think the call to the function just needs to be replaced with this.remove7DaysBeforeScheduleInfo. I've done the same in both schedule-base.js and schedulebase.js since I haven't checked which of the two files is used, but the error comes from schedule-base.js on my server.

I have not yet confirmed that this has resolved my issues, though. Waiting for cron to run.

@fpejril
Hello , thanks for the reply
I tried to change the function to remove7DaysBeforeScheduleInfo. But, I got error when the cron running. Details on attached image
image
Any help?

Hi @arrianda ,
did you check Competitor Analysis? Looks like project does not have all codes.
Thanks

@fpejril Hello , thanks for the reply I tried to change the function to remove7DaysBeforeScheduleInfo. But, I got error when the cron running. Details on attached image image Any help?

did you fixed?

Hi @arrianda , did you check Competitor Analysis? Looks like project does not have all codes. Thanks

Yeah this project is not completed yet, so maybe you can wait until the developers add it or you can make it yourself

@fpejril Hello , thanks for the reply I tried to change the function to remove7DaysBeforeScheduleInfo. But, I got error when the cron running. Details on attached image image Any help?

did you fixed?

I simply remove the functon after I check none of the code on that function is needed

remove7DaysBeforeScheduleInfo

Hi,
I changed to
remove7DaysBeforeScheduleInfo() {
const scheduleDate = new Date();
return scheduledInformations.destroy({
where: {schedule_datetime: scheduleDate},
});
}

Now I have problem with laravel redirect. When URL is to big it does not redirecting.
for example Facebook URL does not redirecting.
redirectUrl = https://www.facebook.com/v13.0/dialog/oauth?response_type=code&redirect_uri=${encodeURIComponent( config.get('profile_add_redirect_url') )}&client_id=${config.get( 'facebook_api.app_id' )}&state=${encryptedState}&scope=${config.get( 'facebook_api.profile_scopes' )};

        console.log("Facebook getProfileRedirectUrl->", redirectUrl, 'length-->', redirectUrl.length);

I added to apache2.conf LimitRequestLine 12000 but does not work

Are you fine with this? Or you changes some settings?

Thanks

I think I don't change any redirect setting. Are you sure it's because laravel redirect?