[Notice] Use of undefined constant none - assumed 'none'

GET /admin/pages/edit/show/22

Line 847 in server-dir/framework/control/injector/Injector.php

Source

838 	 *					A string representation of the class to create
839 	 * @param array $params
840 	 *					An array of parameters to be passed to the constructor
841 	 */
842 	public function create($class, $params = array()) {
843 		$reflector = new ReflectionClass($class);
844 		if (count($params)) {
845 			return $reflector->newInstanceArgs($params); 
846 		}
847 		return $reflector->newInstance();
848 	}
849 }
850 
851 class SilverStripeInjectionCreator {
852 	/**
853 	 *

Trace

GET /admin/pages/edit/show/22

[Notice] Use of undefined constant none - assumed 'none'

GET /admin/pages/edit/show/22

Line 847 in server-dir/framework/control/injector/Injector.php

Source

838 	 *					A string representation of the class to create
839 	 * @param array $params
840 	 *					An array of parameters to be passed to the constructor
841 	 */
842 	public function create($class, $params = array()) {
843 		$reflector = new ReflectionClass($class);
844 		if (count($params)) {
845 			return $reflector->newInstanceArgs($params); 
846 		}
847 		return $reflector->newInstance();
848 	}
849 }
850 
851 class SilverStripeInjectionCreator {
852 	/**
853 	 *

Trace

GET /admin/pages/edit/show/22

[Notice] Use of undefined constant none - assumed 'none'

GET /admin/pages/edit/show/22

Line 847 in server-dir/framework/control/injector/Injector.php

Source

838 	 *					A string representation of the class to create
839 	 * @param array $params
840 	 *					An array of parameters to be passed to the constructor
841 	 */
842 	public function create($class, $params = array()) {
843 		$reflector = new ReflectionClass($class);
844 		if (count($params)) {
845 			return $reflector->newInstanceArgs($params); 
846 		}
847 		return $reflector->newInstance();
848 	}
849 }
850 
851 class SilverStripeInjectionCreator {
852 	/**
853 	 *

Trace

GET /admin/pages/edit/show/22

[Notice] Use of undefined constant none - assumed 'none'

GET /admin/pages/edit/show/22

Line 847 in server-dir/framework/control/injector/Injector.php

Source

838 	 *					A string representation of the class to create
839 	 * @param array $params
840 	 *					An array of parameters to be passed to the constructor
841 	 */
842 	public function create($class, $params = array()) {
843 		$reflector = new ReflectionClass($class);
844 		if (count($params)) {
845 			return $reflector->newInstanceArgs($params); 
846 		}
847 		return $reflector->newInstance();
848 	}
849 }
850 
851 class SilverStripeInjectionCreator {
852 	/**
853 	 *

Trace

GET /admin/pages/edit/show/22

[User Deprecated] Using outdated tab path "Root.Content.Client", please use the new location "Root.Client" instead. Called from .

GET /admin/pages/edit/show/22

Line 173 in server-dir/framework/dev/Deprecation.php

Source

164 
165 			// Then raise the notice
166 			if(substr($string,-1) != '.') $string .= ".";
167 
168 			$string .= " Called from " . self::get_called_method_from_trace($backtrace, 2) . '.';
169 
170 			if($caller) {
171 				user_error($caller.' is deprecated.'.($string ? ' '.$string : ''), $level);	
172 			} else {
173 				user_error($string, $level);	
174 			}
175 			
176 		}
177 	}
178 
179 	/**

Trace

GET /admin/pages/edit/show/22

[User Deprecated] Using outdated tab path "Root.Content.Client", please use the new location "Root.Client" instead. Called from .

GET /admin/pages/edit/show/22

Line 173 in server-dir/framework/dev/Deprecation.php

Source

164 
165 			// Then raise the notice
166 			if(substr($string,-1) != '.') $string .= ".";
167 
168 			$string .= " Called from " . self::get_called_method_from_trace($backtrace, 2) . '.';
169 
170 			if($caller) {
171 				user_error($caller.' is deprecated.'.($string ? ' '.$string : ''), $level);	
172 			} else {
173 				user_error($string, $level);	
174 			}
175 			
176 		}
177 	}
178 
179 	/**

Trace

GET /admin/pages/edit/show/22

[User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'File'

GET /admin/pages/edit/show/22

Line 675 in server-dir/framework/core/Object.php

Source

666 				default :
667 					throw new Exception (
668 						"Object->__call(): extra method $method is invalid on $this->class:"
669 							. var_export($config, true)
670 					);
671 			}
672 		} else {
673 			// Please do not change the exception code number below.
674 			
675 			throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'", 2175);
676 		}
677 	}
678 	
679 	// --------------------------------------------------------------------------------------------------------------
680 	
681 	/**

Trace