Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/app/domain/services/search/DAQuery.php on line 213
Error
Error
Mako: 8.1.0, PHP: 8.1.18

ErrorException (1)

Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

Stack Trace
Environment
Database
- Error ErrorException
Location: /var/www/html/app/domain/services/search/DAQuery.php on line 213.
207
        while ($offset < $numofids) {
208
            $incrm = (($numofids - $offset) >= $this->maxNumberForRequest ? $this->maxNumberForRequest : ($numofids - $offset));
209
            $idsoffset = array_slice($ids, $offset, $incrm);
210
            $idstring = $this->getIdsString($idsoffset);
211
            $url = $da . self::api . self::person . "/" . $idstring . "/" . self::json;
212
            $c = $this->getContent($url);
213
            $rawpersons = json_decode($c);   //$this->getContent($url));
214
            if (empty($rawpersons)) {
215
                //return NULL;
216
            } else if ($getRAW === TRUE) {
217
                $persons = array_merge($persons, $rawpersons);
218
            } else {
219
                $persons = array_merge($persons, $this->getPersons($rawpersons, $getKilde));
1 Internal mako\error\ErrorHandler->mako\error\{closure}()

[internal]

os Linux hbr-deployment-6f59c5765b-rf256 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
server time 2023-05-31 19:30:43 UTC
$_SERVER
  • HTTPS

    (2) "on"
    

  • HTTP_HOST

    (10) "histreg.no"
    

  • HTTP_X_REQUEST_ID

    (32) "dc91fe12bb19c02f3b2494bf276d4521"
    

  • HTTP_X_REAL_IP

    (12) "128.39.57.53"
    

  • HTTP_X_FORWARDED_FOR

    (12) "128.39.57.53"
    

  • HTTP_X_FORWARDED_HOST

    (10) "histreg.no"
    

  • HTTP_X_FORWARDED_PORT

    (3) "443"
    

  • HTTP_X_FORWARDED_PROTO

    (5) "https"
    

  • HTTP_X_FORWARDED_SCHEME

    (5) "https"
    

  • HTTP_X_SCHEME

    (5) "https"
    

  • HTTP_USER_AGENT

    (40) "CCBot/2.0 (https://commoncrawl.org/faq/)"
    

  • HTTP_ACCEPT

    (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
    

  • HTTP_ACCEPT_LANGUAGE

    (14) "en-US,en;q=0.5"
    

  • HTTP_ACCEPT_ENCODING

    (7) "br,gzip"
    

  • PATH

    (60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    

  • SERVER_SIGNATURE

    (71) "<address>Apache/2.4.56 (Debian) Server at histreg.no Port 80</address>\n"
    

  • SERVER_SOFTWARE

    (22) "Apache/2.4.56 (Debian)"
    

  • SERVER_NAME

    (10) "histreg.no"
    

  • SERVER_ADDR

    (11) "172.20.5.30"
    

  • SERVER_PORT

    (2) "80"
    

  • REMOTE_ADDR

    (12) "172.20.3.178"
    

  • DOCUMENT_ROOT

    (13) "/var/www/html"
    

  • REQUEST_SCHEME

    (4) "http"
    

  • CONTEXT_PREFIX

    ""
    

  • CONTEXT_DOCUMENT_ROOT

    (13) "/var/www/html"
    

  • SERVER_ADMIN

    (19) "webmaster@localhost"
    

  • SCRIPT_FILENAME

    (23) "/var/www/html/index.php"
    

  • REMOTE_PORT

    (5) "53520"
    

  • GATEWAY_INTERFACE

    (7) "CGI/1.1"
    

  • SERVER_PROTOCOL

    (8) "HTTP/1.1"
    

  • REQUEST_METHOD

    (3) "GET"
    

  • QUERY_STRING

    ""
    

  • REQUEST_URI

    (34) "/index.php/person/pd00000021324106"
    

  • SCRIPT_NAME

    (10) "/index.php"
    

  • PATH_INFO

    (24) "/person/pd00000021324106"
    

  • PATH_TRANSLATED

    (37) "/var/www/html/person/pd00000021324106"
    

  • PHP_SELF

    (34) "/index.php/person/pd00000021324106"
    

  • REQUEST_TIME_FLOAT

    1685561414.3234
    

  • REQUEST_TIME

    1685561414
    

ohbr connection (0)
No database queries have been logged. Have you enabled the query log?
avis connection (0)
No database queries have been logged. Have you enabled the query log?

Fatal error: Declaration of mako\logger\Logger::addRecord(int $level, string $message, array $context = []): bool must be compatible with Monolog\Logger::addRecord(int $level, string $message, array $context = [], ?Monolog\DateTimeImmutable $datetime = null): bool in /var/www/html/vendor/mako/framework/src/mako/logger/Logger.php on line 47