[2] ErrorException in Archives.php line 38

Creating default object from empty value

  1. } else {
  2. $id = $diyname ? $diyname : $this->request->param('id', '');
  3. $archives = ArchivesModel::get($id);
  4. }
  5. $user = Userauthor::where('id',$archives['user_id'])->find();
  6. if(!empty($user)){
  7. $user['nickname'] = $user['nickname'] ? $user['nickname'] : '';
  8. $user['url'] = '/u/'.$user['id'].'.html';
  9. }
  10. $archives->user = $user;
  11. if (!$archives || ($archives['user_id'] != $this->auth->id && $archives['status'] != 'normal') || $archives['deletetime']) {
  12. $this->error(__('No specified article found'));
  13. }
  14. if (!$this->auth->id && !$archives['isguest']) {
  15. $this->error(__('Please login first'), 'index/user/login');
  16. }
  17. $channel = Channel::get($archives['channel_id']);
  18. if (!$channel) {
  19. $this->error(__('No specified channel found'));

Call Stack

  1. in Archives.php line 38
  2. at Error::appError(2, 'Creating default obj...', '/www/wwwroot/www.gsi...', 38, ['action' => null, 'diyname' => '1402', 'archives' => object(stdClass), ...]) in Archives.php line 38
  3. at Archives->index()
  4. at call_user_func_array([object(Archives), 'index'], []) in Route.php line 76
  5. at Route->execute('cms', 'archives', 'index')
  6. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'archives', 'index']) in App.php line 343
  7. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => '1402', 'addon' => 'cms', 'controller' => 'archives', ...]) in App.php line 470
  8. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'archives', 'action' => 'index']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/www.gsi...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.gsi24.com
PATH_INFO
/a/1402.html
REDIRECT_STATUS
200
SERVER_NAME
www.gsi24.com
SERVER_PORT
443
SERVER_ADDR
172.18.9.203
REMOTE_PORT
34232
REMOTE_ADDR
3.88.185.100
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.gsi24.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/a/1402.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/a/1402.html
SCRIPT_FILENAME
/www/wwwroot/www.gsi24.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711700288.491
REQUEST_TIME
1711700288
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.gsi24.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711700288.4913
THINK_START_MEM
393768
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.gsi24.com/thinkphp/
LIB_PATH
/www/wwwroot/www.gsi24.com/thinkphp/library/
WWW
http://www.gsi24.com
CORE_PATH
/www/wwwroot/www.gsi24.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.gsi24.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.gsi24.com/
EXTEND_PATH
/www/wwwroot/www.gsi24.com/extend/
VENDOR_PATH
/www/wwwroot/www.gsi24.com/vendor/
UPLOAD_PATH
/www/wwwroot/www.gsi24.com/public/
RUNTIME_PATH
/www/wwwroot/www.gsi24.com/runtime/
LOG_PATH
/www/wwwroot/www.gsi24.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.gsi24.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.gsi24.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.gsi24.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.gsi24.com/addons/