Jump to content

Installation of modules is not possible - Prestashop 8.0.1


Tecc

Recommended Posts

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

  • 2 weeks later...
  • 2 weeks later...

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 by GKL (see edit history)
Link to comment
Share on other sites

"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

  • 2 weeks later...

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

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

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

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

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 by GKL (see edit history)
Link to comment
Share on other sites

  • 3 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...