LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Header error in Evernote SDK

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2012, 09:53 AM
ftp21 ftp21 is offline
Member
 
Join Date: Dec 2011
Posts: 17
Default Header error in Evernote SDK

Hello,
I've installed Evernote SDK but Litespeed seems have some problems with sent headers.

When this page is surfed , this CMS try to sent a request to another server, but Litespeed fails in compression page headers and nothing works.

If you want i can paste you the url of the site.
Reply With Quote
  #2  
Old 05-17-2012, 10:55 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, please, need more info to know what you mean.
Reply With Quote
  #3  
Old 05-19-2012, 07:13 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please check error.log. for log like:
Quote:
PHP Warning: session_start() [<a href='function.session-start'> function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /usr/local/lsws6/DEFAULT/html/evernote-evernote-sdk-php-2644e7f/sample/oauth/functions.php:268) in /usr/local/lsws6/DEFAULT/html/evernote-evernote-sdk-php-2644e7f/sample/oauth/index.php on line 35
change code of /oauth/index.php
Quote:
// Include our OAuth functions
require_once('functions.php');

// Use a session to keep track of temporary credentials, etc
session_start(); //--->this is 35th line
to
Quote:
// Use a session to keep track of temporary credentials, etc
session_start();

// Include our OAuth functions
require_once('functions.php');
will fix above error.
Reply With Quote
  #4  
Old 05-22-2012, 08:57 AM
ftp21 ftp21 is offline
Member
 
Join Date: Dec 2011
Posts: 17
Hello,
I modify my code (in the link who i've sent in PM) with your instructions but i receive again the error.

Can you check please?

Last edited by ftp21; 05-22-2012 at 09:03 AM..
Reply With Quote
  #5  
Old 05-22-2012, 08:05 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
/oauth/sampleApp.php has same issue, make same code change as index.php.
Reply With Quote
  #6  
Old 05-23-2012, 12:28 AM
ftp21 ftp21 is offline
Member
 
Join Date: Dec 2011
Posts: 17
Hello,
Thanks for your investigation.

I've modified also /test/sample/oauth/sampleApp.php but i've again the error.

How i search which files need this modify?
Reply With Quote
  #7  
Old 05-23-2012, 01:00 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
since the php code need access https://sandbox.evernote.com
so please check if your lsphp5 has built with --with-openssl
Reply With Quote
  #8  
Old 05-29-2012, 07:57 AM
ftp21 ftp21 is offline
Member
 
Join Date: Dec 2011
Posts: 17
I still get this error how i can fix?

I need to solve this
Reply With Quote
  #9  
Old 05-29-2012, 11:55 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please PM your server's ssh access.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:03 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.