Buona sera a tutti.
Mi chiamo Patrizia e sono nuova di questo forum.
Sto realizzando un sito Ecommerce seguendo il libro/guida di Apress(Beginning.PHP.and.MySQL.E.Commerce) ed ho riscontrato un errore che, come ho potuto capire mediante ricerche sul web ,è stato riscontrarto da tutti ,o quasi, gli utenti che come me hanno seguito questa guida.
L'errore è il seguente :
Codice PHP:
ERRNO: 256 TEXT: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. LOCATION: C:\tshirtshop\business\database_handler.php, line 101, at March 25, 2010, 6:09 pm Showing backtrace: trigger_error("SQLSTATE[HY000]: General error: 2014 Cannot execute queries whil...", "256") # line 101, file: C:\tshirtshop\business\database_handler.php DatabaseHandler.GetAll("CALL catalog_get_departments_list()") # line 14, file: C:\tshirtshop\business\catalog.php Catalog.GetDepartments() # line 23, file: C:\tshirtshop\presentation\departments_list.php DepartmentsList.init() # line 16, file: C:\tshirtshop\presentation\smarty_plugins\function.load_presentation_object.php smarty_function_load_presentation_object(Array[2], Object: Application) # line 5, file: C:\tshirtshop\presentation\templates_c\%%A5^A5A^A5A1C73D%%departments_list.tpl.php include("C:\tshirtshop\presentation\templates_c\%%A5^A5A^A5A1C73D%%depart...") # line 1889, file: C:\tshirtshop\libs\smarty\Smarty.class.php Smarty._smarty_include(Array[2]) # line 44, file: C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_front.tpl.php include("C:\tshirtshop\presentation\templates_c\%%41^412^412F4E3D%%store_...") # line 1276, file: C:\tshirtshop\libs\smarty\Smarty.class.php Smarty.fetch("store_front.tpl", null, null, true) # line 1126, file: C:\tshirtshop\libs\smarty\Smarty.class.php Smarty.display("store_front.tpl") # line 25, file: C:\tshirtshop\index.php
qualcuno che come me si è trovato davanti a questo problema, è riuscito a risolvere questo bug??
Grazie a tutti
Patrizia