Install Modules, Dolistore Modules Not Working

Hi Dolibarr Community,

I can’t seem to get custom modules to work. Can you help me?

I installed Dolibarr on my shared server, and I have all the pre-installed/ default modules working fine. But when I install a module following the standard procedures (upload the zip file to the root directory & unzip), the module doesn’t appear as an option in my Module Set-up section of Dolibarr.

I tried several modules. Plus I tried it on several versions of Dolibarr (3.8.3, 3.8, & 3.7) - each being compatible with the modules. Unfortunately, I can’t get them to appear in any installation.

How can I get new modules to work in Dolibarr? Am I missing a setting?

Any help is greatly appreciated!

Joel

P.S. This is my first post in the forum!

P.P.S. I tried to post this thread in the installation forum but it didn’t show-up. So I thought I’d give it a try here.

hello
what is the name of the module(s) ?

Hi Altatof, thanks for the reply!

AllScreens (https://www.dolistore.com/en/modules/511-AllScreens.html)
ADYTEK Theme (https://www.dolistore.com/en/skins/41-ADYTEK-Theme.html)
Custom Fields (https://www.dolistore.com/en/modules/221-Custom-Fields.html)

I started by using the AllScreens module, and it didn’t appear Dolibarr 3.8.3. I thne tried fresh installs of 3.8 & 3.7. Still no luck.

I then tested the ADYTEK Theme in my different Dolibarr installs. It didn’t work. It wasn’t appearing in the settings.

Finally, I thought I’d give a non-skin module a shot, and tried installing Custom Fields. It didn’t work either.

Any thoughts?

I’m still trying to figure it out, but I have some additional information. Perhaps it will reveal something!

So I thought that maybe it had to do with the conf.php. Note, I just swapped out the website name for the sake of this example.

$dolibarr_main_url_root=‘https://mywebsite.com/dolibarr’;
$dolibarr_main_document_root=’/home/mywebsite/public_html/dolibarr’;
//$dolibarr_main_url_root_alt=’/custom’;
//$dolibarr_main_document_root_alt=’/home/joelsimone/public_html/dolibarr/custom’;
$dolibarr_main_data_root=’/home/mywebsite/public_html/dolibarr/documents’;
$dolibarr_main_db_host=‘localhost’;

I tried changing dolibarr_main_document_root from ‘/home/mywebsite/public_html/dolibarr’ to ‘/home/mywebsite/public_html/dolibarr/htdocs’. This was based on a parameter I saw on the Dolibarr Wiki. This broke the site - giving warnings for missing includes.

So that’s where I’m at now. Any ideas?

Also, I’m new to Dolibarr, and not super advanced with PHP or computer programming. So any help is appreciated!

I just wanted post an update. I got the plugins working.

I had to uncomment those two “commented” lines above and change “custom” to “htdocs”, like this:
[br]

$dolibarr_main_url_root_alt='/htdocs'; $dolibarr_main_document_root_alt='/home/mywebsite/public_html/dolibarr/htdocs';

Now the I’m just running into one problem with the a module loading it’s setup/ admin page. After I activate the module and then click on the setup icon, I’m getting a page with these warnings:
[br]

[code]
Warning: require_once(/home/mywebsite/public_html/dolibarr-380/allscreens/lib/allscreens.lib.php): failed to open stream: No such file or directory in /home/mywebsite/public_html/dolibarr-380/htdocs/allscreens/admin/admin.php on line 33

Fatal error: require_once(): Failed opening required ‘/home/mywebsite/public_html/dolibarr-380/allscreens/lib/allscreens.lib.php’ (include_path=’/home/mywebsite/public_html/htdocs’) in /home/mywebsite/public_html/dolibarr-380/htdocs/allscreens/admin/admin.php on line 33[/code]

Any ideas on how to resolve this one?

Serge at MS Mobile helped me with the problem. He’s the author of the plugin.

The problem was how Dolibarr is/was installed. I’m using Godaddy’s Installatron to install the application, and it installs all of the directories into the root Dolibarr directory. I had to simply restore the default conf.php settings - from the original installation - and then install AllScreens in the root directory.

It was confusing because all of the plugins instruct to install in the htdocs folder.

Serge was extremely helpful. The theme is beautiful too. I would go as far as to recommend that Dolibarr hire MS Mobile to design its default theme!

1 Like