![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
Dziś próbowałem skłonić zenda by pozwolił mi używać bazy do sesji ale on jednak nie chce.
Znalazłem gdzieś (chyba na forum) config który ponoć działa więc wkleiłem i pozmieniałam informacje:
Dostawałem jednak błąd że session_id, save_path to nieznane ideksy jakieś tablicy. Wtedy doczytałem (nie wiem czy dobrze bo to dziwne) że jeszcze potrzebny jest config w bootstrapie więc wklepałem:
Ale teraz odstaje komunikat że "Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'No adapter found for Zend_Session_SaveHandler_DbTable' " Połączenie z bazą i tabela z sesjami jest w 100% ok. Ten post edytował agmakonts 24.12.2010, 14:03:23 -------------------- Folio :: Blog |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Config wystarczy Tobie ten w bootstrapie.
Co do wyjątku, to musisz mieć przed uruchomieniem tego ustawiony defaultowy adapter bazy danych, lub przekazać go w configu.
-------------------- |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
w configu mam resources.db.isDefaultTableAdapter = true
-------------------- Folio :: Blog |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 243 Pomógł: 20 Dołączył: 20.04.2004 Skąd: Wielkopolska Ostrzeżenie: (0%) ![]() ![]() |
a nie chodzi czasami o kolejność, najpierw musi "wystartować połączenie" z bazą danych a później sesje.
-------------------- |
|
|
![]()
Post
#5
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
Wydawało mi się że rzeczy opisane w application.ini startują najpierw a tam połączenia z bazą jest nad ustawianiami sesjii
-------------------- Folio :: Blog |
|
|
![]()
Post
#6
|
|
![]() Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
-------------------- |
|
|
![]()
Post
#7
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
Dzięki wielkie, załapało w końcu
![]() A tak to serio nie ma siły by to trzymać w ini? -------------------- Folio :: Blog |
|
|
![]()
Post
#8
|
|
![]() Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Kod resources.session.saveHandler.options.primaryAssignment.sessionId = "session_Id"
to w końcu "sessionId" czy "session_Id" ? -------------------- |
|
|
![]()
Post
#9
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
jedno tu wkleiłem przed zmianami, teraz jest tak samo tu i tu, z bootstrapa łazi z ini pokazuje że index nieznany..... a z resztą, cały error
Kod An error occurred
Application error Exception information: Message: Zend_Session::start() - C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: session_id Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: session_id Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: save_path Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: save_path Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: name Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: name Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Db\Table\Abstract.php(Line:896): Error #8 Undefined offset: 1 Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: session_id Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: session_id Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: save_path Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: save_path Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:528): Error #8 Undefined index: name Array C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\SaveHandler\DbTable.php(Line:539): Error #8 Undefined index: name Array Stack trace: #0 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Session\Namespace.php(143): Zend_Session::start(true) #1 C:\Program Files (x86)\Zend\Apache2\htdocs\TinOuzel\application\controllers\IndexController.php(16): Zend_Session_Namespace->__construct('Testohwo') #2 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Controller\Action.php(513): IndexController->indexAction() #3 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('indexAction') #4 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #5 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #6 C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #7 C:\Program Files (x86)\Zend\Apache2\htdocs\TinOuzel\public\index.php(26): Zend_Application->run() #8 {main} Request Parameters: array ( 'controller' => 'index', 'action' => 'index', 'module' => 'default' ) -------------------- Folio :: Blog |
|
|
![]()
Post
#10
|
|
![]() Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
-------------------- |
|
|
![]()
Post
#11
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
no to jednak zostaje bootstrap bo na 1.11.1 nadal bez zmian ;/
Dzięki za cierpliwość ![]() -------------------- Folio :: Blog |
|
|
![]()
Post
#12
|
|
![]() Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Próbowałeś rozwiązań z komentarzy?
-------------------- |
|
|
![]()
Post
#13
|
|
![]() Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 20.08.2008 Skąd: Gliwice Ostrzeżenie: (0%) ![]() ![]() |
działa ale dziwnie wywala to powiadomienie o strefie co wyskakuje zawsze przy błędach ale żadnego błędu i zapisuje ładne sesje ale nie zapisuje do bazy.
Dałem se spokój ;] Ten post edytował agmakonts 26.12.2010, 00:34:27 -------------------- Folio :: Blog |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 20:05 |