V1.7 Tip: How to Recover installed modules or how to install modules by FTP on Prestashop 1.7 ?

prokill

Well-known member
Diamond
Elite
Joined
Jul 27, 2020
Messages
273
Reaction score
261
Points
63
NullCash
480
Hey there,
I have noticed that you can't install module from just copying it in the modules directory.
You have got to go through the module manager and install it by adding it on the menu, which is painful!

Compared to previous prestashop versions where you could just install the module by copying the file, in prestashop 1.7, it is NOT POSSIBLE (or I don't know how to it properly).
Why is that? In prestashop 1.7, there is a table managing the installed module.

Check for the table "ps_module" and to install a module manually (that you have put in FTP),
you have to insert a new line with the name of the module , active to 0 and version to the version module (check for config_xxx.xml to get the version).
the name of the module must be the same as the module folder name.

I have tested on few modules, it works. But then you have to "RESET" the module to install it correctly.

I haven't been yet doing it but I am sure a script can be done to
Check the modules directory, extract version number from file and insert module which are not installed in the table ps_module.
Pretty easy to done.
Not yet the time to do it!
Hope it helps!
 

lililkecil

Well-known member
Diamond
Elite
Joined
Aug 17, 2020
Messages
1,419
Reaction score
155
Points
63
NullCash
1,324
Hey there,
I have noticed that you can't install module from just copying it in the modules directory.
You have got to go through the module manager and install it by adding it on the menu, which is painful!

Compared to previous prestashop versions where you could just install the module by copying the file, in prestashop 1.7, it is NOT POSSIBLE (or I don't know how to it properly).
Why is that? In prestashop 1.7, there is a table managing the installed module.

Check for the table "ps_module" and to install a module manually (that you have put in FTP),
you have to insert a new line with the name of the module , active to 0 and version to the version module (check for config_xxx.xml to get the version).
the name of the module must be the same as the module folder name.

I have tested on few modules, it works. But then you have to "RESET" the module to install it correctly.

I haven't been yet doing it but I am sure a script can be done to
Check the modules directory, extract version number from file and insert module which are not installed in the table ps_module.
Pretty easy to done.
Not yet the time to do it!
Hope it helps!
Hi, thank you for the explanation. and some times some module will create their own table and modify the legacy table
 

dreeashy

Member
XNullUser
Joined
Apr 10, 2021
Messages
433
Reaction score
0
Points
16
NullCash
623
Your presence is my present, but I love this one too. Thank you!
 

biryol51

Member
XNullUser
Joined
Jul 17, 2022
Messages
52
Reaction score
0
Points
6
NullCash
1
Selam,
Modülü yalnızca modüller dizinine kopyalayarak yükleyemeyeceğinizi fark ettim.
Modül yöneticisinden geçmeniz ve onu menüye ekleyerek yüklemeniz gerekiyor ki bu çok acı verici!

Dosyayı kopyalayarak modülü kurabildiğiniz önceki prestashop sürümleriyle karşılaştırıldığında, prestashop 1.7'de bu MÜMKÜN DEĞİLDİR (ya da nasıl düzgün şekilde yapılacağını bilmiyorum).
Nedenmiş? Prestashop 1.7'de kurulu modülü yöneten bir tablo bulunmaktadır.

"ps_module" tablosunu kontrol edin ve bir modülü manuel olarak kurmak için (FTP'ye koyduğunuz),
versiyon modülüne modülün adını, 0'a aktif ve versiyonunu içeren yeni bir satır eklemeniz gerekir (sürüm için config_xxx.xml dosyasını kontrol edin).
modülün adı modül klasörünün adıyla aynı olmalıdır.

Birkaç modülde test ettim, işe yarıyor. Ancak daha sonra modülü doğru şekilde kurmak için "SIFIRLAMA" yapmanız gerekir.

Henüz yapmadım ama bir senaryonun yapılabileceğinden eminim
Modüller dizinini kontrol edin, dosyadan sürüm numarasını çıkarın ve ps_module tablosunda kurulu olmayan modülü ekleyin.
Yapılması oldukça kolay.
Henüz bunu yapmanın zamanı değil!
Umarım yardımcı olur!
çok teşekkürler çok sağolun var olun
 
Top