openboleto / OpenCnabPHP

Biblioteca multibanco para geração e leitura de arquivos Cnab240 e Cna400 de remessa e retorno
MIT License
192 stars 117 forks source link

Problema na função get_counter() - Banco do Brasil - Arquivo de Retorno #114

Open andressavw opened 5 years ago

andressavw commented 5 years ago

Estou tentando ler um arquivo de retorno do banco do brasil, e o seguinte erro está acontecendo na função get_counter(). Alguém consegue auxiliar?

Fatal error: Uncaught Error: Call to a member function get_counter() on null in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\resources\generico\retorno\L030\Generico3.php:43 Stack trace: #0 [internal function]: CnabPHP\resources\generico\retorno\L030\Generico3->set_numero_registro('0') #1 C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\RegistroRemAbstract.php(60): call_user_func(Array, '0') #2 C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\RegistroRemAbstract.php(47): CnabPHP\RegistroRemAbstract->__set('numero_registro', '0') #3 C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\resources\B001\retorno\L030\Registro3T.php(187): CnabPHP\RegistroRemAbstract->construct('0010001300001T ...') #4 C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\resources\B001\retorno\L030\Registro1.php(185): CnabPHP\resources\B001\retorno\L030\Registro3T->construct('0010001300001T ...') #5 C:\Program Files (x in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\OpenCnabPHP-master\src\resources\generico\retorno\L030\Generico3.php on line 43

StevensonFraga commented 5 years ago

Boa noite, estou com mesmo problemas, ja conseguiram descobrir?

Warning: Declaration of CnabPHP\resources\B001\retorno\L030\Registro1::inserirDetalhe() should be compatible with CnabPHP\resources\generico\retorno\L030\Generico1::inserirDetalhe($data) in C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\resources\B001\retorno\L030\Registro1.php on line 30

Notice: Undefined offset: 1 in C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\RemessaAbstract.php on line 100

Fatal error: Uncaught Error: Call to a member function get_counter() on null in C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\resources\generico\retorno\L030\Generico3.php:42 Stack trace: #0 [internal function]: CnabPHP\resources\generico\retorno\L030\Generico3->set_numero_registro('0') #1 C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\RegistroRemAbstract.php(60): call_user_func(Array, '0') #2 C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\RegistroRemAbstract.php(47): CnabPHP\RegistroRemAbstract->set('numero_registro', '0') #3 C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\resources\B001\retorno\L030\Registro3T.php(187): CnabPHP\RegistroRemAbstract->construct('0010001300001T ...') #4 C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\resources\B001\retorno\L030\Registro1.php(185): CnabPHP\resources\B001\retorno\L030\Reg in C:\Sites\LocalUser\site.com\www2\@Boletos\Remessa_Retorno\OpenCnabPHP-master\src\resources\generico\retorno\L030\Generico3.php on line 42