Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii2-debug has bug? #10873

Closed
xjdata opened this issue Feb 16, 2016 · 3 comments
Closed

yii2-debug has bug? #10873

xjdata opened this issue Feb 16, 2016 · 3 comments

Comments

@xjdata
Copy link

xjdata commented Feb 16, 2016

when i click
http://localhost/debug/default/view?panel=log&tag=56c3874981625&panel=log
or
http://localhost/debug/default/view?panel=log&tag=56c3874981625&panel=mail
Yii Framework/2.0.7

PHP Notice – yii\base\ErrorException

Undefined index: id

1. in /data/wwwroot/web/vendor/yiisoft/yii2/data/Sort.php at line 213
* @param boolean $recalculate whether to recalculate the sort directions
     * @return array the columns (keys) and their corresponding sort directions (values).
     * This can be passed to [[\yii\db\Query::orderBy()]] to construct a DB query.
     */
    public function getOrders($recalculate = false)
    {
        $attributeOrders = $this->getAttributeOrders($recalculate);
        $orders = [];
        foreach ($attributeOrders as $attribute => $direction) {
            $definition = $this->attributes[$attribute];
            $columns = $definition[$direction === SORT_ASC ? 'asc' : 'desc'];
            foreach ($columns as $name => $dir) {
                $orders[$name] = $dir;
            }
        }

        return $orders;
    }

i don't edit any files of path /data/wwwroot/web/vendor/yiisoft/

i try rm -rf /vendor/* && clear composer all cachefile && composer update.

still error

but

http://localhost/debug/default/view?panel=log&tag=56c3874981625&panel=config // /request/profiling/db/assets

it's work fine

@samdark
Copy link
Member

samdark commented Feb 16, 2016

Is it OK when 2.0.6 is used?

@xjdata
Copy link
Author

xjdata commented Feb 16, 2016

no.

@yii-bot
Copy link

yii-bot commented Feb 16, 2016

Issue moved to yiisoft/yii2-debug#85

@yii-bot yii-bot closed this as completed Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants