Comments (2)
This fix, on line 171 is causing an issue when trying to look at many many relationships that are linked to the same class.
An example of this is say you have a BlogPost that has related posts (which are of the same type)
private static $many_many = [
'RelatedArticles' => BlogPost::class
];
private static $belongs_many_many = [
'BlogPosts' => BlogPost::class.'.RelatedArticles'
];
The sitemap generation looking for images is now throwing the following error -
[Emergency] Uncaught SilverStripe\Core\Injector\InjectorNotFoundException: ReflectionException: Class SilverStripe\Blog\Model\BlogPost.RelatedArticles does not exist
Trace
SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\Blog\Model\BlogPost.RelatedArticles, Array)
Injector.php:594
SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\Blog\Model\BlogPost.RelatedArticles, singleton)
Injector.php:1002
SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\Blog\Model\BlogPost.RelatedArticles, 1, Array)
Injector.php:955
SilverStripe\Core\Injector\Injector->get(SilverStripe\Blog\Model\BlogPost.RelatedArticles)
functions.php:34
singleton(SilverStripe\Blog\Model\BlogPost.RelatedArticles)
GoogleSitemapSiteTreeExtension.php:171
Wilr\GoogleSitemaps\Extensions\GoogleSitemapSiteTreeExtension->ImagesForSitemap()
from silverstripe-googlesitemaps.
from silverstripe-googlesitemaps.
Related Issues (20)
- Bug: empty sitemap on SS 4.4.1 HOT 1
- SS4.4.3 : XML Parsing Error: XML or text declaration not at start of entity HOT 7
- Google Search Console can not read sitemap.xml HOT 2
- First line empty, leads to xml Error HOT 3
- Sitemaps empty for DataObjects HOT 3
- google_notification_enabled config no longer does anything
- canIncludeInGoogleSitemap returns array when passed through override
- Changelog out of date HOT 1
- MINOR: simplify the way images are added to remove from sitetree and simplify code. HOT 3
- Does Image in a xml-sitemap provide value without Title? HOT 1
- SilverStripe 4.x Googlesitemap - sitemap.xml Image did not exist HOT 2
- Add caching to optimize calls to ->canIncludeInGoogleSitemap() HOT 1
- add interface for dataobjects HOT 1
- Calling sitemap/$class/$pageId with string as $pageId triggers 500 error
- Pinging updates to Bing no longer works HOT 2
- New tag for SS5 compat HOT 2
- Sitemap dont work with trailing slash
- Unsupported operand types: string - int in getItems()
- XML Parsing Error: mismatched tag. Expected: </link>. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-googlesitemaps.