damnated Posted May 8, 2011 Share Posted May 8, 2011 Hello, I've been developing prestashop modules for a few months now, but I have encountered a problem with the new (1.4+) version. Neither the modules I created for old prestashops (1.3.7 even) or the ones created directly for the newest one show up in the list of modules. I have put every file where it belongs, I even upgraded the old modules (changed the tab etc.). The module filter is set to show every installed or uninstalled module, and they just simply do not show up.How are new modules supposed to be installed?PS: I have also created an xml file with basic infoPS2: I've tried archiving the files, with dir structure, and uploading it with the " Add a module from my computer " feature, and although the upload was a success, the module did not appear in the list ... Link to comment Share on other sites More sharing options...
damnated Posted May 8, 2011 Author Share Posted May 8, 2011 AFAIK, it should display as an available / installable module if the following conditions are met:-- modules/somename/somename.php exists check-- somename.php contains a classfile declaration myhappyname extends Module check-- the class constructor contains, at a minimum, declarations for these properties: name, tab, version, displayName, description check-- within the constructor, $this->name = 'myhappyname'; (matches classname) check thank you for the long post, but I'm aware of the things you wrote. I know the xml file is optional, I just added it to be sure that wasn't the problem. everything you mentioned is there. tab is Front Office Features. Basically I copy pasted the module's files from the prestashop 1.3.7 directory into the new prestashop dir, changing only the tab/version/etc basic info. the same files/module shows up/works just fine in PS 1.3.xI asked how modules are supposed to be installed, because I did everything I normally do, (or anything I should do according to the PS 1.4 'manual' ) and the module isn't even visible. I wonder how users (ie. non-developers) get these modules to show up, if I (a developer) have this much problem with them... Link to comment Share on other sites More sharing options...
Burhan BVK Posted May 9, 2011 Share Posted May 9, 2011 Try resetting the filters on the modules page. Link to comment Share on other sites More sharing options...
damnated Posted May 9, 2011 Author Share Posted May 9, 2011 Try resetting the filters on the modules page. they set to show everything. if I filter to modules created by 3rd parties for example, they still don't show up. Link to comment Share on other sites More sharing options...
damnated Posted May 9, 2011 Author Share Posted May 9, 2011 I browsed through the bugtracker, and according to that increasing the memory limit should solve this. I already had the memory limit set to 128M, but deleted every partner module; the ones I wrote are still missing though. Link to comment Share on other sites More sharing options...
damnated Posted May 10, 2011 Author Share Posted May 10, 2011 For instance. This module skeleton is not visible. if (!defined('_CAN_LOAD_FILES_')) exit; class MyModule extends Module { private $_html = ''; private $_postErrors = array(); function __construct() { $this->name = 'mymodule'; $this->tab = 'migration_tools'; $this->version = '0.1'; $this->author = 'Me'; parent::__construct(); $this->displayName = $this->l('My module'); $this->description = $this->l('Some text'); } function install() { if (!parent::install() ) return false; return true; } public function getContent() { $output = ''.$this->displayName.''; return $output.$this->displayForm(); } public function displayForm() { $output = ''.$this->displayName.''; return $output; } } Link to comment Share on other sites More sharing options...
uddhava Posted May 24, 2011 Share Posted May 24, 2011 To create your own custom Modules tab you need to change the /admin/tabs/AdminModules.php file. I wonder if this file also can be overrided? Link to comment Share on other sites More sharing options...
affect Posted May 25, 2011 Share Posted May 25, 2011 The skeleton is perfectly visible for me, actually. Link to comment Share on other sites More sharing options...
damnated Posted May 25, 2011 Author Share Posted May 25, 2011 And it should be. That is so vexing. Link to comment Share on other sites More sharing options...
damnated Posted June 16, 2011 Author Share Posted June 16, 2011 EDIT: I figured it out, it was a permission issue. What a noob thing to miss. Link to comment Share on other sites More sharing options...
berta recchia Posted February 12, 2013 Share Posted February 12, 2013 wouldn't it be nice if you told us what permission you used and on what file / folder..... 1 Link to comment Share on other sites More sharing options...
RobbieBlokeToys Posted January 15, 2015 Share Posted January 15, 2015 EDIT: I figured it out, it was a permission issue. What a noob thing to miss. Great, thanks for not telling anyone else what the solution is! 3 Link to comment Share on other sites More sharing options...
DuckIT Posted November 2, 2017 Share Posted November 2, 2017 Hello, I do have the same problem and could not find out which permission it could be. Anyone have any idea? Link to comment Share on other sites More sharing options...
nhaga Posted November 14, 2017 Share Posted November 14, 2017 Care to share the solution? Link to comment Share on other sites More sharing options...
ikerinterventas Posted February 19, 2018 Share Posted February 19, 2018 Could you mind to share the solution to change permission? it might be it for me. Link to comment Share on other sites More sharing options...
Athinodoros Posted August 10, 2018 Share Posted August 10, 2018 i just renamed the "shipwire" module to "shipwire---" Solved !!!!! 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