Undefined function xnl2br()

richwingerter

dbs, thank you for the reference!

dbs

[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

richwingerter

Also, I don't see any clear instructions on how to upgrade from 2.12.1 to 2.12.2.  Should I follow the instructions under 2.12.1 and use unzip.php.zip?

Is there anywhere I can find general installation instructions that would work for 2.12.2?

I looked at the signup_form.php files for these versions, and there are changes to the file. So, perhaps this problem has just been solved in the upgrade. I'll know if I can ever get it installed!

richwingerter

I'm willing to do that, but is there a tar.gz copy somewhere? I don't see it for this version.

Also, if no one commented on this issue in 2.12.1, why would it be fixed in 2.12.2?

I think this is a configuration problem, of some kind, but I don't know which configuration parameter would affect this. It also doesn't seem like any of the other frontend functions are affected.

Thanks for your help!

hgs

I would try the current version (2.12.2).
As far as I know, there are no problems there
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

richwingerter

I have WebsiteBaker 2.12.1 and I tried signing up a test user. When I put in the information for them, I get this message:

QuoteThere was an uncatched exception
Call to undefined function xnl2br()
in line (78) of (/account/signup_form.php):

I checked and it looks like xnl2br is properly defined in frontend.functions.php:

    if (!function_exists('xnl2br')){
        function xnl2br ($sText)
        {
        $sRetval = '';
// build array width searches
        if (!\is_array($sText)){
            $aResult = preg_split('/\R/', $sText, -1, PREG_SPLIT_DELIM_CAPTURE);
        }
        $pattern = '/[<^\/\w]+[>]|[<^\/\w]+[>].*<[\/\w>]+/is';
        foreach($aResult as $sResult) {
            $sResult .= "\n";
            if (preg_match($pattern,$sResult)){
              $sRetval .= $sResult.PHP_EOL;
              continue;
            }
            $sRetval .= preg_replace('/[\n\r]/u', '',nl2br($sResult, !defined('XHTML'))).PHP_EOL;
        }
        return $sRetval;
        }
    }


The user is actually signed up and I get the e-mail message with their password. I can log in with that username and password.

Does anyone have advice how to find and resolve this problem? I don't see anyone else having a problem with this.

I get this error message in Chrome and Firefox on the Mac and Firefox on Windows.

Thanks for your help!