Error: Cannot use SilverStripe\Core\Object as Object because 'Object' is a special class name

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

I am trying to install an SS 3.7 project on PHP 7.0 and get this error:

**Cannot use SilverStripe\Core\Object as Object because 'Object' is a special class name**

I have tried changing PHP versions but no luck.

Any idea?

Sounds like you have addons installed that still use Object instead of the renamed SS_Object. Or maybe it’s also in your codebase. Try searching for Object in the installed addons and your code to locate the culprit?

Yes you are right. Its being used by Multi-Domain which I cant change

It looks as if that issue has been fixed though: Switch to SS_Object by axllent · Pull Request #24 · silverstripe/multi-domain · GitHub

You should be able to fix the problem by upgrading to 1.0.x-dev … maybe posting a new issue on github, so that the author creates a new release would be a good idea.