Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 11:39 am EST

Geeklog Forums

migrate.php issues


Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Please don't hate me 'cause I'm ... asking this question Embarassed but I'm at loss completely. I did a fresh install of GL 1.3.11 and Forum 2.3.2 and this error persists.
Text Formatted Code
Warning: Cannot add header information - headers already sent by (output started at /home/training/public_html/1311/admin/plugins/forum/migrate.php:72) in /home/training/public_html/1311/lib-common.php(973) : eval()'d code on line 1
 

Above happens after clicking on Convert.
I checked for the whitespace at the end of the following files:
migrate.php
lib-common.php
english.php (Forum)
english.php (GL)

Nothing seems to work. The only solution that did work was commenting the whole piece of code
Text Formatted Code
echo '<script language="javascript">
//    <!-- Begin
    var allChecked;
    function checkAll(field)
    {
    allChecked=true;
    for (i = 0; i < field.length; i++)
        field[i].checked = true ;
    }
   
    function uncheckAll(field)
    {
    allChecked=false;
    for (i = 0; i < field.length; i++)
        field[i].checked = false ;
    }
    function confirmSubmit(text) {
      var yes = confirm(text);
      if (yes) return true;
      else return false;
    }

    //  End -->
    </script>';
 

Anybody's experiencing this? Any suggestions how to solve this bugger are more than welcome Smile
Geeklog Polish Support Team
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Line 72 in migrate.php (as per the error message you get) is an "echo" statement - but it's commented out in the migrate.php here on geeklog.net. Could that be the problem?

bye, Dirk
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Thank you Dirk for your response. I'm using this forum release forum_2.3.2_1.3.9.zip (I haven't found anything else) and the 72 line is the last line from the code I posted above (closing script tag). I have no idea what this code does. If it's commented there is no error an conversion works but ... that's no the way to solve issues Wink
Geeklog Polish Support Team
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
I was wondering whether this is only my issue. Could someone try the function Convert at their site and check whether this returns any errors?
Thanks Its a deal - shaking hands
Geeklog Polish Support Team
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
Quote by Robin: I was wondering whether this is only my issue. Could someone try the function Convert at their site and check whether this returns any errors?
Thanks Its a deal - shaking hands


Same errors on my dev box here. I checked Blaine's forum and nothing seemed to be there about it. Hopefully he'll see this thread soon.

Chuck
Too many hands on my time.
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by r_f_o_t:Same errors on my dev box here.

So it's not my imagination Wink Thank you Chuck for your answer Its a deal - shaking hands
Anybody else Question
BTW
I checked the combination of GL 1.3.9 and Forum 2.3.2 and this behavior doesn't occur Can someone help me
Geeklog Polish Support Team
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Robin,

You will need to move that echo of the javascript function in the script to after the call to COM_siteHeader - approx line 290

So it would be:
Text Formatted Code

echo COM_siteHeader();

// Check if the number of records was specified to show
if (empty($show)) {
    $show = 20;
}
// Check if this is the first page.
if (empty($page)) {
    $page = 1;
}

echo '<script language="javascript">
    <!-- Begin
    var allChecked;
    function checkAll(field)
    {
    allChecked=true;
    for (i = 0; i < field.length; i++)
        field[i].checked = true ;
    }
   
    function uncheckAll(field)
    {
    allChecked=false;
    for (i = 0; i < field.length; i++)
        field[i].checked = false ;
    }
    function confirmSubmit(text) {
      var yes = confirm(text);
      if (yes) return true;
      else return false;
    }

    //  End -->
    </script>';


echo COM_startBlock("STORY  TO  FORUM  MIGRATION  UTILITY");
echo ppNavbar($navbarMenu,$LANG_GF06['5']);

 


Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Thank you Blaine Its a deal - shaking hands that did the trick Exclamation
Geeklog Polish Support Team
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
It worked for me too but where do I put the old line 301

echo adminheader();

Do I simply have to put // in front of it? It works but is ist o.k.?
 Quote

All times are EST. The time is now 11:39 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