ご利用のサーバ: ミニム
MODXのバージョン: 1.0.6J-r5 (1.0.6J-r3からアップデート)
PHPのバージョン: 5.3.13
MySQLのバージョン: 5.5.24-log
ブラウザ: FireFox
-----
もともと、MaxiGalleryをサーバーにインストール時に、DBが作成されないエラーがでたので、
他の制作サイトからMaxiGalleryのDBをエクスポートし、それをインポートして利用できるようになった経緯があります。
この方法がまずかったのか、1.0.6J-r3から、1.0.6J-r5にバージョンアップをしたら、MaxiGalleryがエラーで表示されなくなりました。
■今回の見れなくなったエラーメッセージ
コード: 全て選択
イベントID 0
ソース Snippet - MaxiGallery
日付 2012/08/10 11:52:41
Undefined index: a
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error : Invalid argument supplied for foreach()
ErrorType[num] : WARNING[2]
File : /home/sites/tomo/web/assets/snippets/maxigallery/maxigallery.class.inc.php
Line : 796
Source : foreach ($modx->documentMap as $mapEntry) {
Basic info
REQUEST_URI : /gallery.html
Resource : [4]ギャラリー
Current Snippet : MaxiGallery
Referer : http://×××/contact.html
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
IP : 117.55.68.27
Parser timing
MySQL : 0.0009 s (6 Requests)
PHP : 0.0435 s
Total : 0.0443 s
Backtrace
1 executeParser() index.php on line 135
2 prepareResponse() manager/includes/document.parser.class.inc.php on line 273
3 outputContent() manager/includes/document.parser.class.inc.php on line 364
4 parseDocumentSource() manager/includes/document.parser.class.inc.php on line 395
5 evalSnippets() manager/includes/document.parser.class.inc.php on line 1909
6 _get_snip_result() manager/includes/document.parser.class.inc.php on line 1450
7 evalSnippet() manager/includes/document.parser.class.inc.php on line 1534
8 eval() manager/includes/document.parser.class.inc.php on line 1383
9 include() manager/includes/document.parser.class.inc.php(1383) : eval()'d code on line 89
10 getAllSubDocuments() assets/snippets/maxigallery/maxigallery.php on line 840
11 getChildIds() assets/snippets/maxigallery/maxigallery.class.inc.php on line 745
modx本体のインストール時や、他のスニペットインストール時にパーミッションのエラーがたびたび出て、パーミッションを手動で変更するとインストールできるという状況だったので、これらのことも関係しているのでしょうか?
またサーバーとの相性ということであれば、サーバー変更も視野にいれています。
解決方法があればご教授お願いします。
■念のためにMaxiGalleryインストール時にDB作成できなかったエラーも書いておきます
コード: 全て選択
イベントID 0
ソース Parser
日付 2012/07/10 09:24:37
ユーザー -
≪ MODX Parse Error ≫
MODX encountered the following error while attempting to parse the requested resource:
≪ Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line 12 ≫
SQL:CREATE TABLE `db_tomo_2`.modx_maxigallery ( `id` int(10) unsigned NOT NULL auto_increment, `gal_id` int(10) unsigned NOT NULL, `filename` tinytext NOT NULL, `title` text NOT NULL, `date` datetime NOT NULL, `descr` text default NULL, `pos` int(10) default NULL, `own_id` int(10) default NULL, `hide` int(1) default 0, PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ;
Basic info
REQUEST_URI: /gallery.html
ID: 4
Current Snippet: MaxiGallery
Referer: http://×××/manager/index.php?a=1&f=tree
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Parser timing
MySQL: 0.0016 s (14 Requests)
PHP: 0.0361 s
Total: 0.0377 s
# call path
1 messageQuit() manager/includes/extenders/dbapi.mysql.class.inc.php on line 191
2 query() assets/snippets/maxigallery/maxigallery.class.inc.php on line 55
3 createTable() assets/snippets/maxigallery/maxigallery.php on line 243
4 include() manager/includes/document.parser.class.inc.php(1302) : eval()'d code on line 89
5 eval() manager/includes/document.parser.class.inc.php on line 1302
6 evalSnippet() manager/includes/document.parser.class.inc.php on line 1441
7 _get_snip_result() manager/includes/document.parser.class.inc.php on line 1365
8 evalSnippets() manager/includes/document.parser.class.inc.php on line 1763
9 parseDocumentSource() manager/includes/document.parser.class.inc.php on line 362
10 outputContent() manager/includes/document.parser.class.inc.php on line 333
11 prepareResponse() manager/includes/document.parser.class.inc.php on line 238
12 executeParser() index.php on line 131