Jump to content
thirty bees forum

Question

5 answers to this question

Recommended Posts

  • 0
Posted

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>
  • 0
Posted

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
Posted
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
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...