Closed wilr closed 4 years ago
When testing and further debugging I was able to get the following outputted when looking at what $type was -
array(3) { ["through"]=> string(35) "SilverStripe\CMS\Model\SiteTreeLink" ["from"]=> string(6) "Parent" ["to"]=> string(6) "Linked" }
@obj63mc Ah yep sorry just needed to move it after the through check.
With that last update, tested, all is working as expected now.
Thanks!
When that is used I get the following -
[Warning] strpos() expects parameter 1 to be string, array given
at line 166My actual class is like the following so there are multiple many_many types on the class. Note I just worked around this by overwriting the ImagesForSitemap function in my blog post extension.
attached are screenshots of the full error messages returned from the error stacks.