Tecc Posted January 9, 2023 Share Posted January 9, 2023 multiple (random) modules cannot be installed because of the following error: Environment variable not found: "DISTRIBUTION_API_URL". After a consecutive try, the error message changes to: Installation of the Modul tvmail failed: No Entry in Employee->email After this, it is not possible to go any further with the installation. The problem appears in Prestashop Version 8.0.1. The same zip file could be installed in Version 1.7.8.8 without any errors. Link to comment Share on other sites More sharing options...
Matt67520 Posted January 20, 2023 Share Posted January 20, 2023 (edited) I just had the same message, not when installing, but when activating a module. Edited January 20, 2023 by Matt67520 (see edit history) Link to comment Share on other sites More sharing options...
GKL Posted February 2, 2023 Share Posted February 2, 2023 (edited) Same here. After upgrading from 1.7.8.8 to 8.0.1, somehow the Distribution API Client module was disabled by default, and I didn't see any module updates. After enabled, I see the updates, but all module related operations give the above errors. Either installing, updating, enabling, disabling and uninstalling modules, one of the following appears: Environment variable not found: "DISTRIBUTION_API_URL". - or - Installation of the Modul *whatever* failed: No Entry in Employee->email Edited February 2, 2023 by GKL (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted February 4, 2023 Share Posted February 4, 2023 (edited) Hi all. Prestashop 8.0.1 is in the BETA version phase and not all modules are available and functional. You need to check the final version. Now I just recommend downgrading back to 1.7.8.8. Edited February 4, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
GKL Posted February 7, 2023 Share Posted February 7, 2023 "8.0 stable - (8.0.1)" is a stable release, available on both minor and major release channels. It sure works like a BETA, throwing Internal Server Errors all over the place, but it's "stable". - The module manager doesn't work, as mentioned above. - The orders page doesn't work, showing twig errors. - Half of the products can't be edited, showing errors in GetProductForEditingHandler.php. I'm having fun with it. Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 We're getting the same thing as my post states: Hi Everyone, After upgrading to 8.01 from 1.7.8.8 we're getting the following error when trying to upload a module: Installation of module prettyurls failed. Property Employee->email is empty. We're sure this is something silly to check after upgrade. Any ideas? We notice that it says connected on the modules page but there is no option to log out.. we assume this is the connection to prestashop addons? We're confused. Let us know. Comon now guys... this seems like something simple. Something missing in the configuration table? Someone should know how to get past this Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 We notice that both the Distribution API Client and Event Bus modules are both in our modules list but not installed. When trying to install either we're getting the same error. Link to comment Share on other sites More sharing options...
GKL Posted February 21, 2023 Share Posted February 21, 2023 16 minutes ago, Joey said: We notice that both the Distribution API Client and Event Bus modules are both in our modules list but not installed. When trying to install either we're getting the same error. I have both these modules enabled, and still getting the "DISTRIBUTION_API_URL" and the "No Entry in Employee->email" errors. Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 Seems like whatever was changed in 8.0 for the connection to the prestashop website is messed up Link to comment Share on other sites More sharing options...
ps8modules Posted February 21, 2023 Share Posted February 21, 2023 Hi, Check if the ./var/modules folder exists. If not exists create it. Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 Yes it exists, inside it just has one folder called ps_mbo (whatever that is) and inside that is a lock file Link to comment Share on other sites More sharing options...
ps8modules Posted February 21, 2023 Share Posted February 21, 2023 I had the same problem. I deleted the contents of the ./var/modules folder and everything was fine. Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 Deleting the contents seemed to fix the issue with the Event Bus and Distribution API client not being installed... but when trying to install any module we're still getting: Installation of module * failed. Property Employee->email is empty. Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 Also... it says we're connected to prestashop I guess.. but nothing is showing up in the updates section of the modules page. This doesn't make sense... there's something wrong with the connection.. this is causing issue with upgrades Link to comment Share on other sites More sharing options...
Joey Posted February 21, 2023 Share Posted February 21, 2023 Also... with the 8.0 version.. there's no options to log in or out of the marketplace... it just says connected... but how do I know it's using the right account? Where is this information? Link to comment Share on other sites More sharing options...
GKL Posted February 22, 2023 Share Posted February 22, 2023 (edited) 13 hours ago, Joey said: Also... with the 8.0 version.. there's no options to log in or out of the marketplace... it just says connected... but how do I know it's using the right account? Where is this information? I think that's because the module psaddonsconnect is responsible for logging in and out, but it's no longer part of Prestashop 8. In fact, I couldn't even access the backend until I deleted it. (It caused hook errors after the upgrade to PS8.) Edited February 22, 2023 by GKL (see edit history) Link to comment Share on other sites More sharing options...
Joey Posted February 22, 2023 Share Posted February 22, 2023 Oh wow.. this was answered in another thread: Try to reset/re-install module ps_mbo So you have to reset the Prestashop Marketpace in your back office module. Worked for me Link to comment Share on other sites More sharing options...
GKL Posted February 22, 2023 Share Posted February 22, 2023 Yes, it worked for me too. I did disable it a few days ago, without effect, but resetting did the job. Thanks! Link to comment Share on other sites More sharing options...
Henry Vermeulen Posted June 13, 2023 Share Posted June 13, 2023 I had this also with prestashop 8.0.1 in the file classes/ObjectModel.php on line 1070 you find the function which validates this I changed it a bit so when email is empty it will be filled with the addons (or any) email adress see the 4 lines between $message = $this->validateField($field, $this->$field); and if ($message !== true) { public function validateFields($die = true, $error_return = false) { foreach ($this->def['fields'] as $field => $data) { if (!empty($data['lang'])) { continue; } if (is_array($this->update_fields) && empty($this->update_fields[$field]) && isset($this->def['fields'][$field]['shop']) && $this->def['fields'][$field]['shop']) { continue; } $message = $this->validateField($field, $this->$field); if ($field=='email' && empty($this->$field)) { $this->$field='[email protected]'; $message=true; } if ($message !== true) { if ($die) { throw new PrestaShopException($message); } return $error_return ? $message : false; } } return true; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now