meu sistema nao funciona mais

20 views
Skip to first unread message

Adriano Barreto

unread,
Aug 31, 2023, 7:25:53 AM8/31/23
to zfbr...@googlegroups.com
pessoal, do nada meu sistema parou de funcionar, acho q atualizou a versao do php, alguem tem uma luz de como corrigir isso

eu pesquisei na internet e fala que é a versao do php mesmo

por exemplo, diz que esse comando aqui:
compact( $var_names = 'rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )

não é mais assim, mas fui olhar no codigo e está compatível com o php8, pq no codigo está assim compact('rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )

e não como diz ali no erro, alguem teve esse problema?


( ! ) Notice: compact(): Undefined variable: extras in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php on line 393
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0078707064Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'view' )...\BootstrapAbstract.php:622
60.0078707064Bootstrap->_initView( )...\BootstrapAbstract.php:669
70.0084804816Zend_View_Helper_HeadLink->appendStylesheet( '/zfartesao3/public/css/themes/blue/style.css', 'screen' )...\Bootstrap.php:31
80.0084805192Zend_View_Helper_HeadLink->__call( $method = 'appendStylesheet', $args = [0 => '/zfartesao3/public/css/themes/blue/style.css', 1 => 'screen'] )...\Bootstrap.php:31
90.0084805864Zend_View_Helper_HeadLink->createDataStylesheet( $args = [0 => '/zfartesao3/public/css/themes/blue/style.css', 1 => 'screen'] )...\HeadLink.php:164
100.0084806272compact( $var_names = 'rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )...\HeadLink.php:393

( ! ) Notice: compact(): Undefined variable: extras in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php on line 393
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0078707064Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'view' )...\BootstrapAbstract.php:622
60.0078707064Bootstrap->_initView( )...\BootstrapAbstract.php:669
70.0165807352Zend_View_Helper_HeadLink->appendStylesheet( '/zfartesao3/public/css/themes/blue/form.css', 'screen' )...\Bootstrap.php:32
80.0165807728Zend_View_Helper_HeadLink->__call( $method = 'appendStylesheet', $args = [0 => '/zfartesao3/public/css/themes/blue/form.css', 1 => 'screen'] )...\Bootstrap.php:32
90.0165808400Zend_View_Helper_HeadLink->createDataStylesheet( $args = [0 => '/zfartesao3/public/css/themes/blue/form.css', 1 => 'screen'] )...\HeadLink.php:164
100.0165808808compact( $var_names = 'rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )...\HeadLink.php:393

( ! ) Notice: compact(): Undefined variable: extras in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php on line 393
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0078707064Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'view' )...\BootstrapAbstract.php:622
60.0078707064Bootstrap->_initView( )...\BootstrapAbstract.php:669
70.0260807848Zend_View_Helper_HeadLink->appendStylesheet( '/zfartesao3/public/css/themes/blue/cssmenu.css', 'screen' )...\Bootstrap.php:33
80.0260808224Zend_View_Helper_HeadLink->__call( $method = 'appendStylesheet', $args = [0 => '/zfartesao3/public/css/themes/blue/cssmenu.css', 1 => 'screen'] )...\Bootstrap.php:33
90.0260808896Zend_View_Helper_HeadLink->createDataStylesheet( $args = [0 => '/zfartesao3/public/css/themes/blue/cssmenu.css', 1 => 'screen'] )...\HeadLink.php:164
100.0261809304compact( $var_names = 'rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )...\HeadLink.php:393

( ! ) Notice: compact(): Undefined variable: extras in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php on line 393
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0078707064Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'view' )...\BootstrapAbstract.php:622
60.0078707064Bootstrap->_initView( )...\BootstrapAbstract.php:669
70.0365808344Zend_View_Helper_HeadLink->appendStylesheet( '/zfartesao3/public/css/themes/blue/base.css', 'screen' )...\Bootstrap.php:34
80.0365808720Zend_View_Helper_HeadLink->__call( $method = 'appendStylesheet', $args = [0 => '/zfartesao3/public/css/themes/blue/base.css', 1 => 'screen'] )...\Bootstrap.php:34
90.0366809392Zend_View_Helper_HeadLink->createDataStylesheet( $args = [0 => '/zfartesao3/public/css/themes/blue/base.css', 1 => 'screen'] )...\HeadLink.php:164
100.0366809800compact( $var_names = 'rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras' )...\HeadLink.php:393

( ! ) Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in C:\wamp64\www\zfartesao3\library\Zend\Registry.php on line 206
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0494929424Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'layout' )...\BootstrapAbstract.php:626
60.0494929424Zend_Application_Resource_Layout->init( )...\BootstrapAbstract.php:683
70.0494929424Zend_Application_Resource_Layout->getLayout( )...\Layout.php:55
80.0494929424Zend_Layout::startMvc( $options = ['layoutPath' => 'C:\\wamp64\\www\\zfartesao3\\application/layouts/scripts/'] )...\Layout.php:66
90.0494929760Zend_Layout->__construct( $options = ['layoutPath' => 'C:\\wamp64\\www\\zfartesao3\\application/layouts/scripts/'], $initMvc = TRUE )...\Layout.php:176
100.0495929760Zend_Layout->_initVarContainer( )...\Layout.php:157
110.0495929760Zend_View_Helper_Placeholder_Registry::getRegistry( )...\Layout.php:320
120.0495929760Zend_Registry::isRegistered( $index = 'Zend_View_Helper_Placeholder_Registry' )...\Registry.php:67
130.0495929760Zend_Registry->offsetExists( $index = 'Zend_View_Helper_Placeholder_Registry' )...\Registry.php:183

( ! ) Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in C:\wamp64\www\zfartesao3\library\Zend\Registry.php on line 206
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0023405336Zend_Application->bootstrap( $resource = ??? )...\index.php:25
30.0023405336Zend_Application_Bootstrap_BootstrapAbstract->bootstrap( $resource = NULL )...\Application.php:355
40.0023405336Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap( $resource = NULL )...\BootstrapAbstract.php:586
50.0494929424Zend_Application_Bootstrap_BootstrapAbstract->_executeResource( $resource = 'layout' )...\BootstrapAbstract.php:626
60.0494929424Zend_Application_Resource_Layout->init( )...\BootstrapAbstract.php:683
70.0494929424Zend_Application_Resource_Layout->getLayout( )...\Layout.php:55
80.0494929424Zend_Layout::startMvc( $options = ['layoutPath' => 'C:\\wamp64\\www\\zfartesao3\\application/layouts/scripts/'] )...\Layout.php:66
90.0494929760Zend_Layout->__construct( $options = ['layoutPath' => 'C:\\wamp64\\www\\zfartesao3\\application/layouts/scripts/'], $initMvc = TRUE )...\Layout.php:176
100.0495929760Zend_Layout->_initVarContainer( )...\Layout.php:157
110.0495929760Zend_View_Helper_Placeholder_Registry::getRegistry( )...\Layout.php:320
120.0606929760Zend_Registry::get( $index = 'Zend_View_Helper_Placeholder_Registry' )...\Registry.php:68
130.0606929760Zend_Registry->offsetExists( $index = 'Zend_View_Helper_Placeholder_Registry' )...\Registry.php:145

( ! ) Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in C:\wamp64\www\zfartesao3\library\Zend\Registry.php on line 206
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0720932704Zend_Application->run( )...\index.php:26
30.0720932704Zend_Application_Bootstrap_Bootstrap->run( )...\Application.php:366
40.0720932704Zend_Application_Bootstrap_BootstrapAbstract->getResource( $name = 'FrontController' )...\Bootstrap.php:88
50.0720932744Zend_Application_Bootstrap_BootstrapAbstract->hasResource( $name = 'frontcontroller' )...\BootstrapAbstract.php:540
60.0720932744Zend_Registry->offsetExists( $index = 'frontcontroller' )...\BootstrapAbstract.php:521

( ! ) Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in C:\wamp64\www\zfartesao3\library\Zend\Session.php on line 205
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0720932704Zend_Application->run( )...\index.php:26
30.0720932704Zend_Application_Bootstrap_Bootstrap->run( )...\Application.php:366
40.0783933080Zend_Controller_Front->dispatch( $request = ???, $response = ??? )...\Bootstrap.php:97
50.07861024816Zend_Controller_Plugin_Broker->preDispatch( $request = class Zend_Controller_Request_Http { protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/zfartesao3/public/'; protected $_baseUrl = '/zfartesao3/public'; protected $_basePath = NULL; protected $_pathInfo = '/'; protected $_params = ['controller' => 'index', 'action' => 'index', 'module' => 'default']; protected $_rawBody = NULL; protected $_aliases = []; protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'index'; protected $_controllerKey = 'controller'; protected $_action = 'index'; protected $_actionKey = 'action' } )...\Front.php:941
60.07861024816Application_Plugin_ACL->preDispatch( $request = class Zend_Controller_Request_Http { protected $_paramSources = [0 => '_GET', 1 => '_POST']; protected $_requestUri = '/zfartesao3/public/'; protected $_baseUrl = '/zfartesao3/public'; protected $_basePath = NULL; protected $_pathInfo = '/'; protected $_params = ['controller' => 'index', 'action' => 'index', 'module' => 'default']; protected $_rawBody = NULL; protected $_aliases = []; protected $_dispatched = TRUE; protected $_module = 'default'; protected $_moduleKey = 'module'; protected $_controller = 'index'; protected $_controllerKey = 'controller'; protected $_action = 'index'; protected $_actionKey = 'action' } )...\Broker.php:309
70.07871024888Zend_Auth->hasIdentity( )...\ACL.php:509
80.07871024888Zend_Auth->getStorage( )...\Auth.php:141
90.07871031856Zend_Auth_Storage_Session->__construct( $namespace = ???, $member = ??? )...\Auth.php:91
100.07871031936Zend_Session_Namespace->__construct( $namespace = 'Zend_Auth', $singleInstance = ??? )...\Session.php:87
110.07871031936Zend_Session::start( $options = TRUE )...\Namespace.php:143
120.07881031936Zend_Session::setOptions( $userOptions = [] )...\Session.php:437
130.07881031992ini_set( $varname = 'session.use_only_cookies', $newvalue = 'on' )...\Session.php:205

( ! ) Fatal error: Uncaught Zend_Session_Exception: Session must be started before any output has been sent to the browser; output started in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php/393 in C:\wamp64\www\zfartesao3\library\Zend\Controller\Plugin\Broker.php on line 312
( ! ) Zend_Controller_Exception: Session must be started before any output has been sent to the browser; output started in C:\wamp64\www\zfartesao3\library\Zend\View\Helper\HeadLink.php/393#0 C:\wamp64\www\zfartesao3\library\Zend\Session\Namespace.php(143): Zend_Session::start(true) #1 C:\wamp64\www\zfartesao3\library\Zend\Auth\Storage\Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth') #2 C:\wamp64\www\zfartesao3\library\Zend\Auth.php(91): Zend_Auth_Storage_Session->__construct() #3 C:\wamp64\www\zfartesao3\library\Zend\Auth.php(141): Zend_Auth->getStorage() #4 C:\wamp64\www\zfartesao3\application\plugins\ACL.php(509): Zend_Auth->hasIdentity() #5 C:\wamp64\www\zfartesao3\library\Zend\Controller\Plugin\Broker.php(309): Application_Plugin_ACL->preDispatch(Object(Zend_Controller_Request_Http)) #6 C:\wamp64\www\zfartesao3\library\Zend\Controller\Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http)) #7 C:\wamp64\www\zfartesao3\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #8 C:\wamp64\www\zfartesao3\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #9 C:\wamp64\www\zfartesao3\public\index.php(26): Zend_Application->run() #10 {main} in C:\wamp64\www\zfartesao3\library\Zend\Controller\Plugin\Broker.php on line 312
Call Stack
#TimeMemoryFunctionLocation
10.0001361648{main}( )...\index.php:0
20.0720932704Zend_Application->run( )...\index.php:26
30.0720932704Zend_Application_Bootstrap_Bootstrap->run( )...\Application.php:366
40.0783933080Zend_Controller_Front->dispatch( $request = ???, $response = ??? )...\Bootstrap.php:97

Leandro Sales

unread,
Aug 31, 2023, 7:54:51 AM8/31/23
to zfbr...@googlegroups.com
Apenas desative as mensagens do PHP Notice e Deprecated

O resto vai funcionar.

--
Leandro Sales



--
Essa mensagem faz parte do grupo "zfbrasil" no Google Groups.
Para escrever neste grupo, envie um email para zfbr...@googlegroups.com
Para se desligar do grupo, envie um email para zfbrasil-u...@googlegroups.com
Mais informações, visite o grupo em http://groups.google.com/group/zfbrasil?hl=pt-BR
---
Você recebeu essa mensagem porque está inscrito no grupo "Zend Framework Brasil" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para zfbrasil+u...@googlegroups.com.
Para ver essa discussão na Web, acesse https://groups.google.com/d/msgid/zfbrasil/CAOibrj9EU4D_nQuqoRePUy4xfhW8PcYYhDcynk4F-mobWeVXGw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages