Kunsthelden Posted October 22, 2017 Share Posted October 22, 2017 (edited) Dear developers, I have an issues which I cannot resolve. I have created a custom PDF generator. This works fine in front end but in back office it's generating sometimes an error. So, it's preventing me from accessing some of the BO sites with error message: Exception in Container.php line 117: Cannot build a `htmltemplatecustompdf`. My custom PDF has followed a tutorial and it's important to mention that I stored it in modules folder, although I have not installed it as a module (based on tutorial). After I figured out the error in BO I have tried to install it with basic install information (indicated by date 22.10.2017) but I cannot install. Error here is: modue first needs to be installed, ModuleManager.php line 566. Just to mention here: if I set the install parameters parent::__construct(), PDF generator starts to fail with error in front office asking for constructor of parent (parent is HTMLTemplate). It's not a must that my custom PDF generator is installed but I wasn't sure if it's a must, if stored in modules folder. Maybe I'm also wrong with setting this file to modules folder although tutorial says so. I have set $this->need_instance = 0 in this regard. My 'modul' doesn't have subfolders etc. as I'm using one PHP file and TPL files only. I would appreciate some help. Kind regards, PR PS: code was deleted from forum but can be requested for free. Just didn't like to have personal code online. X PR Edited October 24, 2017 by Kunsthelden (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted October 23, 2017 Share Posted October 23, 2017 Try to move the generator out of the /modules directory. This directory is checked by PrestaShop and expected to host only valid modules. 1 Link to comment Share on other sites More sharing options...
Kunsthelden Posted October 24, 2017 Author Share Posted October 24, 2017 Dear M4 Thank you so much for the advice. Did it and it works now. I was strongly interfering :-) May I ask one small thing? Is my file in my own filder 'save' from Prestashop udpates? I guess so but I'm not 100% sure. Kind regards, Priska Link to comment Share on other sites More sharing options...
tuk66 Posted October 24, 2017 Share Posted October 24, 2017 Yes, PrestaShop works only with its own directories. 1 Link to comment Share on other sites More sharing options...
Kunsthelden Posted October 24, 2017 Author Share Posted October 24, 2017 Perfect, thank you! Have very good time and lots of fun, PR 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