chmod('/mnt/web115/e1/67/5647867/htdocs/cms/administrator/cache/com_jchoptimize/jchoptimizetags-92/jchoptimizetags-42/jchoptimizetags-37810cc89d4656f5655ffb08fa509bb0.tag', 0644) failed (500 Whoops, looks like something went wrong.)

ErrorException RuntimeException

HTTP 500 Whoops, looks like something went wrong.

chmod('/mnt/web115/e1/67/5647867/htdocs/cms/administrator/cache/com_jchoptimize/jchoptimizetags-92/jchoptimizetags-42/jchoptimizetags-37810cc89d4656f5655ffb08fa509bb0.tag', 0644) failed

Exceptions 2

_JchOptimizeVendor\Laminas\Cache\Exception\ RuntimeException

  1.                 throw new RuntimeException("Error writing file '{$file}'"0$err);
  2.             }
  3.             if ($permissions !== null && !chmod($file$permissions)) {
  4.                 $oct decoct($permissions);
  5.                 $err ErrorHandler::stop();
  6.                 throw new RuntimeException("chmod('{$file}', 0{$oct}) failed"0$err);
  7.             }
  8.         }
  9.         ErrorHandler::stop();
  10.         return \true;
  11.     }
  1.     private function putFileContent(string $filestring $databool $nonBlocking \false, ?bool &$wouldblock null): void
  2.     {
  3.         $options $this->getOptions();
  4.         $umask $options->getUmask();
  5.         $permissions $options->getFilePermission();
  6.         $this->filesystem->write($file$data$umask !== \false $umask null$permissions !== \false $permissions null$options->getFileLocking(), $nonBlocking$wouldblock);
  7.     }
  8.     /**
  9.      * Formats the filename, appending the suffix option
  10.      */
  11.     private function formatFilename(string $filename): string
  1.         $filespec $this->getFileSpec($key);
  2.         if (!$tags) {
  3.             $this->filesystem->delete($this->formatTagFilename($filespec));
  4.             return \true;
  5.         }
  6.         $this->putFileContent($this->formatTagFilename($filespec), implode("\n"$tags));
  7.         return \true;
  8.     }
  9.     /**
  10.      * Get tags of an item by given key
  11.      *
  1.         if ($this->getCachingEnabled()) {
  2.             $html $this->tagHtml($html);
  3.             $data = ['body' => $html'headers' => Utility::getHeaders()];
  4.             //Save an empty page using the same id then tag it
  5.             $this->taggableCache->setItem($this->cacheId'<html lang><head><title></title></head><body></body></html>');
  6.             $this->taggableCache->setTags($this->cacheId$this->getPageCacheTags());
  7.             //If tag successfully saved then save page cache
  8.             if (!empty($this->taggableCache->getTags($this->cacheId))) {
  9.                 $this->pageCacheStorage->setItem($this->cacheId$data);
  10.             }
  11.         } else {
  1.     public function onAfterRespond()
  2.     {
  3.         if ($this->enabled) {
  4.             //Still need to validate the HTMl here. We may be on a redirect.
  5.             if (Helper::validateHtml($this->app->getBody())) {
  6.                 $this->pageCache->store($this->app->getBody());
  7.             }
  8.         }
  9.     }
  10.     /**
plgSystemJchoptimizepagecache->onAfterRespond() in /mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Plugin/CMSPlugin.php (line 289)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments \array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.         // Send the application response.
  2.         $this->respond();
  3.         // Trigger the onAfterRespond event.
  4.         $this->getDispatcher()->dispatch('onAfterRespond');
  5.     }
  6.     /**
  7.      * Check if the user is required to reset their password.
  8.      *
CMSApplication->execute() in /mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php') in /mnt/web115/e1/67/5647867/htdocs/cms/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

ErrorException

chmod(): No such file or directory

  1.             }
  2.             if ($rs === \false) {
  3.                 $err ErrorHandler::stop();
  4.                 throw new RuntimeException("Error writing file '{$file}'"0$err);
  5.             }
  6.             if ($permissions !== null && !chmod($file$permissions)) {
  7.                 $oct decoct($permissions);
  8.                 $err ErrorHandler::stop();
  9.                 throw new RuntimeException("chmod('{$file}', 0{$oct}) failed"0$err);
  10.             }
  11.         }
ErrorHandler::addError()
  1.             }
  2.             if ($rs === \false) {
  3.                 $err ErrorHandler::stop();
  4.                 throw new RuntimeException("Error writing file '{$file}'"0$err);
  5.             }
  6.             if ($permissions !== null && !chmod($file$permissions)) {
  7.                 $oct decoct($permissions);
  8.                 $err ErrorHandler::stop();
  9.                 throw new RuntimeException("chmod('{$file}', 0{$oct}) failed"0$err);
  10.             }
  11.         }
  1.     private function putFileContent(string $filestring $databool $nonBlocking \false, ?bool &$wouldblock null): void
  2.     {
  3.         $options $this->getOptions();
  4.         $umask $options->getUmask();
  5.         $permissions $options->getFilePermission();
  6.         $this->filesystem->write($file$data$umask !== \false $umask null$permissions !== \false $permissions null$options->getFileLocking(), $nonBlocking$wouldblock);
  7.     }
  8.     /**
  9.      * Formats the filename, appending the suffix option
  10.      */
  11.     private function formatFilename(string $filename): string
  1.         $filespec $this->getFileSpec($key);
  2.         if (!$tags) {
  3.             $this->filesystem->delete($this->formatTagFilename($filespec));
  4.             return \true;
  5.         }
  6.         $this->putFileContent($this->formatTagFilename($filespec), implode("\n"$tags));
  7.         return \true;
  8.     }
  9.     /**
  10.      * Get tags of an item by given key
  11.      *
  1.         if ($this->getCachingEnabled()) {
  2.             $html $this->tagHtml($html);
  3.             $data = ['body' => $html'headers' => Utility::getHeaders()];
  4.             //Save an empty page using the same id then tag it
  5.             $this->taggableCache->setItem($this->cacheId'<html lang><head><title></title></head><body></body></html>');
  6.             $this->taggableCache->setTags($this->cacheId$this->getPageCacheTags());
  7.             //If tag successfully saved then save page cache
  8.             if (!empty($this->taggableCache->getTags($this->cacheId))) {
  9.                 $this->pageCacheStorage->setItem($this->cacheId$data);
  10.             }
  11.         } else {
  1.     public function onAfterRespond()
  2.     {
  3.         if ($this->enabled) {
  4.             //Still need to validate the HTMl here. We may be on a redirect.
  5.             if (Helper::validateHtml($this->app->getBody())) {
  6.                 $this->pageCache->store($this->app->getBody());
  7.             }
  8.         }
  9.     }
  10.     /**
plgSystemJchoptimizepagecache->onAfterRespond() in /mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Plugin/CMSPlugin.php (line 289)
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments \array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null) {
  7.                     return;
  8.                 }
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.         // Send the application response.
  2.         $this->respond();
  3.         // Trigger the onAfterRespond event.
  4.         $this->getDispatcher()->dispatch('onAfterRespond');
  5.     }
  6.     /**
  7.      * Check if the user is required to reset their password.
  8.      *
CMSApplication->execute() in /mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php') in /mnt/web115/e1/67/5647867/htdocs/cms/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] RuntimeException
_JchOptimizeVendor\Laminas\Cache\Exception\RuntimeException:
chmod('/mnt/web115/e1/67/5647867/htdocs/cms/administrator/cache/com_jchoptimize/jchoptimizetags-92/jchoptimizetags-42/jchoptimizetags-37810cc89d4656f5655ffb08fa509bb0.tag', 0644) failed

  at /mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php:127
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem\LocalFilesystemInteraction->write()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:1205)
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem->putFileContent()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:327)
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem->setTags()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/src/PageCache/PageCache.php:223)
  at JchOptimize\Core\PageCache\PageCache->store()
     (/mnt/web115/e1/67/5647867/htdocs/cms/plugins/system/jchoptimizepagecache/jchoptimizepagecache.php:204)
  at plgSystemJchoptimizepagecache->onAfterRespond()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Plugin/CMSPlugin.php:289)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Application/CMSApplication.php:332)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php:61)
  at require_once('/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php')
     (/mnt/web115/e1/67/5647867/htdocs/cms/index.php:32)                
[1/2] ErrorException
ErrorException:
chmod(): No such file or directory

  at /mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php:124
  at _JchOptimizeVendor\Laminas\Stdlib\ErrorHandler::addError()
  at chmod()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php:124)
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem\LocalFilesystemInteraction->write()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:1205)
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem->putFileContent()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:327)
  at _JchOptimizeVendor\Laminas\Cache\Storage\Adapter\Filesystem->setTags()
     (/mnt/web115/e1/67/5647867/htdocs/cms/administrator/components/com_jchoptimize/lib/src/PageCache/PageCache.php:223)
  at JchOptimize\Core\PageCache\PageCache->store()
     (/mnt/web115/e1/67/5647867/htdocs/cms/plugins/system/jchoptimizepagecache/jchoptimizepagecache.php:204)
  at plgSystemJchoptimizepagecache->onAfterRespond()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Plugin/CMSPlugin.php:289)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch()
     (/mnt/web115/e1/67/5647867/htdocs/cms/libraries/src/Application/CMSApplication.php:332)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php:61)
  at require_once('/mnt/web115/e1/67/5647867/htdocs/cms/includes/app.php')
     (/mnt/web115/e1/67/5647867/htdocs/cms/index.php:32)