Error reordering menu in gantry Hydrogen (v5.4.22 / g5_hydrogen)


#1

Hi:

I’ve several Grav sites running very well. But, in one in particular, I tried an usual operation, reorder the menu options, and when I press Save Menu, I get the error:

Whoops \ Exception \ ErrorException (E_ERROR)
Call to a member function rawRoute() on null

Whoops\Exception\ErrorException
…/system/src/Grav/Common/Page/Page.php1749

{
unset($this->route);
unset($this->slug);
}

/**
 * Gets and Sets the page raw route
 *
 * @param null $var
 *
 * @return null|string
 */
public function rawRoute($var = null)
{
    if ($var !== null) {
        $this->raw_route = $var;
    }

    if (empty($this->raw_route)) {
        $baseRoute = $this->parent ? (string)$this->parent()->rawRoute() : null;

        $slug = $this->adjustRouteCase(preg_replace(PAGE_ORDER_PREFIX_REGEX, '', $this->folder));

        $this->raw_route = isset($baseRoute) ? $baseRoute . '/' . $slug : null;
    }

    return $this->raw_route;
}

/**
 * Gets the route aliases for the page based on page headers.
 *
 * @param  array $var list of route aliases
 *
 * @return array  The route aliases for the Page.
 */
public function routeAliases($var = null)
{
    if ($var !== null) {
        $this->routes['aliases'] = (array)$var;

Any hint will be appreciated.

Thanks.


#2

I’m the only person having this issue?