Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:47 am EDT

Geeklog Forums

migrate from 1.3x to 2.0 nl2br errors


Dan

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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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

Text 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).
One of the Geeklog Core Developers.
 Quote

Dan

Anonymous
awesome will try it now! thanks
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
Let us know how it works out.
One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 11:47 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content