Phalcon Framework 5.8.0

TypeError: Actiage\Shared\Infraestructure\Glossaries\GlossariesFindById::get(): Argument #1 ($id) must be of type int, null given, called in /var/www/html/actiage/releases/20250117103225/src/front/Controller/Glossary/GlossariesTermsGetController.php on line 36

/var/www/html/actiage/releases/20250117093259/src/Shared/Infraestructure/Glossaries/GlossariesFindById.php (19)
#0Actiage\Shared\Infraestructure\Glossaries\GlossariesFindById->get
/var/www/html/actiage/releases/20250117103225/src/front/Controller/Glossary/GlossariesTermsGetController.php (36)
<?php
 
namespace Actiage\Front\Controller\Glossary;
 
use Actiage\Front\Controller\BaseController;
use Actiage\Shared\Infraestructure\Glossaries\GlossariesChipVisits;
use Actiage\Shared\Infraestructure\Glossaries\GlossariesFindById;
use Actiage\Shared\Lib\Utils\Text;
use Actiage\Shared\Models\Glosarios;
use Actiage\Shared\Models\GlosariosFichas;
 
/**
 * Class GlossariesTermsGetController
 */
final class GlossariesTermsGetController extends BaseController
{
    /**
     * @param string $slugGlossary
     * @param string $slugIndex
     * @return mixed|void
     */
    public function termsAction(string $slugGlossary, string $slugIndex)
    {
        $slugGlossary = filter_var($slugGlossary, FILTER_UNSAFE_RAW, FILTER_FLAG_NO_ENCODE_QUOTES);
        $glossary = Glosarios::findFirstBySlug($slugGlossary);
        if (!isset($glossary->id)) {
            $this->throw404();
        }
 
        $slugIndex = filter_var($slugIndex, FILTER_UNSAFE_RAW, FILTER_FLAG_NO_ENCODE_QUOTES);
        $tabGlossary = GlosariosFichas::findFirstBySlug($slugIndex);
        if (!isset($tabGlossary->id)) {
            $this->throw404();
        }
 
        $glossariesInputs = (new GlossariesFindById())->get($tabGlossary->id);
 
        $seoDescription = '';
        foreach ($glossariesInputs as $item) {
            if ($item->GlosariosInput->input == 'que_es') {
                $seoDescription = $item->GlosariosFichasRelaciones->input_respuesta;
            }
        }
        $params['conditions'] = 'glosario_id = ' . $glossary->id . ' AND id != ' . $tabGlossary->id;
        $params['order'] = 'nombre';
        $this->view->othersChipsRelated = GlosariosFichas::find($params);
        $this->view->glossariesInputs = $glossariesInputs;
        GlossariesChipVisits::update($tabGlossary->id);
        $this->view->glossary = $glossary;
        $this->view->titleSeo = $tabGlossary->nombre;
        $this->view->descriptionSeo = Text::truncate(strip_tags($seoDescription), 150);
        $this->view->blank = true;
        $this->view->pick('glossaries/terms');
    }
}
#1Actiage\Front\Controller\Glossary\GlossariesTermsGetController->termsAction
#2Phalcon\Dispatcher\AbstractDispatcher->callActionMethod
#3Phalcon\Dispatcher\AbstractDispatcher->dispatch
#4Phalcon\Mvc\Application->handle
/var/www/html/actiage/releases/20250117093259/public/index.php (84)
<?php
use Phalcon\Di\FactoryDefault;
use Phalcon\Logger\AbstractLogger;
use Phalcon\Logger\Adapter\Stream;
use Phalcon\Logger\Logger;
use Phalcon\Mvc\Application;
use Phalcon\Support\Debug;
 
$debug = new Debug();
$debug->listen();
error_reporting(E_ALL);
 
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/src');
 
/**
 * The FactoryDefault Dependency Injector automatically registers
 * the services that provide a full stack framework.
 */
$di = new FactoryDefault();
 
/**
 * Entornos de desarrollo disponibles y variables de entorno
 */
include APP_PATH . '/config/environment.php';
 
/**
 * Información listas en klaviyo
 */
include APP_PATH . '/config/klaviyo.php';
 
/**
 * Read services
 */
include APP_PATH . '/config/services.php';
 
/**
 * Handle routes
 */
include APP_PATH . '/config/router.php';
 
/**
 * Get config service for use in inline setup below
 */
$config = $di->get('config');
 
/**
 * Include Autoloader
 */
include APP_PATH . '/config/loader.php';
 
 
/**
 * Handle the request
 */
$application = new Application($di);
 
$application->registerModules(
    [
        'admin' => [
            'className' => Actiage\Admin\Module::class,
            'path'      => '../src/admin/Module.php',
        ],
        'doctor'  => [
            'className' => Actiage\Doctor\Module::class,
            'path'      => '../src/doctor/Module.php',
        ],
        'sponsor'  => [
            'className' => Actiage\Sponsor\Module::class,
            'path'      => '../src/sponsor/Module.php',
        ],
        'user'  => [
            'className' => Actiage\User\Module::class,
            'path'      => '../src/user/Module.php',
        ],
        'front'  => [
            'className' => Actiage\Front\Module::class,
            'path'      => '../src/front/Module.php',
        ]
    ]
);
 try {
    if(ENVIRONMENT != DEVELOPMENT) {
        echo str_replace(['\n', '\r', '\t'], '', $application->handle($_SERVER['REQUEST_URI'])->getContent());
    } else {
        echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
    }
 } catch (\Exception $e) {
    $debugFile = new Stream(BASE_PATH . '/tmp/logs/error.log');
 
    $message = get_class($e) . ': ' . $e->getMessage() . '\n' . ' File=' . $e->getFile() . '\n' . ' Line=' . $e->getLine() . '\n' . $e->getTraceAsString() . '\n';
    $message .= $_SERVER['REQUEST_URI'] . '\n';
    $logger = new Logger('errorLog', ['main' => $debugFile]);
    $logger->log(AbstractLogger::CRITICAL,$message);
    $debugFile->close();
}
 
KeyValue
_url/glosarios/terminos-medicos-en-analisis/hemoglobina
KeyValue
USERnginx
HOME/var/lib/nginx
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*/*
HTTP_HOSTactiage.es
REDIRECT_STATUS200
SERVER_NAMEactiage.es
SERVER_PORT443
SERVER_ADDR51.77.247.31
REMOTE_PORT4632
REMOTE_ADDR3.15.142.42
SERVER_SOFTWAREnginx/1.20.1
GATEWAY_INTERFACECGI/1.1
HTTPSon
REQUEST_SCHEMEhttps
SERVER_PROTOCOLHTTP/2.0
DOCUMENT_ROOT/var/www/html/actiage/current/public
DOCUMENT_URI/index.php
REQUEST_URI/glosarios/terminos-medicos-en-analisis/hemoglobina
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/glosarios/terminos-medicos-en-analisis/hemoglobina&
SCRIPT_FILENAME/var/www/html/actiage/current/public/index.php
APPLICATION_ENVproduction
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1737190453.4617
REQUEST_TIME1737190453
#Path
0/var/www/html/actiage/releases/20250117093259/public/index.php
1/var/www/html/actiage/shared/environment.php
2/var/www/html/actiage/shared/klaviyo.php
3/var/www/html/actiage/releases/20250117093259/src/config/services.php
4/var/www/html/actiage/releases/20250117093259/src/config/router.php
5/var/www/html/actiage/releases/20250117093259/src/front/router.php
6/var/www/html/actiage/releases/20250117093259/src/admin/router.php
7/var/www/html/actiage/releases/20250117093259/src/doctor/router.php
8/var/www/html/actiage/releases/20250117093259/src/user/router.php
9/var/www/html/actiage/releases/20250117093259/src/sponsor/router.php
10/var/www/html/actiage/shared/config.php
11/var/www/html/actiage/releases/20250117093259/src/config/loader.php
12/var/www/html/actiage/shared/vendor/autoload.php
13/var/www/html/actiage/shared/vendor/composer/autoload_real.php
14/var/www/html/actiage/shared/vendor/composer/platform_check.php
15/var/www/html/actiage/shared/vendor/composer/ClassLoader.php
16/var/www/html/actiage/shared/vendor/composer/autoload_static.php
17/var/www/html/actiage/shared/vendor/symfony/polyfill-mbstring/bootstrap.php
18/var/www/html/actiage/shared/vendor/symfony/polyfill-mbstring/bootstrap80.php
19/var/www/html/actiage/shared/vendor/symfony/deprecation-contracts/function.php
20/var/www/html/actiage/shared/vendor/symfony/polyfill-ctype/bootstrap.php
21/var/www/html/actiage/shared/vendor/symfony/polyfill-ctype/bootstrap80.php
22/var/www/html/actiage/shared/vendor/react/promise/src/functions_include.php
23/var/www/html/actiage/shared/vendor/react/promise/src/functions.php
24/var/www/html/actiage/shared/vendor/symfony/polyfill-php80/bootstrap.php
25/var/www/html/actiage/shared/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
26/var/www/html/actiage/shared/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
27/var/www/html/actiage/shared/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
28/var/www/html/actiage/shared/vendor/ralouphie/getallheaders/src/getallheaders.php
29/var/www/html/actiage/shared/vendor/symfony/string/Resources/functions.php
30/var/www/html/actiage/shared/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
31/var/www/html/actiage/shared/vendor/symfony/var-dumper/Resources/functions/dump.php
32/var/www/html/actiage/shared/vendor/guzzlehttp/guzzle/src/functions_include.php
33/var/www/html/actiage/shared/vendor/guzzlehttp/guzzle/src/functions.php
34/var/www/html/actiage/shared/vendor/psy/psysh/src/functions.php
35/var/www/html/actiage/shared/vendor/symfony/polyfill-php81/bootstrap.php
36/var/www/html/actiage/shared/vendor/digitalbazaar/json-ld/jsonld.php
37/var/www/html/actiage/shared/vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php
38/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/_bootstrap.php
39/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/all.php
40/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/any.php
41/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/apply.php
42/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/assoc.php
43/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/butlast.php
44/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/complement.php
45/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/compose.php
46/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/constant.php
47/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/dissoc.php
48/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/do_if.php
49/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/each.php
50/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/filter.php
51/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/filter_fresh.php
52/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/filter_null.php
53/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/first.php
54/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/flat_map.php
55/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/flatten.php
56/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/get.php
57/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/get_each.php
58/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/get_in.php
59/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/group_by.php
60/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/key.php
61/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/identity.php
62/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/instance_of.php
63/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/last.php
64/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/map.php
65/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/memoize.php
66/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/not.php
67/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/partial.php
68/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/partition.php
69/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/pipe.php
70/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/reduce.php
71/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/reindex.php
72/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/repeat.php
73/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/rest.php
74/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/reverse.php
75/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/search.php
76/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/some.php
77/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/sort.php
78/var/www/html/actiage/shared/vendor/lambdish/phunctional/src/to_array.php
79/var/www/html/actiage/shared/vendor/mpdf/mpdf/src/functions.php
80/var/www/html/actiage/shared/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
81/var/www/html/actiage/shared/vendor/ramsey/uuid/src/functions.php
82/var/www/html/actiage/releases/20250117103225/src/front/Module.php
83/var/www/html/actiage/releases/20250117103225/src/front/Controller/Glossary/GlossariesTermsGetController.php
84/var/www/html/actiage/releases/20250117103225/src/front/Controller/BaseController.php
85/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/TimeZonePlugin.php
86/var/www/html/actiage/releases/20250117093259/src/middleware/MiddleWareView.php
87/var/www/html/actiage/shared/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php
88/var/www/html/actiage/releases/20250117093259/src/Shared/library/Utils/Device.php
89/var/www/html/actiage/releases/20250117093259/src/Shared/models/Cookies.php
90/var/www/html/actiage/releases/20250117093259/src/Shared/models/ModelBase.php
91/var/www/html/actiage/releases/20250117093259/src/Shared/models/Paises.php
92/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/CommonPlugin.php
93/var/www/html/actiage/releases/20250117093259/src/Shared/library/Utils/Slug.php
94/var/www/html/actiage/releases/20250117093259/src/Shared/library/Utils/Currency.php
95/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/BotsPlugin.php
96/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/RobotsPlugin.php
97/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/RedisPlugin.php
98/var/www/html/actiage/releases/20250117093259/src/Shared/library/Utils/Image.php
99/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/JsPlugin.php
100/var/www/html/actiage/shared/vendor/matthiasmullie/minify/src/JS.php
101/var/www/html/actiage/shared/vendor/matthiasmullie/minify/src/Minify.php
102/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/CssPlugin.php
103/var/www/html/actiage/releases/20250117093259/src/Shared/models/Roles.php
104/var/www/html/actiage/releases/20250117093259/src/Shared/models/Provincias.php
105/var/www/html/actiage/releases/20250117093259/src/Shared/plugins/SeoPlugin.php
106/var/www/html/actiage/releases/20250117093259/src/Shared/models/SemaforoCritical.php
107/var/www/html/actiage/releases/20250117093259/src/Shared/models/Glosarios.php
108/var/www/html/actiage/releases/20250117093259/src/Shared/models/GlosariosFichas.php
109/var/www/html/actiage/releases/20250117093259/src/Shared/Infraestructure/Glossaries/GlossariesFindById.php
Memory
Usage2097152