I'm upgrading xmlsite map 6-2.0.beta3 to 6.x-2.0-rc1 in test platform
I run cron manually & I have an error "Fatal error : can't open file ../.../...1.xml .........) (in blank page)
Xml files had been deleted during execution !!!

so I upload xml files again, and re-run cron. Same error et files deleting.

CommentFileSizeAuthor
#2 xmlsitemap.xmlsitemap.zip9.29 KBXerraX
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpo’s picture

Version: 6.x-2.0-rc1 » 6.x-2.0-beta3
Category: bug » support

I have same problem with 6.x-2.0beta3 in my test platform after a refresh (production to test platform) and upload 1700 nodes (I already have 58000 nodes)

Trace:
Fatal error: Uncaught exception 'XMLSitemapGenerationException' with message 'Could not open file sites/collection.wezbe.com/files/xmlsitemap/2e9ZfIfLFCC0V-PbcDKUTb1Wk22XgjzJ6f-b16CFlPE/1.xml for writing.' in D:\wezbe\production\public_html\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc:47 Stack trace: #0 D:\wezbe\production\public_html\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc(36): XMLSitemapWriter->openUri('sites/collectio...') #1 D:\wezbe\production\public_html\sites\all\modules\xmlsitemap\xmlsitemap.generate.inc(152): XMLSitemapWriter->__construct(Object(stdClass), 1) #2 D:\wezbe\production\public_html\sites\all\modules\xmlsitemap\xmlsitemap.generate.inc(338): xmlsitemap_generate_page(Object(stdClass), 1) #3 [internal function]: xmlsitemap_regenerate_batch_generate('2e9ZfIfLFCC0V-P...', Array) #4 D:\wezbe\production\public_html\includes\batch.inc(190): call_user_func_array('xmlsitemap_rege...', Array) #5 D:\wezbe\production\public_html\includes\form.inc(2550): _batch_process() #6 D:\wezbe\producti in D:\wezbe\production\public_html\sites\all\modules\xmlsitemap\xmlsitemap.xmlsitemap.inc on line 47

XerraX’s picture

FileSize
9.29 KB

It seems like this part is missing in the latest xmlsitemap.xmlsitemap.inc

    // If download method is set to 'public', we find the absolute path
    // of Drupal's root, so that realpath() won't return FALSE
    if (variable_get('file_downloads', '1') == '1') {
      $uri = realpath('.') . '/' . $uri;
    }

Attaching the old xmlsitemap.xmlsitemap.inc. Why has this been removed? Its the only change made on this file.

Anonymous’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

@cpo: Are you still having an issue?
@XerraX: We'll have to find the commit that removed it to determine why.