TEMA:

Issue with php 8.0 version 1 año 3 meses antes #274903

  • WavesChris
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 35
  • Gracias recibidas: 0
Hi Tihana,

Backup has been restored but can we look at this again on Monday (3 days time) I don't want to risk going into the weekend with broken contact forms! Website is currently on php 7.4.29 again.

I'll let you know when we can have another go at the php 8 changes. Thank you for your work so far!

Thanks

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Issue with php 8.0 version 1 año 3 meses antes #274904

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 788
Hi,

Yes, ofc, just remind me on Monday :)

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Issue with php 8.0 version 1 año 3 meses antes #274910

  • Autor del tema
  • sdeveloper
  • Fuera de línea
  • Navegador Senior
  • Navegador Senior
  • Registered
  • Mensajes: 107
  • Gracias recibidas: 0
We got this error when followed your link
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Issue with php 8.0 version 1 año 3 meses antes #274918

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 788
Hi,

ok, I will write everything from link here.

1) please go:
/administrator/components/com_breezingforms/libraries/crosstec/functions/
replace previous helpers.php with:

Archivo Adjunto:

Nombre del Archivo: helpers_20...6-13.zip
Tamaño del Archivo:9 KB


2) please go:
/administrator/components/com_breezingforms/admin/
replace previous download.php with :

Archivo Adjunto:

Nombre del Archivo: download2_...6-13.zip
Tamaño del Archivo:1 KB


3) please go to:
/administrator/components/com_breezingforms/libraries/tcpdf/include/
replace tcpdf_fonts.php with:

Archivo Adjunto:

Nombre del Archivo: tcpdf_font...6-13.zip
Tamaño del Archivo:20 KB


4) in Manage Pieces, find script: ff_makePageUrl

In this line of code:
if ($len > 0 && $url{$len-1} != '/') $url .= '/';
replace {} with [] like:
if ($len > 0 && $url[$len-1] != '/') $url .= '/';

5) in Manage Pieces, find script: ff_getParam, please replace current code with:
function ff_getParam($name, $default=null, $mask=0)
{
    global $ff_request;
    if (substr($name,0,9)=='ff_param_') {
        if (!isset($ff_request[$name])) return $default;
        $val = $ff_request[$name];
    } else {
        if (!isset($_REQUEST[$name])) return $default;
        $val = $_REQUEST[$name];
    } // if
    $dotrim = ($mask & FF_NOTRIM)==0;
    $dostrp = ($mask & FF_ALLOWHTML)==0;
    $addsla = ($mask & FF_ALLOWRAW)==0;
    $remsla = ($mask & FF_ALLOWRAW)!=0 ;
    if (is_array($val)) {
        $cnt = count($val);
        for ($v = 0; $v < $cnt; $v++)
            if (is_string($val[$v])) {
                if ($dotrim) $val[$v] = trim($val[$v]);
                if ($dostrp) $val[$v] = strip_tags($val[$v]);
                if ($addsla) $val[$v] = addslashes($val[$v]);
                if ($remsla) $val[$v] = stripslashes($val[$v]);
            } // if
    } else {
        if (is_string($val)) {
            if ($dotrim) $val = trim($val);
            if ($dostrp) $val = strip_tags($val);
            if ($addsla) $val = addslashes($val);
            if ($remsla) $val = stripslashes($val);
        } // if
    } // if
    return $val;
} // ff_getParam

6) in manage Pieces find script: ff_makeFormUrl, replace current code with:
function ff_makeFormUrl($name, $params='')
{
    global $ff_processor, $ff_otherparams;
    $url = '';
    switch ($ff_processor->runmode) {
        case 2: // preview
        case 1: // backend
            $url .= 'administrator/index2.php?option=com_breezingforms&act=run'.
                    '&ff_name='.urlencode($name);
            if ($ff_processor->inframe) $url .= '&ff_frame=1';
            if ($ff_processor->border) $url .= '&ff_border=1';
            break;
        default: // frontend
            $url .= 'index.php?ff_name='.urlencode($name);
            if ($ff_otherparams['option'] == 'com_breezingforms') {
                reset($ff_otherparams);
                foreach(  $ff_otherparams as $prop => $val)
                    $url .= '&'.urlencode($prop).'='.urlencode($val);
            } else
                $url .= '&option=com_breezingforms';
            if ($ff_processor->target > 1) $url .= '&ff_target='.$ff_processor->target;
            if ($ff_processor->inframe) $url .= '&ff_frame=1';
            if ($ff_processor->border) $url .= '&ff_border=1';
            if ($ff_processor->align !=1) $url .= '&ff_align='.$ff_processor->align;
            if ($ff_processor->top>0) $url .= '&ff_top='.$ff_processor->top;
    } // switch
    return ff_makePageUrl($url. $params);
} // ff_makeFormUrl

P.S: don't forget unzip attaced folders

If you get in stuck let me know, and I can do this for you :)

Regards,
Tihana
Adjuntos:
El siguiente usuario dijo gracias: mtspinto, demoniomx, takashimura

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic. Razón: added some update

Issue with php 8.0 version 1 año 3 meses antes #274929

  • WavesChris
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 35
  • Gracias recibidas: 0
Hi Tihana,

Let me know when you're ready to have another go with our website, and I will change php to 8.0 again.

Just a note - there is a bug with our system where we have to reinstall the extension each 24h. We're looking into this with our server host. If you are given an option at any point to 're-install or do a fresh install (and drop tables)', please select re-install. I think the other day someone pressed drop tables, which is what made us lose the form templates...!

Thanks

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Issue with php 8.0 version 1 año 3 meses antes #274930

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 788
Hi,

just let me know when you do this :)

Yes, you are right, if someone select "drop tables", then everything will be lost.
Ask you host provider how to prevent this "bug"

P.S: send me again login information because it says:
Username and password do not match or you do not have an account yet.

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.
Moderadores: ForumSupport
Tiempo de carga de la página: 0.072 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!