Silverstripe Version: - No idea.
Question:
I have been asked to migrate a website over to a new server. After Exporting and Importing the database of the website to the new server and setting all relevant permissions, also making sure the ver of PHP is identical, I get the following error when launching the website, any idea?
Raoul
[Notice] Array to string conversion
GET /
Line 162 in C:\inetpub\wwwroot\theparkhome\sapphire\core\SSViewer.php
Source
153 // flush template manifest cache if requested
154 if (isset($_GET[âflushâ]) && $_GET[âflushâ] == âallâ) {
155 if(Director::isDev() || Director::is_cli() || Permission::check(âADMINâ)) {
156 self::flush_template_cache();
157 } else {
158 return Security::permissionFailure(null, âPlease log in as an administrator to flush the template cache.â);
159 }
160 }
161
162 if(substr((string) $templateList,-3) == â.ssâ) {
163 $this->chosenTemplates[âmainâ] = $templateList;
164 } else {
165 if(!is_array($templateList)) $templateList = array($templateList);
166
167 if(isset($_GET[âdebug_requestâ])) Debug::message(âSelecting templates from the following list: " . implode(â, ", $templateList));
168