Asset does not exist [SYS0087] error on search and import scripts

On setting up search and running migration scripts, users keep getting the error below:

 

[2013-04-30 10:57:02][512:mysource warning][R] (/core/include/locale_manager.inc:547) - Asset #101 does not exist [SYS0087]

 

The rest of the error info:

[30-Apr-2013 10:57:02] PHP Fatal error:  Call to a member function getStylesheets() on a non-object in /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc on line 76 [30-Apr-2013 10:57:02] PHP Stack trace:
[30-Apr-2013 10:57:02] PHP   1. {main}() /var/www/matrix/core/web/index.php:0
[30-Apr-2013 10:57:02] PHP   2. MySource->start() /var/www/matrix/core/web/index.php:30
[30-Apr-2013 10:57:02] PHP   3. Backend->paint() /var/www/matrix/core/include/mysource.inc:571
[30-Apr-2013 10:57:02] PHP   4. Backend->_printMain() /var/www/matrix/core/include/backend.inc:194
[30-Apr-2013 10:57:02] PHP   5. Asset_Manager->paintBackend() /var/www/matrix/core/include/backend.inc:1526
[30-Apr-2013 10:57:02] PHP   6. Asset_Manager_Edit_Fns->paintBackend() /var/www/matrix/core/include/asset_manager.inc:8961
[30-Apr-2013 10:57:02] PHP   7. Bodycopy->paintBackend() /var/www/matrix/core/include/asset_manager_edit_fns.inc:224
[30-Apr-2013 10:57:02] PHP   8. Asset->paintBackend() /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy.inc:297
[30-Apr-2013 10:57:02] PHP   9. Asset_Edit_Interface->paint() /var/www/matrix/core/include/asset.inc:5079
[30-Apr-2013 10:57:02] PHP  10. Asset_Edit_Interface->printEditInterface() /var/www/matrix/core/include/asset_edit_interface.inc:795
[30-Apr-2013 10:57:02] PHP  11. Bodycopy_Edit_Fns->paintBodycopy() /var/www/matrix/core/include/asset_edit_interface.inc:1113
[30-Apr-2013 10:57:02] PHP  12. Bodycopy_Edit_Fns->_saveCssIds() /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc:118

 

What could be happening, as this did not start occurring until earlier today, and nothing was really deleted in Matrix which might have caused this. Could this be a permissions issue? Any other ideas? Does the log really mean that there is an asset missing, which would then cause scripts and search not to run? Is there a suggested fix? System integrity scripts were run with no errors which could not be repaired. Still received the above error.

 

On setting up search and running migration scripts, users keep getting the error below:

 

[2013-04-30 10:57:02][512:mysource warning][R] (/core/include/locale_manager.inc:547) - Asset #101 does not exist [SYS0087]

 

The rest of the error info:

[30-Apr-2013 10:57:02] PHP Fatal error:  Call to a member function getStylesheets() on a non-object in /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc on line 76 [30-Apr-2013 10:57:02] PHP Stack trace:
[30-Apr-2013 10:57:02] PHP   1. {main}() /var/www/matrix/core/web/index.php:0
[30-Apr-2013 10:57:02] PHP   2. MySource->start() /var/www/matrix/core/web/index.php:30
[30-Apr-2013 10:57:02] PHP   3. Backend->paint() /var/www/matrix/core/include/mysource.inc:571
[30-Apr-2013 10:57:02] PHP   4. Backend->_printMain() /var/www/matrix/core/include/backend.inc:194
[30-Apr-2013 10:57:02] PHP   5. Asset_Manager->paintBackend() /var/www/matrix/core/include/backend.inc:1526
[30-Apr-2013 10:57:02] PHP   6. Asset_Manager_Edit_Fns->paintBackend() /var/www/matrix/core/include/asset_manager.inc:8961
[30-Apr-2013 10:57:02] PHP   7. Bodycopy->paintBackend() /var/www/matrix/core/include/asset_manager_edit_fns.inc:224
[30-Apr-2013 10:57:02] PHP   8. Asset->paintBackend() /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy.inc:297
[30-Apr-2013 10:57:02] PHP   9. Asset_Edit_Interface->paint() /var/www/matrix/core/include/asset.inc:5079
[30-Apr-2013 10:57:02] PHP  10. Asset_Edit_Interface->printEditInterface() /var/www/matrix/core/include/asset_edit_interface.inc:795
[30-Apr-2013 10:57:02] PHP  11. Bodycopy_Edit_Fns->paintBodycopy() /var/www/matrix/core/include/asset_edit_interface.inc:1113
[30-Apr-2013 10:57:02] PHP  12. Bodycopy_Edit_Fns->_saveCssIds() /var/www/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc:118

 

What could be happening, as this did not start occurring until earlier today, and nothing was really deleted in Matrix which might have caused this. Could this be a permissions issue? Any other ideas? Does the log really mean that there is an asset missing, which would then cause scripts and search not to run? Is there a suggested fix? System integrity scripts were run with no errors which could not be repaired. Still received the above error.

 

 

The asset id #101 doesn't exist on your system and I think it would most likely be a design on a page (or a bodycopy underneath a page). Check the settings screen for the design info.

Thank you very much for your help here.

 

This was indeed the problem, design problem that is, though what caused the asset to go is to be discovered. Ultimately we will create a new design and apply it when we are ready.