2014-11-23 38 views
0

我終於幾乎在我的網站上安裝了Concrete5,我正在使用GoDaddy託管在Linux操作系統上,PHP版本爲5.3。安裝CMS Concrete版本5.7.2.1時出現瘋狂的「異常情況」5

鏈接到我的安裝頁面,我卡住了(顯示錯誤)是: http://texasca.com/blog/concrete5.7.2.1/index.php/install

拋出的錯誤是:

An exception occurred while executing 'INSERT INTO FileStorageLocationTypes 

    (fslTypeHandle, fslTypeName, pkgID) VALUES (?, ?, ?)' with params ["default", "Default", 0]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'default' for key 'fslTypeHandle'. 

    Trace: 
    #0 /home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(167): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'INSERT INTO Fil...', Array) #1 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(279): Doctrine\DBAL\Statement->execute() #2 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(966): Doctrine\ORM\Persisters\BasicEntityPersister->executeInserts() #3 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(335): Doctrine\ORM\UnitOfWork->executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(389): Doctrine\ORM\UnitOfWork->commit(NULL) #5 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/File/StorageLocation/Type/Type.php(93): Doctrine\ORM\EntityManager->flush() #6 /home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Package/StartingPointPackage.php(149): Concrete\Core\File\StorageLocation\Type\Type::add('default', 'Default') #7 
[internal function]: Concrete\Core\Package\StartingPointPackage->import_files() #8 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/controllers/install.php(282): call_user_func(Array) #9 [internal function]: Concrete\Controller\Install->run_routine('elemental_full', 'import_files') #10 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Controller/AbstractController.php(156): call_user_func_array(Array, Array) #11 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Routing/ControllerRouteCallback.php(25): Concrete\Core\Controller\AbstractController->runAction('run_routine', Array) #12 /home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Routing/Router.php(59): Concrete\Core\Routing\ControllerRouteCallback->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array) #13 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Support/Facade/Facade.php(116): Concrete\Core\Routing\Router->execute(Object(Concrete\Core\Routing\Route), Array) #14 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Application/Application.php(340): Concrete\Core\Support\Facade\Facade::__callStatic('execute', Array) #15 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/src/Application/Application.php(340): Concrete\Core\Support\Facade\Route::execute(Object(Concrete\Core\Routing\Route), Array) #16 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/bootstrap/start.php(196): Concrete\Core\Application\Application->dispatch(Object(Concrete\Core\Http\Request)) #17 
/home/content/31/11023231/html/blog/concrete5.7.2.1/concrete/dispatcher.php(36): require('/home/content/3...') #18 
/home/content/31/11023231/html/blog/concrete5.7.2.1/index.php(2): require('/home/content/3...') #19 {main} 

它相當嚇人的錯誤理解和解決,因爲它是如此之久,我不是SQL的專家或安裝像Concrete5這樣的CMS框架。我所做的只是讓GoDaddy用它的數據庫創建工具創建一個空白的MySQL 5.5數據庫。

我在做什麼錯?我希望這只是一個小菜鳥問題。請幫忙!

謝謝:)

回答

1

我無法評論,但我有低信譽,但我認爲這是與位於你的配置目錄中的文件site.php做。這通常會在concrete5安裝的早期階段帶來SQL的錯誤。

檢查你的site.php與去爸爸的控制面板

<?php 
define('CACHE_FRONTEND_OPTIONS', serialize(array('automatic_cleaning_factor' => 0))); 
define('DB_SERVER', 'example'); 
define('DB_USERNAME', 'example'); 
define('DB_PASSWORD', 'example.'); 
define('DB_DATABASE', 'example'); 

祝您好運

+0

的OK,我會去檢查,關於你的SQL相匹配!我會告訴你,如果有幫助,謝謝 – 2014-11-24 22:45:00

+0

@ZachCook有什麼好運氣? – Dannn 2014-11-25 09:47:22

+0

沒有運氣 - 我發現site.php文件是在具體\ single_pages \儀表板\系統\權限下,並沒有你提到的代碼。也許你使用的版本比我早,並且他們已經更改了該文件的名稱? – 2014-12-03 00:26:11