2

I am using Magento 2.2.2. I have set up XML in Catalog->Sitemap and in Marketing-> Generate XML. But when I opened the Sitemap XML, it is not updated at all. Please let me know if I'm missing something or where I can check the errors logs if there are.

1 Answer 1

0

The error logs for Magento 2 are found under the var/log directory.

All system logs, cron logs, update logs, and other log data (like debugging and connections) are also found there.

Also, make sure that your cron jobs are up and running.

You can try running bin php/magento cron:install to make sure that the cron jobs are installed.

Then try running bin php/magento cron:run to execute the cron jobs.

Hope this helps!

5
  • Checked in logs, there is not any error about the cron job and still not generating the sitemap file. Commented May 20, 2019 at 6:01
  • How about permissions? Have you checked the permissions for the directories?
    – Jas
    Commented May 20, 2019 at 6:09
  • Hmmmm. That's weird. Something must be blocking the generation of the XML file.
    – Jas
    Commented May 20, 2019 at 6:25
  • can I debug it somehow? Commented May 20, 2019 at 7:01
  • You can try monitoring the system.log files, or the debug.log files, and see if it mentions something regarding the sitemap file.
    – Jas
    Commented May 20, 2019 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.