View Issue Details

IDProjectCategoryView StatusLast Update
0002318Composrnewspublic2016-05-21 13:39
ReporterPatrick SchmalstigAssigned ToChris Graham 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002318: Composr 10b4: Adding a news results in an error about missing sitemap file
DescriptionPHP WARNING [2] fopen(data_custom/sitemaps/news_sitemap.xml) [<a href='http://php.net/manual/en/function.fopen.php'>function.fopen.php</a>]: failed to open stream: No such file or directory in sources/news_sitemap.php on line 32 (version: 10 beta4, PHP version: 5.4.16, URL: /cms/cms-news/_add?redirect=https%3A%3Aslash%3A%3Aslash%3Alovinity.org%3Aslash%3Astart&uploading=1)
Additional InformationI don't remember ever deleting the sitemap. This issue has also existed in prior installations of Composr as well.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2016-03-21 22:27

administrator   ~0003456

This was fixed already, but workaround is to make the data_custom/sitemaps directory.

Guest

2016-05-20 13:31

viewer   ~0003948

Last edited: 2016-05-20 13:36

View 2 revisions

I did this work around, and I still get this error

To be more specific, if I set the "validate news" at "off" I don't get this message.

Then if after creating the news, I validate it, I don't get this error

But if I try to create a news and leave the "Validate" at "On" then I get the error

Chris Graham

2016-05-21 13:39

administrator   ~0003952

Hi,

Could you try this replacement for sources/news_sitemap.php:
https://raw.githubusercontent.com/ocproducts/composr/f5f67d0298c48a96df6636b1f4ee8951db39a7c5/sources/news_sitemap.php

It will fix a problem with shared-install support and also replace the directory if somehow it's gone missing.

Issue History

Date Modified Username Field Change
2016-03-19 04:21 Patrick Schmalstig New Issue
2016-03-21 22:27 Chris Graham Note Added: 0003456
2016-03-21 22:27 Chris Graham Status non-assigned => resolved
2016-03-21 22:27 Chris Graham Resolution open => fixed
2016-03-21 22:27 Chris Graham Assigned To => Chris Graham
2016-05-20 13:31 Guest Note Added: 0003948
2016-05-20 13:36 Guest Note Edited: 0003948 View Revisions
2016-05-21 13:39 Chris Graham Note Added: 0003952