Ryčiokas Posted March 9, 2019 Posted March 9, 2019 Hi, did anyone tried to install LP Express shipping module compatible with PrestaShop in thirty bees, I am receiving error. lpexpress install error.txt
0 colorful-ant Posted March 9, 2019 Posted March 9, 2019 you can try this or this for more informations
0 Ryčiokas Posted March 10, 2019 Author Posted March 10, 2019 Now this: [ThirtyBeesException] RecursiveDirectoryIterator::__construct(/public_html/eshop/modules/lpexpress/logs): failed to open dir: Permission deniedat line 1532 in file classes/module/Module.php 1527. return false;1528. }1529. 1530. // Invalidate opcache1531. if (function_exists('opcache_invalidate') && file_exists(_PS_MODULEDIR.$this->name)) {1532. foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(_PS_MODULEDIR.$this->name)) as $file) {1533. /* @var SplFileInfo $file /1534. if (substr($file->getFilename(), -4) !== '.php' || $file->isLink()) {1535. continue;1536. }1537. RecursiveDirectoryIterator->__construct - [line - ] - [2 Arguments] <div id="psArgs_0"> <pre style="background-color:#f1fdfe; border:1px solid #236b04; padding:5px">**Argument [0]**/public_html/eshop/modules/lpexpress/logs**Argument [1]**0</pre> </div> RecursiveDirectoryIterator->getChildren - [line 1532 - classes/module/Module.php] <div id="psTrace_1"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">1527\. return false;1528\. }1529\. 1530\. // Invalidate opcache1531\. if (function_exists('opcache_invalidate') && file_exists(_PS_MODULE_DIR_.$this->name)) {<span style="color:#f20000">1532\. foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(_PS_MODULE_DIR_.$this->name)) as $file) {</span>1533\. /** @var SplFileInfo $file */1534\. if (substr($file->getFilename(), -4) !== '.php' || $file->isLink()) {1535\. continue;1536\. }1537\. </pre> </div> ModuleCore->install - [line 44 - modules/lpexpress/lpexpress.php] <div id="psTrace_2"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">39\. }40\. }41\. 42\. public function install()43\. {<span style="color:#f20000">44\. $res = parent::install();</span>45\. 46\. if ($res)47\. {48\. $this->installAdminTabs();49\. $this->installCarriers();</pre> </div> LPExpress->install - [line 1648 - controllers/admin/AdminModulesController.php] <div id="psTrace_3"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">1643\. }1644\. if (count($this->errors)) {1645\. continue;1646\. }1647\. // Get the return value of current method<span style="color:#f20000">1648\. $echo = $module->{$method}();</span>1649\. // After a successful install of a single module that has a configuration method, to the configuration page1650\. if ($key == 'install' && $echo === true && strpos(Tools::getValue('install'), '|') === false && method_exists($module, 'getContent')) {1651\. Tools::redirectAdmin(static::$currentIndex.'&token='.$this->token.'&configure='.$module->name.'&conf=12');1652\. }1653\. }</pre> </div> AdminModulesControllerCore->postProcessCallback - [line 1511 - controllers/admin/AdminModulesController.php] <div id="psTrace_4"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">1506\. }1507\. }1508\. 1509\. // Call appropriate module callback1510\. if (!isset($ppmReturn)) {<span style="color:#f20000">1511\. $this->postProcessCallback();</span>1512\. }1513\. 1514\. if ($back = Tools::getValue('back')) {1515\. Tools::redirectAdmin($back);1516\. }</pre> </div> AdminModulesControllerCore->postProcess - [line 251 - classes/controller/Controller.php] <div id="psTrace_5"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">246\. if ($this->checkAccess()) {247\. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {248\. $this->setMedia();249\. }250\. <span style="color:#f20000">251\. $this->postProcess();</span>252\. 253\. if (!empty($this->redirect_after)) {254\. $this->redirect();255\. }256\. </pre> </div> ControllerCore->run - [line 837 - classes/Dispatcher.php] <div id="psTrace_6"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">832\. if (isset($paramsHookActionDispatcher)) {833\. Hook::exec('actionDispatcher', $paramsHookActionDispatcher);834\. }835\. 836\. // Running controller<span style="color:#f20000">837\. $controller->run();</span>838\. } catch (PrestaShopException $e) {839\. $e->displayMessage();840\. }841\. }842\. </pre> </div> DispatcherCore->dispatch - [line 63 - admin/index.php] <div id="psTrace_7"> <pre style="background-color:#eafee1; border:1px solid #236b04; padding:5px">58\. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) {59\. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);60\. }61\. 62\. // Prepare and trigger admin dispatcher<span style="color:#f20000">63\. Dispatcher::getInstance()->dispatch();</span></pre> </div>
0 Traumflug Posted March 10, 2019 Posted March 10, 2019 That's the key part: /public_html/eshop/modules/lpexpress/logs): failed to open dir: Permission denied How did you put this module onto the server? By using the back office module page? Then it's weird, this problem shouldn't happen. By uploading via FTP? Then there's a good chance your FTP user isn't the same as the web server user. Remove it and use the back office page to upload the module ZIP (Menu -> Modules and Services, button Add a new module near the top right corner).
0 Ryčiokas Posted March 10, 2019 Author Posted March 10, 2019 7 hours ago, Traumflug said: That's the key part: /public_html/eshop/modules/lpexpress/logs): failed to open dir: Permission denied How did you put this module onto the server? By using the back office module page? Then it's weird, this problem shouldn't happen. By uploading via FTP? Then there's a good chance your FTP user isn't the same as the web server user. Remove it and use the back office page to upload the module ZIP (Menu -> Modules and Services, button Add a new module near the top right corner). I have used back office page to upload module. I have just tried to install it again, but same error.
0 Traumflug Posted March 11, 2019 Posted March 11, 2019 Looks like this module doesn't take care of setting up its directories properly. Directory /public_html/eshop/modules/lpexpress/log needs write permissions. Your FTP client should be able to do this. Read, write and execute permissions for the user. Also, a bug report to the module author is a good idea. Such things are easy to fix, it just has to be done.
Question
Ryčiokas
Hi,
did anyone tried to install LP Express shipping module compatible with PrestaShop in thirty bees, I am receiving error.
lpexpress install error.txt
5 answers to this question
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