Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: MODx - problem z modułem galerii
Forum PHP.pl > Forum > Gotowe rozwiązania
lukpio3
Witam Serdecznie.
Chciałem Was bardzo prosić o pomoc w rozwiązaniu problemu z którym nie mogę sobie od wczoraj poradzić. Chodzi o moduł galerii w systemie zarządzania treścią MODx który był przenoszony wraz ze stroną z jednego serwera na drugi. Strona działa już prawidłowo. Schody się zaczynają właśnie z modułem galerii. Problem polega na tym że po wejściu w ten moduł zdjęcia w galeriach które są już utworzone - nie wyświetlają się i drugi problem - nie można utworzyć nowej galerii. Przy dodawaniu nowej galerii, wpisuję jej nazwę, klikam utwórz galerię i wyskakują mi błędy. Mi one nic nie mówią. Może mnie jakoś naprowadzicie co ewentualnie jest nie tak. Czyżby znowu jakiś problem z bazą danych? Oto komunikaty błędów:


Undefined variable: sql (/home/users/gminaleszno/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php#228)

#0 __lambda_func(8, Undefined variable: sql, /home/users/gminaleszno/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php, 228, Array ([fields] => Array ([title] => rtrt,[miniW] => 75,[miniH] => 50,[normalW] => 200,[normalH] => 150,[galleryTemplate] => snippet.phtml,[imageTemplate] => image.phtml,[pages] => ,[hacks] => ),[intotable] => modx_gallery,[fromfields] => *,[fromtable] => ,[where] => ,[limit] => ,[flds] => (title,miniW,miniH,normalW,normalH,galleryTemplate,imageTemplate,pages,hacks) VALUES('rtrt','75','50','200','150','snippet.phtml','image.phtml','',''),[keys] => Array ([0] => title,[1] => miniW,[2] => miniH,[3] => normalW,[4] => normalH,[5] => galleryTemplate,[6] => imageTemplate,[7] => pages,[8] => hacks),[values] => Array ([0] => rtrt,[1] => 75,[2] => 50,[3] => 200,[4] => 150,[5] => snippet.phtml,[6] => image.phtml,[7] => ,[8] => ))) called at [/home/users/gminaleszno/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:228]

#1 DBAPI->insert(Array ([title] => rtrt,[miniW] => 75,[miniH] => 50,[normalW] => 200,[normalH] => 150,[galleryTemplate] => snippet.phtml,[imageTemplate] => image.phtml,[pages] => ,[hacks] => ), modx_gallery) called at [/home/users/gminaleszno/public_html/assets/modules/moduleframework/MEG_Model.php:99]

#2 MEG_Model::insert(gallery, Array ([title] => rtrt,[miniW] => 75,[miniH] => 50,[normalW] => 200,[normalH] => 150,[galleryTemplate] => snippet.phtml,[imageTemplate] => image.phtml,[pages] => ,[hacks] => )) called at [/home/users/gminaleszno/public_html/assets/modules/gallery/MEG_Model_Gallery.php:52]

#3 MEG_Model_Gallery::create(rtrt) called at [/home/users/gminaleszno/public_html/assets/modules/gallery/MEG_Module_Gallery.php:34]

#4 MEG_Module_Gallery->addAction(rtrt)

#5 ReflectionMethod->invokeArgs(MEG_Module_Gallery Object ([] => layout-manager.phtml,[availableTranslations] => Array (),[language] => en,[] => Array ([0] => /home/users/gminaleszno/public_html/assets/modules/gallery,[1] => /home/users/gminaleszno/public_html/assets/modules/moduleframework)), Array ([0] => rtrt)) called at [/home/users/gminaleszno/public_html/assets/modules/moduleframework/MEG_Module.php:138]

#6 MEG_Module->dispatch(addAction, Array ([action] => add,[a] => 112,[id] => 3,[title] => rtrt)) called at [/home/users/gminaleszno/public_html/assets/modules/moduleframework/MEG_Module.php:103]

#7 MEG_Module->dispatchAction() called at [/home/users/gminaleszno/public_html/manager/processors/execute_module.processor.php(114) : eval()'d code:3]

#8 eval() called at [/home/users/gminaleszno/public_html/manager/processors/execute_module.processor.php:114]

#9 evalModule(require_once MODX_BASE_PATH.'assets/modules/gallery/MEG_Module_Gallery.php';
$module=new MEG_Module_Gallery();
$module->dispatchAction();, Array ()) called at [/home/users/gminaleszno/public_html/manager/processors/execute_module.processor.php:101]

#10 include_once(/home/users/gminaleszno/public_html/manager/processors/execute_module.processor.php) called at [/home/users/gminaleszno/public_html/manager/index.php:548]
CapaciousCore
Musze przyznac, ze ten "trace" niezle zbija z kierunku. W tamtej linijce jest cos takiego:
  1. $rt = $this->query("INSERT INTO $intotable $flds $sql");

I aby rozwiazac (prowizorycznie) problem wystarczylo dodac:
  1. if(!isset($sql))
  2. {
  3. $sql = '';
  4. }
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2024 Invision Power Services, Inc.