Subject: migrate from 1.3x to 2.0 nl2br errors

Posted on: 02/01/14 10:29pm
By: Anonymous

ive put my previous config.php file in the geeklog root and also dumped my database which im trying to import via migration

getting this error. any ideas?

Migrate From Backup

Processing file: /var/www/geeklog/backups/geeklog.dump.20140102.sql

Fatal error: Call to undefined function COM_nl2br() in /var/www/geeklog/public_html/admin/install/bigdump.php on line 271

Re: migrate from 1.3x to 2.0 nl2br errors

Posted on: 03/01/14 02:09pm
By: Laugh

Hmmm, A quick look at the code and it looks like that the migrate script redirects to the bigdump.php file to handle the data import. Migrate seems to have lib-common.php loaded (which is were the function COM_nl2br is located) but bigdump does not. Bigdump.php only has the one com_ function call to lib-common.

The configuration doesn't seem to be loaded so we don't know the html path to lib-common.php so you have 2 options.

1) Either load the database yourself with your backup and run the migration that way

or

2) Change line 271 to

PHP Formatted Code

echo INST_getAlertMsg($LANG_BIGDUMP[17] . $linenumber . ': ' . trim($dumpline) . '.<br ' . XHTML . '>' . $LANG_BIGDUMP[18] . trim(htmlentities($query)) . '<br ' . XHTML . '>' . $LANG_BIGDUMP[19] . mysql_error());
 


Either option should get you around the problem (but not really fix it).

Re: migrate from 1.3x to 2.0 nl2br errors

Posted on: 06/01/14 02:39pm
By: Anonymous

awesome will try it now! thanks

Re: migrate from 1.3x to 2.0 nl2br errors

Posted on: 07/01/14 05:17pm
By: Laugh

Let us know how it works out.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=95489