# Problems accessing ccounts and some other things

**URL:** <https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 23, 2022, 6:30pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823 "2022-02-23T18:30:44Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 23, 2022, 6:30pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/1 "2022-02-23T18:30:44Z")

</div>

I have A problem accessing the account section getting this error:

```auto
 {
        return $this->encoding;
    }
 
    /**
     * Escape a string for the HTML Body context where there are very few characters
     * of special meaning. Internally this will use htmlspecialchars().
     *
     * @return string
     */
    public function escapeHtml(string $string)
    {
        return htmlspecialchars($string, $this->htmlSpecialCharsFlags, $this->encoding);
    }
 
    /**
     * Escape a string for the HTML Attribute context. We use an extended set of characters
     * to escape that are not covered by htmlspecialchars() to cover cases where an attribute
     * might be unquoted or quoted illegally (e.g. backticks are valid quotes for IE).
     *
     * @return string
     */
    public function escapeHtmlAttr(string $string)
    {
        $string = $this->toUtf8($string);
        if ($string === '' || ctype_digit($string)) {
            return $string;
        }
 
        $result = preg_replace_callback('/[^a-z0-9,\.\-_]/iSu', $this->htmlAttrMatcher, $string);
        return $this->fromUtf8($result);

```

as well as i had a blog running a while ago which wasnt working after a while, i updatet kirby and so on but somehow my blog.yml is not processed and i have no clue why. i think all problems satrted when i was implementing the multilanguage option but that also happened a while ago. Would be nice if someone could help or tell me which information is needed to solve the problems. rest of the site is working wout any problems. additinal info, im using the same blog structure on a another system which works wout any problems, only difference no multilanguage implemented

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 23, 2022, 7:30pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/2 "2022-02-23T19:30:12Z")

</div>

Hm, could you please post the error message and its stack trace?

> [@Arnold](#):
>
> i think all problems satrted when i was implementing the multilanguage option

Make sure that all content text files have the language extension, so for example `blog.en.txt` instead of `blog.txt`, otherwise Kirby will not know the right blueprint to use and fall back to the `default.yml`. If you add your languages via the Panel, Kirby takes care of this, otherwise you have to rename your files manually.

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 23, 2022, 8:12pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/3 "2022-02-23T20:12:07Z")

</div>

![16456466918512709216033242531705](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/a/a31e7f2df0a269c8f3d0e392645166904e81955d.jpeg)  
 ![16456467726443513901460879951489](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/ca7b4cbc97fb044b97a4e3c0dd724237468ec9ec.jpeg)

The yml file is in the pages folder and and when I try to get the author in the blog.php template it’s crashing as well. When I exclude that it’s working but not loading images and so on

 ![1645647002460397751469297627435](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/f/fbb3865a25eda80cfa5cd0794ce71d36267f1210.jpeg)

Statt

 ![16456470904682512933405388189968](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/f/f279f1b8eec2d63124b89dbc17653ce4ebc82c8a.jpeg)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 23, 2022, 8:30pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/4 "2022-02-23T20:30:43Z")

</div>

Thank you, but images don’t help me much. Could you please post the content of your `blog.php` template (as code, not as image)?

If I understand you correctly, the fields from `blog.yml` are not shown when you open the blog page in the panel. What do you get instead, the default.yml blueprint?

The “page is crashing” information is not very helpful. You should usually see an error, if not, enable debugging in the `/site/config/config.php` file.[debug | Kirby CMS](https://getkirby.com/docs/reference/system/options/debug), and then post the error message here.

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 23, 2022, 9:35pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/5 "2022-02-23T21:35:32Z")

</div>

```auto
<div class="card-footer">
            <?php if ($author = $article->author()->toUser()): ?>
            <?php endif ?>
            <p class="post-meta">Posted by <font color="#f27405">|</font> <?php echo $author->name() ?> <br>
              Date <font color="#f27405">|</font> <?= $article->date()->toDate('d F Y') ?>
            </p>
</div>

```

this section is responsible for the crash

Call to a member function name() on null

is the error

and i get

## Column (1/1)

No sections yet

from that:

```auto
title: Superblog
icon: 📚

# Page options allow you to control how users can interact with the page.
# Here we prevent changing the page slug and page deletion
# More about page options: https://getkirby.com/docs/reference/panel/blueprints/page#options
options:
  changeSlug: false
  delete: false

columns:
    width: 1/2
    sections:
      drafts:
        extends: sections/articles
        headline: Entwürfe
        status: draft
      unlisted:
        extends: sections/articles
        headline: In Review
        status: unlisted  
        
      meta:
        type: fields
        fields:  
          intro:
            label: Introtext
            type: textarea
            size: small
          cover:
            type: files
            headline: Cover
            layout: cards
            info: "{{ file.dimensions }}"
            template: cover
            min: 0
            max: 1
          somepic:
            type: files
            headline: Cover
            layout: cards
            info: "{{ file.dimensions }}"
            template: cover
            min: 0
            max: 1
          

    width: 1/2
    sections:
      listed:
        extends: sections/articles
        headline: Published
        status: listed

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 23, 2022, 10:41pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/6 "2022-02-23T22:41:24Z")

</div>

> [@Arnold](#):
>
> ```auto
> <div class="card-footer">
> <?php if ($author = $article->author()->toUser()): ?>
> <?php endif ?>
> <p class="post-meta">Posted by <font color="#f27405">|</font> <?php echo $author->name() ?> <br>
> Date <font color="#f27405">|</font> <?= $article->date()->toDate('d F Y') ?>
> </p>
> </div>
> 
> ```

The if statement doesn’t make sense. The endif should appear after:

```auto
<div class="card-footer">
  <?php if ($author = $article->author()->toUser()): ?>
    <p class="post-meta">Posted by <font color="#f27405">|</font> <?php echo $author->name() ?> <br>
              Date <font color="#f27405">|</font> <?= $article->date()->toDate('d F Y') ?>
    </p>
  <?php endif ?>
</div>
```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 23, 2022, 10:47pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/7 "2022-02-23T22:47:27Z")

</div>

As regards the blueprint, the indentation seems to be wrong.

```auto
columns:
  width: 1/2
    sections:
      drafts:
        extends: sections/articles
        headline: Entwürfe
        status: draft
      unlisted:
        extends: sections/articles
        headline: In Review
        status: unlisted

```

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 24, 2022, 12:10am UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/8 "2022-02-24T00:10:05Z")

</div>

> [@texnixe](#):
>
> ```auto
> columns:
> width: 1/2
> sections:
> drafts:
> extends: sections/articles
> headline: Entwürfe
> status: draft
> unlisted:
> extends: sections/articles
> headline: In Review
> status: unlisted
> 
> ```

oh yes thx that worked, strange how taht could happen maybe a copy mistake 🙂

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 24, 2022, 10:10am UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/9 "2022-02-24T10:10:49Z")

</div>

Ok i found another problem, i was using the editor so my articels are not recognized at the moment, just if i creat new ones, guess that has to do with some formating of the file but ll find out a workarroud, thx for the help the rest is working meanwhile 🙂

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 24, 2022, 7:57pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/10 "2022-02-24T19:57:24Z")

</div>

hi, i fixed everything so far a bit of damage was done by the editor i used before which is not longer supported. there is still the problem taht i cant enter the user section in the panel it crashes with:

TypeError

Argument 1 passed to Laminas\Escaper\Escaper::escapeHtml() must be of the type string, null given, called in /home/redhaabb/ktest.redhammer.at/kirby/src/Toolkit/Escape.php on line 104

```auto
{
        return $this->encoding;
    }
 
    /**
     * Escape a string for the HTML Body context where there are very few characters
     * of special meaning. Internally this will use htmlspecialchars().
     *
     * @return string
     */
    public function escapeHtml(string $string)
    {
        return htmlspecialchars($string, $this->htmlSpecialCharsFlags, $this->encoding);
    }
 
    /**
     * Escape a string for the HTML Attribute context. We use an extended set of characters
     * to escape that are not covered by htmlspecialchars() to cover cases where an attribute
     * might be unquoted or quoted illegally (e.g. backticks are valid quotes for IE).
     *
     * @return string
     */
    public function escapeHtmlAttr(string $string)
    {
        $string = $this->toUtf8($string);
        if ($string === '' || ctype_digit($string)) {
            return $string;
        }
 
        $result = preg_replace_callback('/[^a-z0-9,\.\-_]/iSu', $this->htmlAttrMatcher, $string);
        return $this->fromUtf8($result);

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 24, 2022, 8:48pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/11 "2022-02-24T20:48:38Z")

</div>

Is there any stacktrace for the error? Check your browser console and the php error logs.

Which version of Kirby are you using (exact version number)?

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 25, 2022, 3:59pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/12 "2022-02-25T15:59:37Z")

</div>

first of all i updatet to the newest 3.6.2

/media/panel/99a345cdf5e5dc02cf40bb11746da4ae/js/index.js:1 GET [Kirby Panel](https://www.redhammer.at/panel/users?language=de) 500 sagt das browser panel

might it be possible that there is also some confligt with the multilanguage implementation ? Do i need to adapt some config fiels or anything ?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 25, 2022, 4:02pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/13 "2022-02-25T16:02:10Z")

</div>

Whenever you update, remove the media folder first, clear the `/site/sessions` folder and make sure to clear your browser cache.

If your issue persists, please provide an error description with exact steps to reproduce the error.

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 25, 2022, 6:06pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/14 "2022-02-25T18:06:24Z")

</div>

its simple to reproduce it.  
i can login to the panel, i click in the left upper corner on the menue point Accounts and geht following error:

Argument 1 passed to Laminas\Escaper\Escaper::escapeHtml() must be of the type string, null given, called in /home/redhaabb/ktest.redhammer.at/kirby/src/Toolkit/Escape.php on line 104

4

TypeError

…/vendor/laminas/laminas-escaper/src/Escaper.php180

23

Laminas\Escaper\Escaper escapeHtml

…/src/Toolkit/Escape.php104

22

Kirby\Toolkit\Escape html

…/config/areas/users/views.php44

21

Kirby\Http\Route {closure}

[internal]0

20

array\_map

…/src/Toolkit/Collection.php1142

19

Kirby\Toolkit\Collection values

…/config/areas/users/views.php45

18

Kirby\Http\Route {closure}

…/src/Toolkit/A.php48

17

Kirby\Toolkit\A Kirby\Toolkit{closure}

[internal]0

16

array\_walk\_recursive

…/src/Toolkit/A.php50

15

Kirby\Toolkit\A apply

…/src/Panel/View.php234

14

Kirby\Panel\View Kirby\Panel{closure}

…/src/Toolkit/A.php48

13

Kirby\Toolkit\A Kirby\Toolkit{closure}

[internal]0

12

array\_walk\_recursive

…/src/Toolkit/A.php50

11

Kirby\Toolkit\A apply

…/src/Panel/View.php434

10

Kirby\Panel\View response

…/src/Panel/Panel.php276

9

Kirby\Panel\Panel response

…/src/Panel/Panel.php333

8

Kirby\Panel\Panel Kirby\Panel{closure}

…/src/Http/Router.php109

7

Kirby\Http\Router call

…/config/helpers.php647

6

router

…/src/Panel/Panel.php337

5

Kirby\Panel\Panel router

…/config/routes.php101

4

Kirby\Http\Route {closure}

[internal]0

3

Closure call

…/src/Http/Router.php111

2

Kirby\Http\Router call

…/src/Cms/App.php345

1

Kirby\Cms\App call

…/src/Cms/App.php1115

0

Kirby\Cms\App render

/home/redhaabb/ktest.redhammer.at/index.php5

and in might be a problem in line 180 of the **kirby/vendor/laminas/laminas-escaper/src/Escaper.php**

```auto
     */
    public function escapeHtml(string $string)

```

```auto
{
        return $this->encoding;
    }
 
    /**
     * Escape a string for the HTML Body context where there are very few characters
     * of special meaning. Internally this will use htmlspecialchars().
     *
     * @return string
     */
    public function escapeHtml(string $string)
    {
        return htmlspecialchars($string, $this->htmlSpecialCharsFlags, $this->encoding);
    }
 
    /**
     * Escape a string for the HTML Attribute context. We use an extended set of characters
     * to escape that are not covered by htmlspecialchars() to cover cases where an attribute
     * might be unquoted or quoted illegally (e.g. backticks are valid quotes for IE).
     *
     * @return string
     */
    public function escapeHtmlAttr(string $string)
    {
        $string = $this->toUtf8($string);
        if ($string === '' || ctype_digit($string)) {
            return $string;
        }
 
        $result = preg_replace_callback('/[^a-z0-9,\.\-_]/iSu', $this->htmlAttrMatcher, $string);
        return $this->fromUtf8($result);

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 25, 2022, 6:18pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/15 "2022-02-25T18:18:10Z")

</div>

> [@Arnold](#):
>
> Kirby\Toolkit\Escape html
> 
> …/config/areas/users/views.php44

This line is calling `$user->username()` which should return either the user email or the user name. This should never be null, the question is why that happens here. Looks like there is something wrong with your user accounts.

Try removing the accounts and create a new admin by calling `panel/install`. If you are not on localhost, you will have to make the panel installable on remote in your config.

---

<div class="post-metadata">

**Author:** ![Arnold](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold](https://forum.getkirby.com/u/Arnold)\
**Post date:** [February 25, 2022, 6:27pm UTC](https://forum.getkirby.com/t/problems-accessing-ccounts-and-some-other-things/24823/16 "2022-02-25T18:27:55Z")

</div>

OMG what a super akward error, somehow another folder landed in the user folder and i have no idea how and when that happened. of course that created an error causer ther where no user credential files in that folder just some php-files. i just deleted it and everything works fine again. thx very much
