davidjeddy / naabs2

Network Access And Billing System version 2 (Naabs2) is a web based interface for administering a FreeRADIUS authenticated network access service.
1 stars 3 forks source link

Fatal Error viewing transactions #16

Open guitarboy8d6 opened 8 years ago

guitarboy8d6 commented 8 years ago

Several times when I clicked the eye icon to view the past transactions on the front end. I got this or similar.

Logged in as TestUser1, a user I created, however I did not produce that transaction history,

    1. in /var/www/html/frontend/views/purchase/view.php at line 52
    43444546474849505152535455565758596061

                    'label' => 'Length of Time',
                    'value' => TimeAmountOptions::find()->where([
                        'id' => $model->getAttribute('time_amount_id')]
                    )->one()->getAttribute('key'),
                ],
                [
                    'label' => '# of Devices',
                    'value' => DeviceCountOptions::find()->where([
                        'id' => $model->getAttribute('device_count_id')]
                    )->one()->getAttribute('key'),
                ],
                'f_name',
                'l_name',
                'street_1',
                'street_2',
                'city',
                //'prov',
                [
                    'label' => 'State / Prov.',

    2. yii\base\ErrorHandler::handleFatalError()

$_GET = [
    'id' => '5',
];

$_SERVER = [
    'UNIQUE_ID' => 'VkvrK@u2dkkolhMm0roXzAAAAAo',
    'HTTP_HOST' => '10.3.2.111',
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0',
    'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5',
    'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
    'HTTP_REFERER' => 'http://10.3.2.111/index.php/purchase/index',
    'HTTP_COOKIE' => 'PHPSESSID=2vibaeij411r3v6219mmg4hrf3; _csrf=b34f7d6355b46b9aad39ecc03e41ce5c95a2b3f528f75567c1c22bb48877aa3ca%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22grrj4gUiUhNSiTcb5tQ_UT1TKeq2LNSp%22%3B%7D',
    'HTTP_CONNECTION' => 'keep-alive',
    'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
    'SERVER_SIGNATURE' => '',
    'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) PHP/5.6.8',
    'SERVER_NAME' => '10.3.2.111',
    'SERVER_ADDR' => '10.3.2.111',
    'SERVER_PORT' => '80',
    'REMOTE_ADDR' => '10.3.2.200',
    'DOCUMENT_ROOT' => '/var/www/html/frontend/web',
    'REQUEST_SCHEME' => 'http',
    'CONTEXT_PREFIX' => '',
    'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/frontend/web',
    'SERVER_ADMIN' => 'root@localhost',
    'SCRIPT_FILENAME' => '/var/www/html/frontend/web/index.php',
    'REMOTE_PORT' => '55329',
    'GATEWAY_INTERFACE' => 'CGI/1.1',
    'SERVER_PROTOCOL' => 'HTTP/1.1',
    'REQUEST_METHOD' => 'GET',
    'QUERY_STRING' => 'id=5',
    'REQUEST_URI' => '/index.php/purchase/view?id=5',
    'SCRIPT_NAME' => '/index.php',
    'PATH_INFO' => '/purchase/view',
    'PATH_TRANSLATED' => 'redirect:/index.php/view',
    'PHP_SELF' => '/index.php/purchase/view',
    'REQUEST_TIME_FLOAT' => 1447815979.8269999,
    'REQUEST_TIME' => 1447815979,
];

$_COOKIE = [
    'PHPSESSID' => '2vibaeij411r3v6219mmg4hrf3',
    '_csrf' => 'b34f7d6355b46b9aad39ecc03e41ce5c95a2b3f528f75567c1c22bb48877aa3ca:2:{i:0;s:5:"_csrf";i:1;s:32:"grrj4gUiUhNSiTcb5tQ_UT1TKeq2LNSp";}',
];
davidjeddy commented 8 years ago

You stated the issue does not happen when you have logged in as a user you created, as the transactions page is only viewable once logged in what are the steps to reproduce this error?

Please provide URL and any other user data possible. TIA