search

Home  >  Q&A  >  body text

How to call undefined function bf_b64dec() BREAZINGFORM in Joomla

I encountered a problem when using Joomla Breazingform, when calling the front-end part of the form I got the following error: Call to undefined function bf_b64dec() Enter image description here

Is there any solution? Enter image description here

P粉946437474P粉946437474504 days ago555

reply all(1)I'll reply

  • P粉420868294

    P粉4208682942023-09-17 11:08:22

    I added the following code in the php file configuration of the breezeinf form to solve the problem:

    function bf_b64dec($data) {
        // Verificar si la entrada está codificada en base64 antes de decodificar
        if (base64_decode($data, true) !== false) {
            // Decodificar los datos en Base64 utilizando la función base64_decode()
            $decodedData = base64_decode($data);
            
            // Devolver el resultado decodificado
            return $decodedData;
        } else {
            // Si los datos no están en formato Base64 válido, devuelve un mensaje de error o maneja la situación adecuadamente
            return "Error: Los datos no están codificados en Base64 válidamente.";
        }
    }

    reply
    0
  • Cancelreply