I'm trying to create a Google Sitemap through: Catalog > Google Sitemap.

Filename: sitemap.xml
Path: /sitemap
Store View: Nederlands

(I have two store views).

The path /sitemap is writable (chmod -R 777).

The problem is when I want to save & generate I get the following error:

Please set available and/or protected paths list(s) before validation.

#0 /home/company/domains/companyit.be/public_html/app/code/core/Mage/Adminhtml/controllers/SitemapController.php(138): Mage_Core_Model_File_Validator_AvailablePath->isValid('/sitemap/sitema...')
#1 /home/company/domains/companyit.be/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_SitemapController->saveAction()
#2 /home/company/domains/companyit.be/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('save')
#3 /home/company/domains/companyit.be/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/company/domains/companyit.be/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/company/domains/companyit.be/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#6 /home/company/domains/companyit.be/public_html/index.php(87): Mage::run('', 'store')
#7 {main}


In my app/local/Mage folder I have the following: (no configuration files)

enter image description here

  • Which Magento version are you running? Do you have any files in app/code/local/Mage? – mam08ixo Nov 10 '15 at 9:15
  • @mam08ixo: I'm running version . I've got 4 folders in app/code/local/Mage: Adminhtml / Core / Eav / Rule. – nielsv Nov 10 '15 at 15:21

Since CE, Magento has a configured list of filesystem paths that may be exposed to the public. Valid paths for the sitemap files are derived from the configuration nodes general/file/sitemap_generate_valid_paths and general/file/public_files_valid_paths.

In a standard Magento CE, the reported error cannot occur.

That means, your installation has a modified core. Common ways of changing core behaviour include using observers and applying class rewrites.

Additionally, core files can be altered directly or be replaced using code pool overrides. At the latest when an installation is about to be upgraded, these types of modifications will lead to errors and thus are considered bad practice. Code pool overrides are established when files from app/code/core/Mage/ are copied to app/code/local/Mage/. Files that reside in the latter directory supersede the original core files. There are very rare situations when code pool overrides are the only way to solve an issue – still, as per your comment, they were applied.

So I assume there are configuration files app/code/local/Mage/Adminhtml/etc/config.xml and app/code/local/Mage/Core/etc/config.xml in place that lack the necessary configuration nodes mentioned above. The paths not being available then leads to the given error message Please set available and/or protected paths list(s). In order to solve your issue, you could just copy the configuration nodes from the CE 1.7 core files. But as a long-term solution, to avoid further situations like this, I strongly advise you to get rid of all the code pool overrides in the installation.


According to the given directory tree, the code pool overrides do neither include any config.xml files nor core classes responsible for reading these values. Still, the original config nodes fail to be read. You can now debug your installation:

Magento CE shipped with Mage_Core – Your version is a little unusual but that should not make a difference here.

Besides, the usual hints:

  • Compiler off
  • Cache cleared
  • No invalid entries in the core_config_data table for these two configuration nodes
| improve this answer | |
  • I've updated my topic. I don't have any configuration files in my app/local folder .. . Could you take a look? – nielsv Nov 12 '15 at 8:59
  • Please expand Adminhtml, too. Do you have any files in app/code/community/Mage? What version numbers are given in app/code/core/Mage/Adminhtml/etc/config.xml and app/code/core/Mage/Core/etc/config.xml? Do these files contain the configuration nodes I suspected to be missing? – mam08ixo Nov 12 '15 at 9:55
  • In app/code/core/Mage/Adminhtml/etc/config.xml: 0.7.1 and in app/code/coreMage/Core/etc/config.xml: . These file do actually contain the nodes ... . And I don't have any files in app/code/community/Mage .. + Updated my topic with the new image (Adminhtml expanded) – nielsv Nov 12 '15 at 10:49
  • Answer updated. Honestly I run out of ideas. – mam08ixo Nov 12 '15 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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