<![CDATA[ Path error with Asset Manager (Assman) extra following migration - My Forums]]> https://forums.modx.com/thread/?thread=95909 <![CDATA[Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519079
PHP Fatal error:  Call to a member function getAssets() on a non-object in C:\inetpub\vhosts\domain.com\subdomains\stage\core\components\assman\controllers\PageController.php on line 179


This relates specifically to the Asset Manager extra, line 179 of PageController.php is:

$this->config['PageAssets'] = $PA->getAssets($page_id);


The MODX Error Log contains:

(ERROR @ /manager/Index.php) Path specified for package assman is not a valid or accessible directory: C:inetpubvhostsdomain.comsubdomainsstage/core/components/assman/model/


Clearly there is no path separator, C:inetpubvhostsdomain.comsubdomainsstage should be C:inetpub/vhosts/domain.com/subdomains/stage but I can't figure how the path is generated or why it should fail following migration.

I un-installed and re-installed the Asset Manager Extra but this does not help and none of the assman System Settings appear to be relevant.

Can anyone help with this?]]>
chris.dempsey78 Jan 23, 2015, 12:22 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519079
<![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-551584 redbox Jun 08, 2017, 07:35 AM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-551584 <![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519157 BobRay Jan 24, 2015, 06:50 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519157 <![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519133 chris.dempsey78 Jan 24, 2015, 08:59 AM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519133 <![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519127 BobRay Jan 24, 2015, 01:08 AM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519127 <![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519118 chris.dempsey78 Jan 23, 2015, 06:47 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519118 <![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519115 check the path in the Assman entry in the modx_extension_packages System Setting (if there is one).
Genius, thank you. System Settings > System & Server: extension_packages was:

[{"assman":{"tablePrefix":"ass_","path":"C:inetpubvhostsdomain.comsubdomainsstage/core/components/assman/model/"}}]


But should be:

[{"assman":{"tablePrefix":"ass_","path":"C:inetpub/vhosts/domain.com/subdomains/stage/core/components/assman/model/"}}]


With this updated I can view Resources without error.

On a separate note I notice under Namespaces the Assets Path for assman is:

/Users/everett2/Sites/revo2/public_html/assets/repos/assetmanager/assets/


This must relate to Everett's development environment and is the same in both the original site and the in the new location it was migrated to. It doesn't seem to affect the Extra though.]]>
chris.dempsey78 Jan 23, 2015, 06:33 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519115
<![CDATA[Re: Path error with Asset Manager (Assman) extra following migration]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519114
http://forums.modx.com/thread/80883/can-t-install-reinstall-packages
http://forums.modx.com/thread/83363/db-problem-after-moving-to-another-server

For some reason, when moving from one server to another packages seem to retain the actual servername in the path that MODX uses to access the packages. Under normal circumstances the servername is not even necessary, which is why this is such a strange issue.

The only way I've gotten this to effectively resolve is to uninstall packages one by one (each version) till there are no more versions to uninstall. Then, remove the package entirely. First within the MODX manager, and then check that the transport.zip and package folders are completely gone from the core/packages folder. Clear the core/cache files and reinstall/MODX.

I recall someone else rewriting the workspaces table setting to an absolute url, which worked but would be incorrect. The {core_path} really should work fine if MODX didn't want to look at a path that included the servername for some wacky reason.
]]>
frogabog Jan 23, 2015, 06:13 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519114
<![CDATA[Re: Path error with Asset Manager (Assman) extra following migration (Best Answer)]]> https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519109 Also, check the path in the Assman entry in the modx_extension_packages System Setting (if there is one).

If neither of those pays off, look at the modx_extension_packages table in PhpMyAdmin to see if there's an incorrect Assman path there.]]>
BobRay Jan 23, 2015, 05:18 PM https://forums.modx.com/thread/95909/path-error-with-asset-manager-assman-extra-following-migration#dis-post-519109