Session start & headers already sent Issue

This topic contains 9 replies, has 4 voices, and was last updated by  Stiofan O’Connor 10 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #39463

    Steve Tilling
    Free User
    Post count: 4

    Hi I have an issue with v1.4.5 this is the first instance of this plugin and I’m finding it very frustrating. It worked initially for a short while but suddenly started outputting this on every page. I have re-installed the plugin and lost all of my set up in an attempt to fix this.

    Warning: session_start() [function.session-start]: open(/tmp/sess_af3e42a81c84ca51d585bb294c93b688, O_RDWR) failed: No such file or directory (2) in /home/xxx/public_html/wp-content/plugins/geodirectory/geodirectory.php on line 27

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/xxx/public_html/wp-content/plugins/geodirectory/geodirectory.php:27) in /home/xxx/public_html/wp-content/plugins/geodirectory/geodirectory.php on line 27

    what is this and how can i fix it?

    I have WordPress 4.2.2

    #39475

    Guust
    Moderator
    Post count: 29970

    http://docs.wpgeodirectory.com/faqs/help-i-get-a-php-warning-on-my-pages/
    They are only warnings, so implement the code in the link above.

    #39567

    Steve Tilling
    Free User
    Post count: 4

    Hi Guust

    Thanks for the quick reply. I have reviewed that code and implemented it but the errors remain on every single page of the site while the Geo directory plugin is active.

    Is there more to it than an single line of code?

    Thanks for taking the time to look in to this for me.

    Steve

    #39635

    Guust
    Moderator
    Post count: 29970

    Can you post your URL and admin details please, you can do that in a private message.

    #39787

    Steve Tilling
    Free User
    Post count: 4
    This reply has been marked as private.
    #39821

    Paolo
    Site Admin
    Post count: 31211

    Hi Steve,

    please post the requested info here in a private message, if you send them via email only Guust will be able to assist you, while here all and only moderators can read private messages and we can assist faster.

    Thanks

    #39879

    Steve Tilling
    Free User
    Post count: 4
    This reply has been marked as private.
    #39918

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    sesstions folder not writable would be my best guess.

    Please change permission to the /temp/ folder, or ask to your server admin to do it.

    That should solve this.

    Let us know,

    Thanks

    #39988

    Steve Tilling
    Free User
    Post count: 4

    Hi

    I did go through the temp permissions as part of another fix for an uploading issue with the media.
    Are the sessions folder specific of just the normal tmp folder in the root. This folder already has 777 permission as well as 2 other tmp folders. And if they are specific, where are they likely located?

    Steve

    #40059

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Steve,

    All the errors are caused by the first error, which is sessions are not working, i am not sure what hosting u are using but this is a basic thing that your host should be able to fix in no time.

    If you are self hosted:
    It is telling us the folder does not exist, you can use this code to check where it is checking

    
    
    $foldername = session_save_path();
        if (is_writable($foldername)) {
            echo '<br>The Sessions folder is writable:'.$foldername;
        } else {
            echo '<br>The Sessions folder is not writable:'.$foldername;
        }

    or you can pass FTP and we can have a look, but if you are paying for hosting tell them to get their finger out 🙂

    Thanks,

    Stiofan

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount