1. online-today
  2. General
  3. Thursday, May 14 2020, 12:47 PM
I am not able to activate the social network plugin
I get the following error: 0

Class 'Dotenv\Environment\DotenvFactory' not found

As long as I have not activated the following plugins the internet page works fine:
Easy Profile - EasyDiscuss Tab
Easy Profile - Social Network
Easy Profile - Social Network package
Easy Profile - SocialConnect plugin
Jomsocial Bridge for Easy Profile

P.S.
PHP Version 7.3.16
upload_max_filesize 64M
Accepted Answer
admin Accepted Answer
Admin
Hi,
the full error is: Class 'Dotenv\Environment\DotenvFactory' not found
/xxx/xxxx/xx/xx/xxxx/htdocs/administrator/components/com_osdownloads/vendor/illuminate/support/helpers.php:645

So it comes from component "osdownloads".

In file helpers.php there is a declaration of a function called "env", this is a common function used by many frameworks to retrieve data from files .env (dot env).

Unfortunately seems that the component osdownloads declare it but probably it does not use it, because in osdownloads framework missing the library Dotenv\Environment\DotenvFactory, so it declare a function (env) that need to use a missing library.

To fix this I have changed in file helpers.php at line 632 this code
if (! function_exists('env')) {
with this:
if (false && ! function_exists('env')) {


We recommend to contact developers to fix it.
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Hi,
can you please post me your site details to check this? if yes then you can use the form below the reply in "Site Details" tab
  1. more than a month ago
  2. General
  3. # 1
online-today Accepted Answer
At the moment the above listed social plugins are turned off. The social network page is in the menu "Intern/social network"
  1. more than a month ago
  2. General
  3. # 2
online-today Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.