TOKUDAN’S

Webサイト構築エラー日誌

PHP Fatal error:とFatal error:

 PHP Fatal error: Class 'PluginScheduleTable' not found in /home/xxx/xxx.xxx/openpne/lib/model/doctrine/opCalendarPlugin/ScheduleTable.class.php on line 9

 

 Fatal error: Class 'PluginScheduleTable' not found in /home/xxx/xxx.xxx/openpne/lib/model/doctrine/opCalendarPlugin/ScheduleTable.class.php on line 9

 

ScheduleTable.class.php

 <?php

/**
* ScheduleTable
*
* This class has been auto-generated by the Doctrine ORM Framework
*/
class ScheduleTable extends PluginScheduleTable
{
/**
* Returns an instance of this class.
*
* @return ScheduleTable The table instance
*/
public static function getInstance()
{
return Doctrine_Core::getTable('Schedule');
}
}

 

SQLSTATE[HY000]: General error: の記録

f:id:tokudan:20200604000729g:plain

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint. Failing Query: "ALTER TABLE schedule_resource ADD CONSTRAINT schedule_resource_resource_type_id_resource_type_id FOREIGN KEY (resource_type_id) REFERENCES resource_type(id) ON DELETE SET NULL". Failing Query: ALTER TABLE schedule_resource ADD CONSTRAINT schedule_resource_resource_type_id_resource_type_id FOREIGN KEY (resource_type_id) REFERENCES resource_type(id) ON DELETE SET NULL

 ./symfony openpne:migrate --target=opTagPlugin

上記を実行すると表示されるメッセージ。

Invalid argument supplied for foreach() …対処方法

Invalid argument supplied for foreach() …のエラーファイルの行を見つけて

(array)を付ける

 

foreach ($config as $key => $value)

     ↓

foreach ((array)$config as $key => $value)

 

参考にしたサイト

kotori-blog.com

501 Not Implemented アクセスしようとしたページは表示できませんでした。

f:id:tokudan:20200523140611g:plain

エックスサーバーのWordPressで記事を書いていたら501 Not Implemented が表示されました。

 

対策(エックスサーバーの場合)

「契約情報」→「サーバーのご契約「詳細」」→「サーバー管理」→「設定対象ドメインを選んで「設定」」→セキュリティの「WAF設定」→コマンド対策を「OFF」

 

ページ読み込みエラー

ページの自動転送設定が正しくありません

〇〇.〇〇への接続中にエラーが発生しました。

Cookie を無効化したり拒否していることにより、この問題が発生している可能性もあります。

 

昔、使用していたドメインWordPressを簡単インストールを行ったらエラーメッセージが・・・