When I activate this module my drupal sites stops submitting pages correctly and every time a click a submit or ok button in my site I get a blank page from the browser (the changes I submitted are still made, but instead of going back to the normal page it stops in a blank page).

If I disable this module, my site works correctly. I got everything updated.

Anyone can help?

CommentFileSizeAuthor
#15 duplicate_role.zip1.49 KBircdirk

Comments

Anonymous’s picture

I get this message in log entries

Cannot modify header information - headers already sent by (output started at /var/www/sites/all/modules/duplicate_role/duplicate_role.module:1) in /var/www/includes/common.inc on line 335.

MaramonJ’s picture

Running into the same issues myself.

Have to disable the module and enable it only for the purposes of duplicating roles.

kingandy’s picture

There's a line at the end of the module file with a "?>" on it - this can cause a "headers already sent" error if there's any whitespace or linebreaks after it. Try removing the whole line.

kingandy’s picture

Would you like to know more?

vijayitsoft’s picture

no this doesn't work,same issue of page getting blank and header already sent warning

4ud’s picture

Hi,
anyone has a solution?
alexgon, please can you help us?

thx

Anonymous’s picture

It won't solve the problem :/
the version duplicate_role 6.x-1.x-dev it doesn't give errors, but don't do what it's supposed to do.

Anonymous’s picture

Assigned: » Unassigned
Priority: Normal » Critical

Can't someone help?
This module is very useful for me and I can't get it working.

gavin_o’s picture

Hi, I have noticed another problem which I suspect is related to this. Took me a while to track it down, but when this modules is activated Flash remoting via the AMFPHP server, in Services, will fail. It results in a NetConnection.Call.BadVersion error (which means badly formed data is being returned). I have no idea how this module is causing this but it must be disabled after a role has been duplicated.

4ALLofUS’s picture

same, white screen on d 6.x

shame really, this module could save so much time because I have a flagging system that assigns persistent flagged users with read-only roles for a period using 'role expire' and it takes forever and a day to add roles that are basically the same other than the expiry duration. 7,14,28 days.

subscribing...

avibrazil@gmail.com’s picture

Strange, I was afraid of installing this module because of your comments here but it worked flawlessly for me. No blank screens at all.

I'm on Drupal 6.14.

Anonymous’s picture

I have 2 drupal websites, one on dedicated server and other on a shared environment both with drupal 6.16.
In the dedicated server I get the error I describe, on the shared environment the modules works properly.

It's very very strange why it gives this error.

Anonymous’s picture

I solve the problem by updating the php to the version 5.3.2

Anonymous’s picture

I have a different issue actually. Activate the module and the admin toolbar disappears. However I navigated around and did what I needed to do and then disabled the module and it's back to normal. Odd.

ircdirk’s picture

StatusFileSize
new1.49 KB

Ok, i have fixed the file, now its working :) See attachment.

dwightaspinwall’s picture

#15 works for me as well -- thx.

my-family’s picture

The same problem. #15 solved it, thanks.

migueltrindade’s picture

Fixed with new release. Check it out.

migueltrindade’s picture

Status: Active » Needs review
migueltrindade’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

vijayitsoft’s picture

<?php

session_start();

$conn = mysql_connect('localhost', 'root', '');
if (!$conn) {
    die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db('imedia09_im10', $conn);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script language="javascript">

function showtab(ee){

//alert(ee);
 $("#"+ee).toggle("slow");

}



</script>
<style>
.idleField{ background-color:#000033;


}
@media print {
.yesPrint {
    display:block;
}
}

</style>
</head>

<body>
<table width="800" border="0" cellpadding="5">
  <tr>
    <th align="center" bgcolor="#84F484">User Id</th>
	<th align="center" bgcolor="#84F484">Full Name</th>
    <th align="center" bgcolor="#84F484">User Name</th>
    <th align="center" bgcolor="#84F484">Email</th>
    <th align="center" bgcolor="#84F484">Password</th>
    <th align="center" bgcolor="#84F484">access</th>
  </tr>
  
 <?php 
 
 $query=mysql_query("SELECT * FROM users");
 
 $i=1;
 
 while($result=mysql_fetch_object($query)){

 if($i%2){ $color="#ffffff";  }else{  $color="#BEF4BE";  }

 echo '<tr>
		<td align="center" bgcolor="'.$color.'"> 
			<table width="100%" cellpadding="2"><tr><td><a  href="javascript:showtab(\'suntab_'.$result->id.'\')"><img src="add.png" border="0" width="10" height="10"  ></a></td><td>'.$result->id.'</td></tr></table>
		</td>
		<td align="center" bgcolor="'.$color.'">'.$result->name.'</td>
		<td align="center" bgcolor="'.$color.'">'.$result->uname.'</td>
		<td align="center" bgcolor="'.$color.'">'.$result->emailAddress.'</td>
		<td align="center" bgcolor="'.$color.'">'.$result->pwd.'</td>
		<td align="center" bgcolor="'.$color.'">'.$result->access.'</td>
  	  </tr>';
	  
	  $subquery=mysql_query("SELECT name,number,email FROM imedia_agents WHERE agentid='".$result->id."' ");
	  
 echo'<tr><td width="500" colspan="6" align="center" style="font-size:11px;display:none;" class="yesPrint" id="suntab_'.$result->id.'">
 			<table width="500" border="1">
				<tr>
					<th align="center" bgcolor="#9BA39B">Name</th>
					<th align="center" bgcolor="#9BA39B">Number</th>
					<th align="center" bgcolor="#9BA39B">Email</th>
				</tr>';
		$j=1;
			while($subresult=mysql_fetch_object($subquery)){
			if($j%2){ $color="#ffffff";  }else{  $color="#E3E8E3";  }
			echo'<tr>
					<td align="center" bgcolor="'.$color.'">'.$subresult->name.'</td>
					<td align="center" bgcolor="'.$color.'">'.$subresult->number.'</td>
					<td align="center" bgcolor="'.$color.'">'.$subresult->email.'</td>
				</tr>';
			}
	  	echo'</table>
	</td></tr>';
 $i++;
 } 
 
 ?>
 <tr><td colspan="6" align="right"><form><input type="button" value=" Print this page "
onclick="window.print();return false;" /></form> </td></tr>
</table>

</body>
</html>
kingandy’s picture

The above comment does not appear to be related to this issue, or anything remotely to do with Drupal.