So i'm setting up magento 2.3.5 on a new server for three domains. Actually two domains and one subdomain. I wanted to use one backend. I've followed the instructions and the primary domain shows fine. But the other two website stores aren't working at all. I get an exception error
The domains are:
1. https://dems.isscreenprinters.com
2. https://shop.isscreenprinters.com
3. http://wearvie.com (I haven't installed SSL yet. Trying to get the install to work first.
Why is it that the dems subdomain works fine? The vhosts are set for all and I have verified they are working by accessing a php info file from the shared document root.
I'll paste the exception error below. Hopefully someone knows how to discern it and can point me in the right direction:
{"0":"Class does not exist","1":"#1 Magento\\Framework\\Code\\Reader\\ClassReader->getConstructor('') called at [vendor\/magento\/framework\/ObjectManager\/Definition\/Runtime.php:54]\n#2 Magento\\Framework\\ObjectManager\\Definition\\Runtime->getParameters('') called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:48]\n#3 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('') called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#4 Magento\\Framework\\ObjectManager\\ObjectManager->get('') called at [vendor\/magento\/module-store\/Model\/StoreResolver\/ReaderList.php:55]\n#5 Magento\\Store\\Model\\StoreResolver\\ReaderList->getReader('wearvie_website_...') called at [vendor\/magento\/module-store\/Model\/StoresData.php:64]\n#6 Magento\\Store\\Model\\StoresData->getStoresData('wearvie_website_...', 'base2') called at [vendor\/magento\/module-store\/Model\/StoreResolver.php:138]\n#7 Magento\\Store\\Model\\StoreResolver->getStoresData() called at [vendor\/magento\/module-store\/Model\/StoreResolver.php:97]\n#8 Magento\\Store\\Model\\StoreResolver->getCurrentStoreId() called at [vendor\/magento\/module-store\/Model\/StoreManager.php:160]\n#9 Magento\\Store\\Model\\StoreManager->getStore(NULL) called at [generated\/code\/Magento\/Store\/Model\/StoreManagerInterface\/Proxy.php:119]\n#10 Magento\\Store\\Model\\StoreManagerInterface\\Proxy->getStore(NULL) called at [vendor\/magento\/module-store\/Model\/Resolver\/Store.php:30]\n#11 Magento\\Store\\Model\\Resolver\\Store->getScope(NULL) called at [vendor\/magento\/framework\/App\/Config\/ScopeCodeResolver.php:49]\n#12 Magento\\Framework\\App\\Config\\ScopeCodeResolver->resolve('stores', NULL) called at [vendor\/magento\/framework\/App\/Config.php:69]\n#13 Magento\\Framework\\App\\Config->getValue('admin\/url\/use_cu...', 'stores') called at [vendor\/magento\/module-backend\/App\/Area\/FrontNameResolver.php:123]\n#14 Magento\\Backend\\App\\Area\\FrontNameResolver->isHostBackend() called at [vendor\/magento\/module-backend\/App\/Area\/FrontNameResolver.php:106]\n#15 Magento\\Backend\\App\\Area\\FrontNameResolver->getFrontName(true) called at [vendor\/magento\/framework\/App\/AreaList.php:76]\n#16 Magento\\Framework\\App\\AreaList->getCodeByFrontName('wildlife-parks') called at [vendor\/magento\/framework\/App\/Http.php:111]\n#17 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#18 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#19 Magento\\Framework\\App\\Bootstrap->run(&Magento\\Framework\\App\\Http\\Interceptor#000000007fec7ce2000000006206fd89#) called at [pub\/index.php:40]\n","url":"\/wildlife-parks\/cacoon-wsjyf","script_name":"\/index.php","report_id":"ffa2225696daeb2ac046a2acd4efb10e978831ea2b398cea6e090fab4ed01b1d"}
So iwas able to figure out the problem. The issue is MAGE_RUN_TYPE. I had it set to my actual website domain. MAGE_RUN_TYPE = wearvie.com.
That's wrong...however i think it was natural to awesome because the syntax is MAGE_RUN_TYPE = "website". Magento may think on changing that designator to webstore instead. People see 'website' and think they should plugin information there.
I almost paid someone to install magento for me. I was frustrated with myself.