这是我第一次尝试安装Magento 2。
作为服务器,我正在将MAMP pro与Apache + php + Nginx + MySql一起使用
我正在下载componentDidMount()
文件,并将其带到htdocs。然后我在phpMyAdmin中创建一个componentDidMount()
然后我要去AppRouter.js
,我看到了什么?是的-这是白页,没有错误。那是什么?谁可以回答-因为这确实是我第一次使用Magento。为什么我不能安装这个?
错误:
我在php_error.log中看到的内容:
void TableView::updateTable(){
QString fields[]={"chkId","chkNome","chkCognome","chkIdArmatore","chkIdNave","chkInizioVal","chkConvalidato","chkBoardCard","chkAnnulla"};
clearSpans();
QString naviQuery=("SELECT "+cNavi+" FROM onboard.ananavi inner join anaarmatori on ananavi.navarmid=anaarmatori.armid where ananavi.navCodabb <> \" \" and anaarmatori.armCodAbb<>\" \";");
QSqlQuery navi;
navi.exec(naviQuery);
while(navi.next()){
QSqlRecord rec = navi.record();
if(rec.value("armDenominazione").toString() == (armatore)){
chkIdArmatore=rec.value("armcodabb").toString();
if(rec.value("navDescrizione") == (nave)){
chkIdNave=rec.value("navcodabb").toString();
break;
}
}
}
QSqlTableModel model;
QString risQuery = ("create table aliscafi as select "+campi+" from anacheckin where chkInizioVal like \""+data+"%\" and chkIdNave = "+chkIdNave+" and chkIdArmatore = \""+chkIdArmatore+"\"");
cout << risQuery.toUtf8().constData() << endl;
QSqlQuery risultati;
risultati.exec("drop table if exists aliscafi");
cout << risultati.exec(risQuery) << "query" << endl;
model.setTable("aliscafi");
cout << model.select()<<" select " << endl;
cout << model.rowCount()<<"rowCount"<<endl;
for(int i=0;i < model.rowCount();i++){
for(int j=0;j<nFields;j++){
cout << model.record(i).value(fields[j]).toString().toUtf8().constData() << "||" ;
}
cout <<" "<< i <<" "<< endl;
}
setModel(&model);
show();
}
答案 0 :(得分:0)
看起来像文件权限问题。
Web服务器应用程序是否有权删除/Applications/MAMP/htdocs/Mage2.2.6/var/目录中的文件?