LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Header error in Evernote SDK (http://www.litespeedtech.com/support/forum/showthread.php?t=5932)

ftp21 05-17-2012 09:53 AM

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.

NiteWave 05-17-2012 10:55 PM

yes, please, need more info to know what you mean.

NiteWave 05-19-2012 07:13 AM

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.

ftp21 05-22-2012 08:57 AM

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?

NiteWave 05-22-2012 08:05 PM

/oauth/sampleApp.php has same issue, make same code change as index.php.

ftp21 05-23-2012 12:28 AM

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?

NiteWave 05-23-2012 01:00 AM

since the php code need access https://sandbox.evernote.com
so please check if your lsphp5 has built with --with-openssl

ftp21 05-29-2012 07:57 AM

I still get this error how i can fix?

I need to solve this :)

NiteWave 05-29-2012 11:55 PM

please PM your server's ssh access.


All times are GMT -7. The time now is 01:51 AM.