Phalcon Framework 5.9.3

PDOException: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql-temptable-8f0a3-14ca85-68c48.MAI' (Errcode: 28 "No space left on device")

/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Event.php (22)
#0PDOStatement->execute
#1Phalcon\Db\Adapter\Pdo\AbstractPdo->executePrepared
#2Phalcon\Db\Adapter\Pdo\AbstractPdo->query
#3Phalcon\Db\Adapter\AbstractAdapter->fetchAll
#4Phalcon\Db\Adapter\Pdo\Mysql->describeColumns
#5Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData
#6Phalcon\Mvc\Model\MetaData->initializeMetaData
#7Phalcon\Mvc\Model\MetaData->getMetaDataUniqueKey
#8Phalcon\Mvc\Model\MetaData->readMetaData
#9Phalcon\Mvc\Model\MetaData->hasAttribute
#10Phalcon\Mvc\Model\Query->getQualified
#11Phalcon\Mvc\Model\Query->getExpression
#12Phalcon\Mvc\Model\Query->getExpression
#13Phalcon\Mvc\Model\Query->_prepareSelect
#14Phalcon\Mvc\Model\Query->parse
#15Phalcon\Mvc\Model\Query->execute
#16Phalcon\Mvc\Model::find
/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Event.php (22)
<?php
 
namespace CLSystems\PhalCMS\Lib\Helper;
 
use CLSystems\PhalCMS\Lib\Mvc\Model\Config as ConfigModel;
use CLSystems\Php\Registry;
 
class Event
{
    /** @var array */
    protected static $events = [];
 
    /** @var array */
    protected static $plugins = null;
 
    /** @var array */
    protected static $allPlugins = null;
 
    public static function getPlugins($all = false)
    {
        if (null === self::$plugins) {
            $entities = ConfigModel::find(
                [
                    'conditions' => 'context LIKE :context:',
                    'bind'       => [
                        'context' => 'cms.config.plugin.%',
                    ],
                ]
            );
 
            foreach ($entities as $entity) {
                $pluginConfig = new Registry($entity->data);
                $group = $pluginConfig->get('manifest.group');
                $name = $pluginConfig->get('manifest.name');
                $pluginClass = 'CLSystems\\PhalCMS\\Plugin\\' . $group . '\\' . $name . '\\' . $name;
 
                if (!class_exists($pluginClass)) {
                    $entity->delete();
                    continue;
                }
 
                if ($pluginConfig->get('active', false)) {
                    self::$plugins[$group][$pluginClass] = $pluginConfig;
                    self::loadPluginLanguage($group, $name);
                }
 
                self::$allPlugins[$group][$pluginClass] = $pluginConfig;
            }
        }
 
        return $all ? self::$allPlugins : self::$plugins;
    }
 
    public static function getHandler($class, Registry $config)
    {
        static $handlers = [];
 
        if (!isset($handlers[$class])) {
            if (class_exists($class)) {
                $handlers[$class] = new $class($config);
            } else {
                $handlers[$class] = false;
            }
        }
 
        return $handlers[$class];
    }
 
    public static function trigger($eventName, $arguments = [], $groups = null)
    {
        $results = [];
        $plugins = self::getPlugins();
 
        if (null === $groups) {
            $groups = array_keys($plugins);
        } elseif (is_string($groups)) {
            $groups = [$groups];
        }
 
        foreach ($groups as $group) {
            if (isset($plugins[$group])) {
                /**
                 * @var  string $class
                 * @var  Registry $config
                 */
                foreach ($plugins[$group] as $class => $config) {
                    $handler = self::getHandler($class, $config);
 
                    if (false !== $handler && is_callable([$handler, $eventName])) {
                        $results[] = call_user_func_array([$handler, $eventName], $arguments);
                    }
                }
            }
        }
 
        return $results;
    }
 
    public static function exists($group, $plugin = null)
    {
        $plugins = self::getPlugins();
 
        if (isset($plugins[$group])) {
            return null === $plugin || (is_string($plugin) && isset($plugins[$group][$plugin]));
        }
 
        return false;
    }
 
    public static function loadPluginLanguage($group, $plugin)
    {
        $langCode = Language::getActiveCode();
        $langFile = PLUGIN_PATH . '/' . $group . '/' . $plugin . '/Language/' . $langCode . '.php';
 
        if (is_file($langFile)
            && ($content = include $langFile)
        ) {
            Language::load($content, $langCode);
        }
    }
}
#17CLSystems\PhalCMS\Lib\Helper\Event::getPlugins
/var/www/html/hettapijthuis.nl/src/app/Lib/CmsApplication.php (29)
<?php
 
namespace CLSystems\PhalCMS\Lib;
 
use Phalcon\Autoload\Loader;
use Phalcon\Http\Response;
use Phalcon\Events\Event;
use Phalcon\Mvc\Application;
use Phalcon\Mvc\Dispatcher;
use Phalcon\Mvc\View;
use CLSystems\PhalCMS\Lib\Helper\Asset;
use CLSystems\PhalCMS\Lib\Helper\Config;
use CLSystems\PhalCMS\Lib\Helper\Uri;
use CLSystems\PhalCMS\Lib\Helper\State;
use CLSystems\PhalCMS\Lib\Helper\User;
use CLSystems\PhalCMS\Lib\Helper\Event as EventHelper;
use CLSystems\PhalCMS\Lib\Mvc\View\ViewBase;
use CLSystems\Php\Registry;
use MatthiasMullie\Minify;
use Exception;
 
class CmsApplication extends Application
{
    public function execute()
    {
        try {
            $eventsManager = $this->di->getShared('eventsManager');
            $eventsManager->attach('application:beforeSendResponse', $this);
            $plugins = EventHelper::getPlugins();
            $systemEvents = [
                'application:beforeSendResponse',
                'dispatch:beforeExecuteRoute',
                'dispatch:beforeException',
                'dispatch:beforeDispatch',
                'dispatch:afterDispatch',
                'dispatch:afterInitialize',
            ];
 
            foreach ($plugins['System'] as $className => $config) {
                $handler = EventHelper::getHandler($className, $config);
 
                foreach ($systemEvents as $systemEvent) {
                    $eventsManager->attach($systemEvent, $handler);
                }
            }
 
            // Update view dirs
            define('TPL_SITE_PATH', APP_PATH . '/Tmpl/Site/' . Config::get('siteTemplate', 'PhalCMS'));
            define('TPL_ADMINISTRATOR_PATH', APP_PATH . '/Tmpl/Administrator');
            define('TPL_SYSTEM_PATH', APP_PATH . '/Tmpl/System');
 
            if (Uri::isClient('site')) {
                $viewDirs = [
                    TPL_SITE_PATH . '/Tmpl/',
                    TPL_SITE_PATH . '/',
                ];
            } else {
                $viewDirs = [
                    TPL_ADMINISTRATOR_PATH . '/',
                ];
            }
 
            foreach (['System', 'Cms'] as $plgGroup) {
                if (isset($plugins[$plgGroup])) {
                    /**
                     * @var string $pluginClass
                     * @var Registry $pluginConfig
                     */
 
 
                    foreach ($plugins[$plgGroup] as $pluginClass => $pluginConfig) {
                        $pluginName = $pluginConfig->get('manifest.name');
                        $pluginPath = PLUGIN_PATH . '/' . $plgGroup . '/' . $pluginName;
                        $psrPaths = [];
 
                        if (is_dir($pluginPath . '/Tmpl')) {
                            $viewDirs[] = $pluginPath . '/Tmpl/';
                        }
 
                        if (is_dir($pluginPath . '/Lib')) {
                            $psrPaths['CLSystems\\PhalCMS\\Lib'] = $pluginPath . '/Lib';
                        }
 
                        if (is_dir($pluginPath . '/Widget')) {
                            $psrPaths['CLSystems\\PhalCMS\\Widget'] = $pluginPath . '/Widget';
                        }
 
                        if ($psrPaths) {
                            (new Loader)
                                ->setNamespaces($psrPaths, true)
                                ->register();
                        }
                    }
                }
            }
 
            $viewDirs[] = TPL_SYSTEM_PATH . '/';
 
            /** @var ViewBase $view */
            $view = $this->di->getShared('view');
            $requestUri = $_SERVER['REQUEST_URI'];
 
            if (Config::get('siteOffline') === 'Y'
                && !User::getInstance()->access('super')
            ) {
                $this->view->setMainView('Offline/Index');
 
                if (strpos($requestUri, '/user/') !== 0) {
                    $requestUri = '';
                }
            } else {
                $view->setMainView('Index');
            }
 
            $view->setViewsDir($viewDirs);
            $this->setEventsManager($eventsManager);
            $this->handle($requestUri)->send();
        } catch (Exception $e) {
            if (true === DEVELOPMENT_MODE) {
                // Let Phalcon Debug catch this
                throw $e;
            }
 
            try {
                if (User::getInstance()->access('super')) {
                    State::setMark('exception', $e);
                }
 
                /**
                 * @var Dispatcher $dispatcher
                 * @var View $view
                 */
                $dispatcher = $this->getDI()->getShared('dispatcher');
                $dispatcher->setControllerName(Uri::isClient('administrator') ? 'admin_error' : 'error');
                $dispatcher->setActionName('show');
                $dispatcher->setParams(
                    [
                        'code'    => $e->getCode(),
                        'message' => $e->getMessage(),
                    ]
                );
 
                $view = $this->getDI()->getShared('view');
                $view->start();
                $dispatcher->dispatch();
                $view->render(
                    $dispatcher->getControllerName(),
                    $dispatcher->getActionName(),
                    $dispatcher->getParams()
                );
                $view->finish();
                echo $view->getContent();
            } catch (Exception $e2) {
                debugVar($e2->getMessage());
            }
        }
    }
 
    protected function getCompressor($type)
    {
        if ('css' === $type) {
            $compressor = new Minify\CSS;
            $compressor->setImportExtensions(
                [
                    'gif' => 'data:image/gif',
                    'png' => 'data:image/png',
                    'svg' => 'data:image/svg+xml',
                ]
            );
        } else {
            $compressor = new Minify\JS;
        }
 
        return $compressor;
    }
 
    protected function compressAssets()
    {
        $basePath = PUBLIC_PATH . '/assets';
        $assets = Factory::getService('assets');
 
        foreach (Asset::getFiles() as $type => $files) {
            $fileName = md5(implode(':', $files)) . '.' . $type;
            $filePath = $basePath . '/compressed/' . $fileName;
            $fileUri = DOMAIN . '/assets/compressed/' . $fileName . (DEVELOPMENT_MODE ? '?' . time() : '');
            $hasAsset = is_file($filePath);
            $ucType = ucfirst($type);
            $addFunc = 'add' . $ucType;
 
            if ($hasAsset && !DEVELOPMENT_MODE) {
                call_user_func_array([$assets, $addFunc], [$fileUri, false]);
                continue;
            }
 
            $compressor = self::getCompressor($type);
 
            foreach ($files as $file) {
                $compressor->add($file);
            }
 
            if (!is_dir($basePath . '/compressed/')) {
                mkdir($basePath . '/compressed/', 0777, true);
            }
 
            if ($compressor->minify($filePath)) {
                chmod($filePath, 0777);
                call_user_func_array([$assets, $addFunc], [$fileUri, false]);
            }
 
            unset($compressor);
        }
    }
 
    public function beforeSendResponse(Event $event, CmsApplication $app, Response $response)
    {
        $request = $this->di->getShared('request');
 
        if ($request->isAjax()) {
            return;
        }
 
        /** @var Asset $assets */
        $this->compressAssets();
        $assets = $this->di->getShared('assets');
 
        // Compress CSS
        ob_start();
        $assets->outputCss();
        $assets->outputInlineCss();
        $content = str_replace('</head>', ob_get_clean() . '</head>', $response->getContent());
 
        // Compress JS
        ob_start();
        $assets->outputJs();
        $assets->outputInlineJs();
        $code = Asset::getCode() . ob_get_clean();
 
        // Extra code (in the footer)
        $content = str_replace('</body>', $code . '</body>', $content);
        $response->setContent($content);
    }
}
#18CLSystems\PhalCMS\Lib\CmsApplication->execute
/var/www/html/hettapijthuis.nl/public/index.php (14)
<?php
declare(strict_types=1);
 
error_reporting(E_ALL & ~E_DEPRECATED);
ini_set('display_errors', 'true');
 
use CLSystems\PhalCMS\Lib\Factory;
 
define('BASE_PATH', dirname(__DIR__));
 
require_once BASE_PATH . '/src/app/Lib/Factory.php';
 
// Execute application
Factory::getApplication()->execute();
KeyValue
_url/sitemap.xml
KeyValue
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin
TEMP/var/www/clients/client7/web33/tmp
TMPDIR/var/www/clients/client7/web33/tmp
TMP/var/www/clients/client7/web33/tmp
HOSTNAME
USERweb33
HOME/var/www/clients/client7/web33
SCRIPT_NAME/index.php
REQUEST_URI/sitemap.xml
QUERY_STRING_url=/sitemap.xml
REQUEST_METHODGET
SERVER_PROTOCOLHTTP/1.1
GATEWAY_INTERFACECGI/1.1
REDIRECT_QUERY_STRING_url=/sitemap.xml
REDIRECT_URL/sitemap.xml
REMOTE_PORT49021
SCRIPT_FILENAME/var/www/clients/client7/web33/web/index.php
SERVER_ADMINwebmaster@hettapijthuis.nl
CONTEXT_DOCUMENT_ROOT/var/www/clients/client7/web33/web
CONTEXT_PREFIX
REQUEST_SCHEMEhttps
DOCUMENT_ROOT/var/www/clients/client7/web33/web
REMOTE_ADDR216.73.217.36
SERVER_PORT443
SERVER_ADDR192.168.2.16
SERVER_NAMEhettapijthuis.nl
SERVER_SOFTWAREApache
SERVER_SIGNATURE
HTTP_HOSThettapijthuis.nl
HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT*/*
proxy-nokeepalive1
SSL_TLS_SNIhettapijthuis.nl
HTTPSon
REDIRECT_STATUS200
REDIRECT_SSL_TLS_SNIhettapijthuis.nl
REDIRECT_HTTPSon
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1794080312.8455
REQUEST_TIME1794080312
#Path
0/var/www/html/hettapijthuis.nl/public/index.php
1/var/www/html/hettapijthuis.nl/src/app/Lib/Factory.php
2/var/www/html/hettapijthuis.nl/src/app/Config/Define.php
3/var/www/html/hettapijthuis.nl/src/app/Config/Loader.php
4/var/www/html/hettapijthuis.nl/vendor/autoload.php
5/var/www/html/hettapijthuis.nl/vendor/composer/autoload_real.php
6/var/www/html/hettapijthuis.nl/vendor/composer/ClassLoader.php
7/var/www/html/hettapijthuis.nl/vendor/composer/autoload_static.php
8/var/www/html/hettapijthuis.nl/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
9/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-php80/bootstrap.php
10/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-mbstring/bootstrap.php
11/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-ctype/bootstrap.php
12/var/www/html/hettapijthuis.nl/vendor/symfony/deprecation-contracts/function.php
13/var/www/html/hettapijthuis.nl/vendor/ralouphie/getallheaders/src/getallheaders.php
14/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/psr7/src/functions_include.php
15/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/psr7/src/functions.php
16/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
17/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
18/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/promises/src/functions_include.php
19/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/promises/src/functions.php
20/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-php73/bootstrap.php
21/var/www/html/hettapijthuis.nl/vendor/symfony/string/Resources/functions.php
22/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-php72/bootstrap.php
23/var/www/html/hettapijthuis.nl/vendor/symfony/polyfill-intl-idn/bootstrap.php
24/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/guzzle/src/functions_include.php
25/var/www/html/hettapijthuis.nl/vendor/guzzlehttp/guzzle/src/functions.php
26/var/www/html/hettapijthuis.nl/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php
27/var/www/html/hettapijthuis.nl/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
28/var/www/html/hettapijthuis.nl/vendor/facebook/graph-sdk/src/Facebook/polyfills.php
29/var/www/html/hettapijthuis.nl/vendor/phalcon/dd/src/helper.php
30/var/www/html/hettapijthuis.nl/vendor/clsystems/php-registry/src/Registry.php
31/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Config.php
32/var/www/html/hettapijthuis.nl/src/app/Lib/Html/TagFactory.php
33/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Asset.php
34/var/www/html/hettapijthuis.nl/src/app/Lib/Mvc/View/ViewBase.php
35/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Volt.php
36/var/www/html/hettapijthuis.nl/src/app/Lib/CmsApplication.php
37/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Language.php
38/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/FileSystem.php
39/var/www/html/hettapijthuis.nl/src/app/Language/nl-NL/Locale.php
40/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Uri.php
41/var/www/html/hettapijthuis.nl/src/app/Language/nl-NL/nl-NL.php
42/var/www/html/hettapijthuis.nl/src/app/Lib/Helper/Event.php
43/var/www/html/hettapijthuis.nl/src/app/Lib/Mvc/Model/Config.php
44/var/www/html/hettapijthuis.nl/src/app/Lib/Mvc/Model/ModelBase.php
Memory
Usage2097152

Warning: file_put_contents(/var/www/html/hettapijthuis.nl/cache/session/sdqjajgn00ijhvbplaii2mllb6): Failed to open stream: No space left on device in Unknown on line 0

Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/www/clients/client7/web33/tmp, handler: Phalcon\Session\Adapter\Stream::write) in Unknown on line 0