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

Scheduled task failing under Mura 7.1 #25

Open
IvanRotrekl opened this issue Oct 14, 2019 · 0 comments
Open

Scheduled task failing under Mura 7.1 #25

IvanRotrekl opened this issue Oct 14, 2019 · 0 comments

Comments

@IvanRotrekl
Copy link

Hi,
I have noticed scheduled task failing silently under Mura 7.1 when sitemap location is set to the site folder. Sitemap generation from admin worked fine.

When I tried to run the URL generated by the scheduled task directly, I got a file not found error from the plugins's process/main controlller.

It looks like the filename and rc.filePath variables are calculated here by relying on site directory path being /{siteid}. Actually, in Mura 7.1 it is /sites/{siteid}.

filename ="#expandPath(application.configBean.getContext() & '/')##siteid#/sitemap.xml";

rc.fileURL = "http://#siteConfig.getDomain()##rc.$.globalConfig().getServerPort()##rc.$.globalConfig().getContext()#/#siteid#/sitemap.xml";

It could be fixed simply by replacing #siteid# with #siteConfig.getAssetPath()# and would work with both Mura 7.1 and older Mura versions.

Regards

Ivan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant