Ir para o conteúdo

whmcs 7.1.1 -modulo boleto – erros

Visualizando 8 respostas da discussão
  • Autor
    Posts
    • #9615
      helio
      Participante

        Warning: DateTime::createFromFormat(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/vendor/nesbot/carbon/src/Carbon/Carbon.php on line 417

        Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/3_invoice.php on line 21

        Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php on line 66

        Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php on line 69

        Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php on line 113

        Warning: strtotime(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php on line 114

        Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php on line 114

        Fatal error: Uncaught exception ‘Exception’ with message ‘DateTime::__construct(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone.’ in /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php:115 Stack trace: #0 /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php(115): DateTime->__construct(‘2017-09-15’) #1 /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params/6_calculate.php(290): ggnb_calculate_fine_interest(‘50.00’, 0, 0, ‘2017-09-16’, true) #2 /home/waysisco/public_html/clientes/modules/gateways/gofasgerencianetboleto/params.php(17): include(‘/home/waysisco/…’) #3 /home/waysi in /home/waysisco/public_html/clientes/vendor/whmcs/whmcs-foundation/lib/Terminus.php on line 0

      • #9616
        Gofas
        Mestre
        • #9618
          helio
          Participante

            pior que quando clico para ver a fatura já da o erro acima, parece ser algo com o formato de dados de data e outros .

            MESMO ATIVANDO o DEBUG

          • #9621
            Gofas
            Mestre

              Verifique as configurações de região/fuso horário, assim como o formato de datas e hora configurado no seu whmcs e no servidor.

              A data e hora do servidor devem estar configuradas corretamente também.

            • #9622
              helio
              Participante

                Ok , Mas o estranho é que se eu mudo o tipo de pagamento de boleto gofas , para boleto gerencianet , ou pagseguro , o erro some e tudo volta ao normal .

                Acontece somente quando coloca o tipo de pagamento do GOFAS.

                Mas mesmo assim perguntei ao meu provedor como verifico ou altero isto . pois e revenda compartilhada .

                e Parabens pelo modulo , a linha digitavel ajuda muito , espero que eu consiga resolver para usar

              • #9623
                helio
                Participante

                  Boa tarde

                  Mauricio
                  consegui resolver
                  eu coloquei o fuso horario no php.ini que coloquei na pasta do whmcs
                  date.timezone = America/Sao_Paulo

                  Tem como o cliente receber no email que o whmcs envia para o cliente ja com o codigo de barrar ?

                  ou

                  o link já gerando o boleto direto ?

                • #9624
                  Gofas
                  Mestre

                    Que bom, isso vai evitar problemas em várias ouras áreas do seu sistema.
                    A maneira que você definiu é melhor pois se aplica a todos os aplicativos em php instalados no seu servidor, mas opcionalmente, também é possível definir a timezone apenas para o WHMCS inserindo a linha de código a seguir no arquivo configuration.php do seu WHMCS:
                    date_default_timezone_set('America/Sao_Paulo');

                    O código de barras no e-mail pode ser adicionado no futuro, o link direto para o Boleto já é possível, basta você assinalar a opção “Redirecionar para o Boleto” nas sessão “Exibição da Fatura e do Boleto” das configurações do módulo.

                  • #10899
                    Uanderson
                    Participante

                      Boa tarde Gofas,
                      Estou com esse problema

                      Fatal error: The file /home/public_html/whmcs2/modules/gateways/gofasgerencianetboleto.php encoded as type [1/71] cannot be decoded by this version of the ionCube Loader. in Unknown on line 0
                      Oops!
                      Something went wrong and we couldn’t process your request.
                      Please go back to the previous page and try again.

                      exception ‘Whoops\Exception\ErrorException’ with message ‘The file /home/public_html/whmcs2/modules/gateways/gofasgerencianetboleto.php encoded as type [1/71] cannot be decoded by this version of the ionCube Loader.
                      ‘ in Unknown:0
                      Stack trace:
                      #0 /home/public_html/whmcs2/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(16, ‘The file /home/…’, ‘Unknown’, 0)
                      #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
                      #2 {main}

                      Estou usando o WHMCS 7.2.2

                    • #10902
                      Gofas
                      Mestre

                        Oi Uanderson,
                        a última versão do módulo(1.2.2) funciona com WHMCS 7.4.2 ou superior, da uma olhada nestes tópicos, neles eu apontei várias possíveis soluções para incompatibilidades do servidor ao atualizar para WHMCS 7.5:
                        https://gofas.net/br/foruns/topico/arquivos-nao-compativeis-com-o-php-7-1-e-ioncube-10/
                        https://gofas.net/br/foruns/topico/bug-apos-atualizacao-para-whmcs-v7-5/

                    Visualizando 8 respostas da discussão
                    • O tópico ‘whmcs 7.1.1 -modulo boleto – erros’ está fechado para novas respostas.
                    Role para cima