Guest User

Untitled

a guest
Jun 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. [User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CustomScriptInit', only Dataobject subclasses are supported.
  2. GET /admin/?isDev=1
  3. Line 43 in /home/mindlash/public_html/spatco/sapphire/core/model/DataObjectDecorator.php
  4.  
  5. Source
  6. 34 * @param DataObject $owner
  7. 35 */
  8. 36 function setOwner(Object $owner, $ownerBaseClass = null) {
  9. 37 if(!($owner instanceof DataObject)) {
  10. 38 user_error(sprintf(
  11. 39 "DataObjectDecorator->setOwner(): Trying to decorate an object of class '%s' with '%s',
  12. 40 only Dataobject subclasses are supported.",
  13. 41 get_class($owner), $this->class),
  14. 42 E_USER_ERROR
  15. 43 );
  16. 44 return false;
  17. 45 }
  18. 46
  19. 47 parent::setOwner($owner, $ownerBaseClass);
  20. 48 }
  21. 49
  22. Trace
  23.  
  24. Notice: Undefined offset: 0 in /home/mindlash/public_html/spatco/sapphire/dev/Debug.php on line 520
  25.  
  26. Fatal error: Cannot use object of type CMSMain as array in /home/mindlash/public_html/spatco/sapphire/dev/Debug.php on line 531
Add Comment
Please, Sign In to add comment