We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40672
    • 2 Posts
    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. Problem zaczyna się podczas tworzenie galerii. Gdy próbuję dodać nową galerią otrzymują takie 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]

    Bardzo Was proszę o pomoc wink.