Cannot send session cache limter

I know that these "cannot send header" problems are everywhere - and I've read through at least twenty of them here before posting this.
I'm getting the error:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/d/j/m/djmikewatt/html/sites/imaging101/video.php:2) in /home/content/d/j/m/djmikewatt/html/sites/imaging101/video.php on line 4
at the top of a page. This error only shows up when the "restrict access to page" behavior is inerted. Remove it, and the page doesn't return the error anymore.  This is one page out of many on my site that use this behavior - yet the only one returning this error.  Below is all the code above the <html> tag - can anyone spot the problem?
Help is appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php require_once('Connections/imaging101.php'); ?>
<?php if (!isset($_SESSION)) {
  session_start();
$MM_authorizedUsers = "4,1";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
  // For security, start by assuming the visitor is NOT authorized.
  $isValid = False;
  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
  // Therefore, we know that a user is NOT logged in if that Session variable is blank.
  if (!empty($UserName)) {
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
    // Parse the strings into arrays.
    $arrUsers = Explode(",", $strUsers);
    $arrGroups = Explode(",", $strGroups);
    if (in_array($UserName, $arrUsers)) {
      $isValid = true;
    // Or, you may restrict access to only certain users based on their username.
    if (in_array($UserGroup, $arrGroups)) {
      $isValid = true;
    if (($strUsers == "") && false) {
      $isValid = true;
  return $isValid;
$MM_restrictGoTo = "access_denied.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo);
  exit;
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$uid = $row_rs_user['id'];
$colname_rs_user = "-1";
if (isset($_SESSION['MM_Username'])) {
  $colname_rs_user = $_SESSION['MM_Username'];
mysql_select_db($database_imaging101, $imaging101);
$query_rs_user = sprintf("SELECT id FROM users WHERE username = %s", GetSQLValueString($colname_rs_user, "text"));
$rs_user = mysql_query($query_rs_user, $imaging101) or die(mysql_error());
$row_rs_user = mysql_fetch_assoc($rs_user);
$totalRows_rs_user = mysql_num_rows($rs_user);
mysql_select_db($database_imaging101, $imaging101);
$query_rs_files = "SELECT record_id, video_1, video_2 FROM downloads";
$rs_files = mysql_query($query_rs_files, $imaging101) or die(mysql_error());
$row_rs_files = mysql_fetch_assoc($rs_files);
$totalRows_rs_files = mysql_num_rows($rs_files);
?>

The problem is caused by all the PHP code being after the DOCTYPE declaration. It should come before it.

Similar Messages

  • Outlook 2010 using Exchange 2010 - cannot send this item after updating draft email

    I have a client who has the following setup.
    SBS 2011 server (Exchange 2010) and a Windows 2008 R2 Terminal Server (with Office 2010 SP1 installed).
    This particular user has a Windows XP PC with Office 2010 SP1 installed (joined to SBS 2011 domain).
    This user creates a email at their office on their PC and saves it in draft to continue working on it when they get home.
    At home they RDP into the terminal server and load outlook and start updating their saved (Draft) email.  They then try to send it and the following error pops up.  "Cannot send this item".
    If they try to save the changes they have made it pops up with "The operation failed".
    I have tried various settings all with the same results.
    Office 2010, Office 2010 SP1, Online mode and Cache mode (on the Windows XP PC).
    Any ideas? 

    Hi Rajkumar,
    OK. After further testing I have narrowed it down to the email signature?
    If I save a draft email in Outlook on the Fat client (Windows XP + Office 2010), then go straight into Drafts folder and open the email and add one line of text and try to send or save again it fails.
    If I don't have a signature, it works fine.
    I currently trying to determine what part of the signature it doesn't like (it is quite a large signature, multiple images and a disclaimer etc).  I'm having mixed results - I can remove the signature totally from the draft email and then it will save
    or send fine. 
    Strange that it can save the email to Draft in the 1st place but doesn't like updating it a 2nd time???
    I have also created a new outlook profile (online mode) with the same results.

  • Cannot send some attachments or pictures red circle with line (FIXED)

    After three weeks working with support on an escalated ticket to find the resolution on some obscure site relating to something not specifically "Blackberry" I figured I should share.
    Problem:
    Cannot send attachments larger than... Not sure of specifics but well bellow our Exchange Max settings.
    Cannot send pictures as attachments. or forward some emails with embeded images
    Both cases would result in a red circle with a horizontal bar.
    Our environment:
    Exchange 2010
    IIS 6.0
    Blackberry (All up to date) devices connected to BDS
    After 3 weeks of sending logs and trying settings here is what I found on the internet:
    http://forums.iis.net/t/1169257.aspx
    http://tmoaikel.wordpress.com/2011/10/14/http-413-request-entity-too-large-in-iis-6-and-7/
    http://www.iis.net/configreference/system.webserver/serverruntime
    I will let you read the above but essentially the data BDS is trying to push through IIS is too large for the cache (from what I can tell). Finally here are the changes I made to our IIS applicationhost.config file (copy paste to the bottom bellow the last tag). I am certain the number is still very high but I want to make sure there is no more issues. I have enough users wanting to jump ship already, I don't want more.
    <location path="Default Web Site" overrideMode="Allow">
    <system.webServer>
    <asp />
    <serverRuntime uploadReadAheadSize=" 52428800" />
    </system.webServer>
    </location>

    I don't 100% know because we run all roles on one Exchange server.
    I referred to Exchange server in my previous post presuming you were running the CAS role on the Exchange server. If you have that running on another server, I would change it on there as well.
    Again, I can't see it doing any harm even if it isn't required!

  • Possible session caching issue in SSRS2014

    Using custom FormsAuth, User A can sign into our own main asp.net mvc app (WIF cookie), then SSRS (FormsAuth cookie) and all is well.  Here is where things go bad.  User A signs out of our main application (WIF cookie deleted) then back in into
    our main application as User B then back into SSRS.  SSRS report that displays User!UserID show UserA instead of current User B.  Its like there is either a session or cookie caching issue going on but not for sure.  
    1. What is the proper way to sign out of SSRS and prevent session caching?
    2. Do I need to worry about making my SSRS logon page non-cacheable?  If so, what is the recommended way of doing this?
    thanks
    scott

    Hi scott_m,
    According to your description, you used custom FormsAuthentication in Reporting Services, after user A sign out the application an sign in as user B, SSRS built-in user is shows user A instead of user B.
    Based on my search, once we configured SSRS to use Custom (Forms) authentication by deploying a custom security extension, we can logon to MS Report Manager (MSRM) using credentials of our custom security framework via a logon web page. But there is no way
    to logout or to expire the authentication cookie, so we need to close the browser manually. As a workaround, we can add a logout button to the Report Manager which is using Forms Authentication, then use code to clear the cookie and redirect to home page.
    In addition, if you extend Reporting Services to use Forms Authentication, it’s better to use Secure Sockets Layer (SSL) for all communications with the report server to prevent malicious users from gaining access to another user's cookie. SSL enables clients
    and a report server to authenticate each other and to ensure that no other computers can read the contents of communications between the two computers. All data sent from a client through an SSL connection is encrypted so that malicious users cannot intercept
    passwords or data sent to a report server.
    Here is a relevant thread you can reference:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/5e33949d-7757-45d1-9c43-6dc3911c3ced/how-do-you-logout-of-report-manager
    For more information about Forms Authentication, please refer to the following document:
    https://technet.microsoft.com/en-us/library/aa902691%28v=sql.80%29.aspx?f=255&MSPPError=-2147217396
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Network Error: Cannot Send Data (1042012) in Hyperion Planning

    I am using Hyperion Planning 11.1.2.1
    I'm getting this error when i'm trying to refresh my Planning database.
    Com.hyperion.planning.olap.EssbaseException: Network error [%s]: Cannot Send Data (1042012)
    Any suggestions?

    First make sure your essbase is up and running. If it is then:
    Increase the values for NETDELAY and NETRETRYCOUNT.
    Check the index cache size, data cache size, and data block size to make sure that they are within the recommended ranges.
    How to do it and how much to set, you will get this information in Essbase database administrator's guide:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag.pdf
    Also have a look at:
    Network Error message
    Cheers...!!!

  • Dimbuild causes network error 10054 "cannot send data"

    Can anyone help with this? I have an <BR>ASO app that I run dimbuilds on every month. Every month I get the same error message when the dimbuild runs:<BR><BR>Error 1042012 - Network Error [10054]: Cannot send Data.<BR><BR>If I make an exact copy of the app and run the dimbuild on the copy, I get no errors and the dimbuild works fine. But when I run it on the original app, I always get the error message. <BR>Yet this month's app is a copy that the dimbuild worked on last month. <BR><BR>Does anyone out there know why this keeps happening? Any suggestions deeply appreciated. <BR>Thanks.<BR><BR>

    <p>Hi Anaguiu,<br>I would clear the database and build dimensions using dimbuild rulewith no data in database<br>and then load data using data load rule.<br><br><br><br>Additionally I found some information at<br><br>http://dev.hyperion.com/techdocs/essbase/essbase_71/Docs/errmsgs/ernetwrk.htm#1042012<br><br>Quote<br>"1042012 Network error message: Cannot Send Data<br>Possible Problems<br>Analytic Services cannot send data over the network using namedpipes.<br><br>Possible Solutions<br>Increase the values for NETDELAY and NETRETRYCOUNT.<br>Check the index cache size, data cache size, and data block size tomake sure that they are within the recommended ranges. "<br><br><br>------------------<br>[email protected]<br></p>

  • Cannot send from mail

    I am using 10.4.7 and i cannot send any mail from mail program. No problem sending with Entourage (settings are the same). Also, when I type in a message in Mail, as soon as i type a space, i cannot add anything after that - strange.
    G5 Dual   Mac OS X (10.4.7)  

    This problem in Mail is usually caused by some Launch Services cache or preferences corruption. The following article describes how to manually reset Launch Services -- the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, this other article provides links to some utilities that can be used for troubleshooting and cache cleaning:
    Resolving Disk, Permission, and Cache Corruption
    It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Click Maintenance. In the Reset section, check LaunchServices database.
    4. You may uncheck any other pre-checked options if you wish.
    5. Click the Execute button.
    6. Restart the computer.
    7. If the problem persists, try again checking the Links between documents and applications option in step 3 instead.

  • Cannot send or receive MMS messages!!

    I cannot send or receive MMS messages on my BT mobile HTC S620.  Also I keep getting the BT Set-up screen yet it won't proceed past the first step of four!  I have re-set this handset back to factory settings and updated the software via computer/download, however, I cannot find a solution to get my MMS messages! Help please?  (By the way wireless, emails and SMS messages work fine.)
    Solved!
    Go to Solution.

    Sounds like something has gone wrong with regards to the MMS settings and looks like you'll need to re-enter them.
    The settings I found for it as follows:
    Access point name: mobile.bt.uk
    Username: user
    Password: btmms
    Authentication: Normal
    Data bearer: GPRS
    Gateway IP address: 212.183.137.012 or 62.239.21.123
    Session mode: Permanent
    URL address: http://mms.bt.com/servlets/mms or http://mmsc.btmms.co.uk:8002
    We have also been told that the following settings may work for a corporate BT Mobile: APN: btmobile.bt.com , username:bt , password:bt, port:8799 , IP address:212.183.137.12
    My Motto:
    Going to kill my HomeHub 2 very soon.

  • Verizon email cannot send outgoing mail. Works OK with Internet Explorer. Fix?

    Can login to Verizon email. I receive incoming email however I cannot send email. The SEND button appears not to work. Have upgraded all plugins. Works OK on Internet Explorer browser. Upgraded Flash and Java but still does not work.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Can receive text msgs but cannot send!?!?

    A few days ago I began to be unable to send text msgs. Using iPhone 3G, it appears that the 'send' button is dithered 'greyed' out. I tap it but nothing happens. I can email, and obviously type text online (as here) but cannot 'send' text. I deleted MSG history, cleared cache, cleared recent calls, cleared email history to no avail. I can receive text just dandy but cannot send. Can anyone shed some light here or do I go see the 'geniuses' at the store and get a new phone. ( it seems every time I have a phone problem like this, they can't fix it they just give me another phone) Would really like to not have to go to the store. Thanks in advance for anyones help!

    I would try a few basic things before scheduling an appointment with the Genius Bar.
    1) Sync your iPhone with your computer. I have noticed that sometimes my phone will have a hiccup and when I sync it, whatever was wrong automatically rights itself.
    2) Reset your iPhone holding down the "home" button and the Sleep/Power button on the top right side of the phone at the same time. It takes about 5-15 seconds and you want to make sure you hold down both buttons until you see the apple logo, ignore the slider.
    3) Plug your iPhone into the computer and perform a phone restore. There are 2 options for this:
    a- If you know when this problem started with your SMS messaging you can restore from a backup that was done on a previous sync. Chose a date prior to this issue starting and restore your phone to how it was on that date.
    b- If you don't know when this issue began or restoring it to an earlier date does not fix the problem you can restore it to how it was when it came out of the box.
    I hope that one of these things is able to solve your problem with SMS messaging. If none of these fixes the problem you should schedule an appointment with the Genius Bar and get this resolved with them. If you visit the Genius Bar make sure to sync your iPhone just prior to your appointment so if they need to replace the iPhone you don't lose any calendar entries, recently added contacts, pictures, etc.
    Good luck!
    ~CaliGirl~

  • Cannot send password with UTTSC

    I am having trouble sending a username and password via the SRWC to a VMware View desktop when using the SunRay View Connector on SRSS 4.1 (and 4.2).
    Whenever I try to send a username and password with the following parameters with SRVC:
    -s 10.101.15.240 -d STU -http -- -u student -p northwestern -m -b -r disk:USBDRVS=$HOME/USBDRVS
    I receive the following error:
    [ID 702911 user.error] /opt/SUNWuttsc/bin/uttsc exited with error code 1 - exiting
    with all of the command line options displayed before it.
    When I remove the -u and -p, everything works fine, but I cannot send the username and password that I need to. According to the MAN page, I am using the correct syntax for sending a username and password, but it still will not work no matter what I do. Any thoughts?

    The issue here is that VDM uses one-time login credentials which are passed to the VM. These are set-up on the back-end then communicated to the VDM-tools within the Vm, and to the VMD client on the front end.
    In the case of the Sun Ray VDM client, after identifying the Vm and being told the one-time credentials, it invokes the /etc/opt/SUNWkio/sessions/uttsc/uttsc script. It invokes this script and passes the appropriate -u and -p options. It also passes any options given to it from the "Arguments" field in the GUI.
    I believe that what's happening to get your exit code 1 is that the uttsc script is getting passed two sets of these options; the ones that you put in and the ones that the VDM clients derives.
    You can try a couple of things... The first is to disable the Single Sign On behavior of View. This will require users to auth against the GINA on the host. This will also let uttsc pass the credentials on the Arguments Field. To do this you must edit the GPO for the Vie Agent. Details can be found in the View admin guide.
    Alternatively, you could try editing the uttsc script above to ignore some of the invocation switches and use the -u and -p that you intend

  • Calendar: another iCloud-User cannot send me invitations to meetings.

    Since a few weeks my friend cannot send me invitations to appointments. Both, the email adress of the sender and email adress of the recipient, are provided by iCloud. Additionally the calendar of my friend cannot be shared with me - surpricingly I am able to share my calendar with my friend.
    Any idea how to fix that?

    Hi,
    I suppose you are working in Online Mode?
    I actually read this kb and I think it might be helpful in your case:
    Email remains in the Outbox when you use the DelegateSentItemsStyle registry value
    http://support.microsoft.com/kb/2703723/en-us
    This problem may occur when all the following conditions are true:
    Your Outlook profile is configured in online mode (not cached Exchange mode).
    You have the DelegateSentItemsStyle registry value set to 1.
    There is no resolution to this problem other than to either switch your profile to cached Exchange mode or set the DelegateSentItemsStyle registry value to zero (0).
    Regards,
    Melon Chen
    TechNet Community Support

  • Cannot send email from non .mac server

    I am only able to send/reply emails using my .mac address. My 2 other server addresses keep giving me the following message.
    "Cannot send mail. One of the recipient addresses was invalid".
    How can I fix this?

    You should be able to send email from Safari, however I do wonder why you wish to do this and whether there is something inherently wrong with using your mail app and your iCloud address.

  • Cannot send email from Mail through .mac account

    I have recently opened a .mac account and started using the email service. It works fine online however I am having difficulty sending messages through the Mail application in Tiger.
    Whenever I attempt to send a message, a dialog box appears saying "Cannot send message using the server smtp.mac.com".
    I have tried looking at the setting in preferences. I have deleted and .mac a/c setting in Mail and re-set them up, all the problem persists.
    Please help!

    Hello David.
    Who is your ISP used for connecting to the internet and are you accessing an email account snd SMTP server in Mail provided by your ISP?
    If so, can you send messages with the email account and SMTP server provided by your ISP?
    Most, if not all ISPs now block the use of SMTP servers that are outside of their network (or not provided by the ISP used for connecting to the internet) on Port 25 which is the standard port used for SMTP servers. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless.
    These restrictions are part of an overall effort to prevent spam emanating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings below for the .Mac SMTP server.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
    Test if this resolves the problem.
    If not and you are accessing an email account and SMTP server in Mail that is provided by your ISP used for connecting to the internet, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Cannot send email from promail.ptd in iPad Air

    Help, I have deleted the accounts, rebooted the iPad &amp; nothing has worked. My gmail is working fine but these other two from ptd.net cannot send. And, when I try deleting emails, they flood back into the account.

    Hi,
    Check if you have the Accepted domain settings are correct.
    ECP->Mail Flow->Accepted Domains. Make sure that your default domain is the domain which is having the AD name (eg.domain.local)
    Regards from ExchangeOnline.in|Windows Administrator Area | Skype:[email protected]

Maybe you are looking for

  • IMessage is blocking texts from other iphone users

    I am not able to send or receive texts from other iphone users because of imessage.  I am ready to quit Apple and ATT because of it.  Both my wife and the manager of my business can no longer contact me because of the bugs in iMessage.  I don't care

  • IPhoto09 "Quit unexpectedly"

    Hi guys, recently i have accidentally deleted my iPhoto and cleared the trash can. I have tried to reinstall iPhoto. However, after reinstallation, iPhoto continuously quits unexpectedly when the program is running. I tried many solutions such as del

  • External use of Javascript API

    Hello All, I was wondering two things. 1 - What is the file that contains the javascript API functions. 2 - Could one use this outside the realm of APEX. --> I have a desktop application which connects to APEX and does a whole bunch of things. I have

  • CCR Error 154 - Planned Order Missing in R3 with External Key

    Hi Experts, We have duplicate orders generated for E Type products at a particular locations. When I went into the CCR then one error was observed - Planned Order Missing in R3 with External Key (CCR Error 154). And all the duplicate orders which wer

  • Opening new excel file from available Template-Urgent

    Hi Friends, I have the functionality like this. I have one excel template. In that i am getting two text files(header and row values) and filling it on the excel file. After that i am doing operation on it. These things i have succeded already. The p