Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LP Express module

Featured Replies

  • Author

Now this:

[ThirtyBeesException]

RecursiveDirectoryIterator::__construct(/public_html/eshop/modules/lpexpress/logs): failed to open dir: Permission denied
at 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. 
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>

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).

  • Author
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.

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.