从崩溃的计算机上的文件进行站点迁移和数据库恢复尝试

问题描述 投票:0回答:1

我敢肯定,但是我通过Processwire的PHP API将RebaseData站点备份数据库从MyISAM文件转换为SQL,并且收到此响应,现在尝试访问该站点:

Fatal error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'boo_pw.pages.parent_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (in /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php line 390) #0 /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php(390): PDOStatement->execute() #1 /Users/boo/WWW/booa/wire/core/PagesLoader.php(600): ProcessWire\WireDatabasePDO->execute(Object(PDOStatement)) #2 /Users/boo/WWW/booa/wire/core/Pages.php(154): ProcessWire\PagesLoader->getById(Array) #3 /Users/boo/WWW/booa/wire/core/ProcessWire.php(335): ProcessWire\Pages->init() #4 /Users/boo/WWW/booa/wire/core/ProcessWire.php(295): ProcessWire\ProcessWire->initVar('pages', Object(ProcessWire\Pages)) #5 /Users/boo/WWW/booa/wire/core/ProcessWire.php(118): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #6 /Users/boo/WWW/booa/index.php(52): ProcessWire\ProcessWire->__const in /Users/boo/WWW/booa/index.php on line 64
Error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'boo_pw.pages.parent_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (in /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php line 390)

#0 /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php(390): PDOStatement->execute()
#1 /Users/boo/WWW/booa/wire/core/PagesLoader.php(600): ProcessWire\WireDatabasePDO->execute(Object(PDOStatement))
#2 /Users/boo/WWW/booa/wire/core/Pages.php(154): ProcessWire\PagesLoader->getById(Array)
#3 /Users/boo/WWW/booa/wire/core/ProcessWire.php(335): ProcessWire\Pages->init()
#4 /Users/boo/WWW/booa/wire/core/ProcessWire.php(295): ProcessWire\ProcessWire->initVar('pages', Object(ProcessWire\Pages))
#5 /Users/boo/WWW/booa/wire/core/ProcessWire.php(118): ProcessWire\ProcessWire->load(Object(ProcessWire\Config))
#6 /Users/boo/WWW/booa/index.php(52): ProcessWire\ProcessWire->__const

This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged.

谁能告诉我这是什么意思?

现在在nginx上,通过Laravel Valet.....。不确定我使用的是以前的MySQL版本,但我只是在这里重新安装。

我运行了SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));,现在得到:

User Error

Exception: Template 'home' is used by the homepage and thus must manage access (in /Users/boo/WWW/booa/wire/core/Templates.php line 143)

#0 [internal function]: ProcessWire\Templates->___save(Object(ProcessWire\Template))
#1 /Users/boo/WWW/booa/wire/core/Wire.php(347): call_user_func_array(Array, Array)
#2 /Users/boo/WWW/booa/wire/core/WireHooks.php(548): ProcessWire\Wire->_callMethod('___save', Array)
#3 /Users/boo/WWW/booa/wire/core/Wire.php(370): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Templates), 'save', Array)
#4 /Users/boo/WWW/booa/wire/core/Template.php(753): ProcessWire\Wire->__call('save', Array)
#5 /Users/boo/WWW/booa/wire/core/Template.php(810): ProcessWire\Template->save()
#6 /Users/boo/WWW/booa/wire/core/WireHooks.php(619): ProcessWire\Template->hookFinished(Object(ProcessWire\HookEvent))
#7 /Users/boo/WWW/booa/wire/core/Wire.php(370): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessWire), 'finished', Array)
#8 /Users/boo/WWW/booa/wire/core/ProcessWire.php(460): ProcessWire\Wire->__call('finished', Array)
#9 /Users/boo/WWW/booa/wire/core/ProcessWire.php(365): ProcessWire\ProcessWire->__call('finished', Array)
#10 /Users/boo/WWW/booa/wire/modules/Process/ProcessPageView.module(253): ProcessWire\ProcessWire->setStatus(16)
#11 [internal function]: ProcessWire\ProcessPageView->___finished()
#12 /Users/boo/WWW/booa/wire/core/Wire.php(347): call_user_func_array(Array, Array)
#13 /Users/boo/WWW/booa/wire/core/WireHooks.php(548): ProcessWire\Wire->_callMethod('___finished', Array)
#14 /Users/boo/WWW/booa/wire/core/Wire.php(370): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'finished', Array)
#15 /Users/boo/WWW/booa/index.php(56): ProcessWire\Wire->__call('finished', Array)
#16 /Users/boo/.composer/vendor/laravel/valet/server.php(158): require('/Users/boo/WWW/m...')
#17 {main} search►
Source file
File: /Users/boo/WWW/booa/index.php:64

54:        $wire->wire('process', $process); 
55:        echo $process->execute($config->internal);
56:        $config->internal ? $process->finished() : extract($wire->wire('all')->getArray());
57:        
58:    } catch(\Exception $e) {
59:        // Formulate error message and send to the error handler
60:        if($process) $process->failed($e);
61:        $wire ? $wire->trackException($e) : $config->trackException($e);
62:        $errorMessage = "Exception: " . $e->getMessage() . " (in " . $e->getFile() . " line " . $e->getLine() . ")";
63:        if($config->debug || ($wire && $wire->user && $wire->user->isSuperuser())) $errorMessage .= "\n\n" . $e->getTraceAsString();
64:        trigger_error($errorMessage, E_USER_ERROR);
65:    }
66:    
67:    
Call stack
/Users/boo/WWW/booa/index.php:64 source  trigger_error(arguments)

/Users/boo/.composer/vendor/laravel/valet/server.php:158 source  require(arguments)

另一个我也尝试过使用以前返回的近空[ProcessWire]数据库迁移的站点

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Error has been logged.

现在正在返回404 Not Found。>>

这是一个确定的目标,但是我通过RebaseData的PHP API将Processwire站点备份数据库从MyISAM文件转换为SQL,并且正在尝试立即访问该站点时收到此响应:...

php mysql migration database-migration processwire
1个回答
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.