UJP - Cake/Core/Object.php on line 18 Fatal Error Error: Cannot use 'object' as class name as it is reserved in

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ MacBook の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - Cake/Core/Object.php on line 18 Fatal Error Error: Cannot use 'object' as class name as it is reserved in

Cake/Core/Object.php on line 18 Fatal Error Error: Cannot use 'object' as class name as it is reserved in

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/18 1:07
 NetCommons3をインストルしようとしたのだけれど,エラーが.
$ cd /netcommons/htdocs/app/Console🆑
$ ./cake install.install🆑
---------------------------------------------------------------
NetCommons Install
---------------------------------------------------------------
[S]tart
[H]elp
[Q]uit
What would you like to do? (S/H/Q)
[Q] > S🆑
Please entry base url.
> netcommons.test.jp🆑
Current language? (en/ja)
[ja] > ja🆑
Success: PHP(7.2.17) 正常
Success: pdo_mysql(7.2.17) 正常
Database configuration's datasource? (Mysql)
[Mysql] >🆑
Database configuration's host?
[localhost] >🆑
Database configuration's port?
[3306] >🆑
Database configuration's database?
[nc3] >🆑
Database configuration's prefix?
[] >🆑
Database configuration's login?
> root🆑
Database configuration's password?
> password🆑
2019-04-14 14:35:29 Info: DB Connected
2019-04-14 14:35:29 Info: Database nc3 for Database/Mysql created successfully
2019-04-14 14:35:29 Info: [Migrations.migration] Start migrating all plugins
2019-04-14 14:35:29 Info: [migration] Start migrating "Files" for master connection
2019-04-14 14:35:29 Info: [migration]   cd /netcommons/htdocs/app &&
 Console/cake Migrations.migration run all -p Files -c master -i master 2>&1
2019-04-14 14:35:30 Info: [migration]   Cake Migration Shell
2019-04-14 14:35:30 Info: [migration]   -------------------------------------------
--------------------
2019-04-14 14:35:30 Info: [migration]   PHP Fatal error:
  Cannot use 'object' as class name as it is reserved in
 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php on line 18
2019-04-14 14:35:30 Info: [migration]   Fatal Error Error: Cannot use 'object'
 as class name as it is reserved in [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:30 Info: [migration]
2019-04-14 14:35:30 Info: [migration]   2019-04-14 14:35:30 Error: Cannot use
 'object' as class name as it is reserved in [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:30 Info: [migration]
2019-04-14 14:35:30 Info: [migration] Failure migrated "Files" for master connection
2019-04-14 14:35:30 Info: [migration] Start migrating "Users" for master connection

〜略〜

2019-04-14 14:35:42 Info: [migration]
   2019-04-14 14:35:42 Error: Cannot use 'object' as class name as it is reserved in
 [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:42 Info: [migration]
2019-04-14 14:35:42 Info: [migration] Failure migrated "Wysiwyg" for master connection
Error: SQLSTATE[42S02]: Base table or view not found: 1146 Table
 'nc3.site_settings' doesn't exist
#0
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/DboSource.php(502):
 PDOStatement->execute(Array)
#1 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/Database/Mysql.php
(348): DboSource->_execute('SHOW FULL COLUM...')
#2 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Model.php(1397):
 Mysql->describe(Object(SiteSetting))
#3 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/DboSource.php(2199):
 Model->schema()
#4 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/Database/Mysql.php
(409): DboSource->_prepareUpdateFields(Object(SiteSetting), Array, false, true)
#5 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Model.php(2672):
 Mysql->update(Object(SiteSetting), Array, NULL, Array)
#6 /netcommons/htdocs/app/Plugin/Install/Utility/InstallUtil.php(616):
 Model->updateAll(Array, Array)
#7 /netcommons/htdocs/app/Plugin/Install/Console/Command/Task/InstallMigrationsTask.php(48):
 InstallUtil->installMigrations('master', Array)
#8 /netcommons/htdocs/app/Plugin/Install/Console/Command/InstallShell.php(90):
 InstallMigrationsTask->execute()
#9 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/Shell.php(462):
 InstallShell->main()
#10 
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(219):
 Shell->runCommand(NULL, Array)
#11 
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(66):
 ShellDispatcher->dispatch()
#12 /netcommons/htdocs/app/Console/cake.php(35): ShellDispatcher::run(Array)
#13 {main}
$
 これはNetCommons3が使っているフレームワーク,CakePHP2のクラス名が重複してしまっているからだそうです.  これは,次のファイルを編集.
app/Plugin/Migrations/Lib/CakeMigration.php
 この変更.
  1 <?php
  2 /**
  3  * Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
  4  *
  5  * Licensed under The MIT License
  6  * Redistributions of files must retain the above copyright notice.
  7  *
  8  * @copyright Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
  9  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 10  */
 11
 12 App::uses('CakeSchema', 'Model');
 13
 14 /**
 15  * Base Class for Migration management
 16  */
 17 class CakeMigration extends CakeObject { 🈁 ObjectからCakeObjectに変更した
 18
 19 /**
 インストールをリトライしてみる.
2019-04-15 13:37:19 Info: [bower] Successfully bower install angular-nvd3#>=0.1.1 for Registrations
2019-04-15 13:37:19 Info: [bower] Start bower install visualcaptcha.jquery#>=0.0.5 for VisualCaptcha
sh: --allow-root: command not found
<?php
2019-04-15 13:37:19 Info: [bower] Successfully bower install visualcaptcha.jquery#>=0.0.5 for VisualCaptcha
2019-04-15 13:37:19 Info: [bower] Start bower install components/MathJax#>=2.6 for Wysiwyg
sh: --allow-root: command not found
2019-04-15 13:37:19 Info: [bower] Successfully bower install components/MathJax#>=2.6 for Wysiwyg
2019-04-15 13:37:19 Info: [bower] Start bower install jquery.simplePagination#* for Wysiwyg
sh: --allow-root: command not found
2019-04-15 13:37:19 Info: [bower] Successfully bower install jquery.simplePagination#* for Wysiwyg
NetCommons Login id?
> administrator🆑
NetCommons Login password?
> password🆑
Actival languages? (en,ja/en/ja)
[ja] > ja🆑
<?php
Warning Error: get_class() expects parameter 1 to be object, null given in
 [/netcommons/htdocs/app/Plugin/Auth/Model/AutoUserRegistMail.php, line 54]

2019-04-15 13:38:32 Warning: get_class() expects parameter 1 to be object, null given in
 [/netcommons/htdocs/app/Plugin/Auth/Model/AutoUserRegistMail.php, line 54]
Install success.
$
 いくつかワーニングは出ているけれど,インストールはできた模様.

トラックバック


広告スペース
Google