• I have the latest WordPress running s2member Pro framework.
    When a new user registers as a member, they just get a generic error to contact the administrator.

    Here is the s2member API debug log:

    LOG ENTRY: Fri Mar 22nd, 2013 @ precisely 5:15 pm UTC
    PHP v5.3.13 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
    Memory 16.99 MB :: Real Memory 17.50 MB :: Peak Memory 17.01 MB :: Real Peak Memory 17.50 MB
    http://www.suzukimusiclosangeles.com/membership/teacher-registration/
    User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
    array (
    ‘state’ => ‘response’,
    ‘transport_class’ => ‘WP_HTTP_curl’,
    ‘args’ =>
    array (
    ‘method’ => ‘POST’,
    ‘timeout’ => 20,
    ‘redirection’ => 5,
    ‘httpversion’ => ‘1.1’,
    ‘user-agent’ => ‘WordPress/3.5.1; http://www.suzukimusiclosangeles.com’,
    ‘blocking’ => true,
    ‘headers’ =>
    array (
    ‘Accept-Encoding’ => ‘deflate;q=1.0, compress;q=0.5’,
    ‘Content-Type’ => ‘application/x-www-form-urlencoded; charset=UTF-8’,
    ‘Content-Length’ => 1196,
    ),
    ‘cookies’ =>
    array (
    ),
    ‘body’ => ‘METHOD=SetExpressCheckout&RETURNURL=http%3A%2F%2Fwww.suzukimusiclosangeles.com%2Fmembership%2Fteacher-registration%2F%3Fs2member_paypal_xco%3Ds2member_pro_paypal_checkout_return&CANCELURL=http%3A%2F%2Fwww.suzukimusiclosangeles.com%2Fmembership%2Fteacher-registration%2F%3Fs2member_paypal_xco%3Ds2member_pro_paypal_checkout_cancel&PAGESTYLE=paypal&LOCALECODE=&NOSHIPPING=1&SOLUTIONTYPE=Sole&LANDINGPAGE=Billing&ALLOWNOTE=0&PAYMENTREQUEST_0_PAYMENTACTION=Sale&PAYMENTREQUEST_0_DESC=%2450.00+USD+%2F+1+year+access&PAYMENTREQUEST_0_CUSTOM=www.suzukimusiclosangeles.com&PAYMENTREQUEST_0_CURRENCYCODE=USD&PAYMENTREQUEST_0_ITEMAMT=50.00&PAYMENTREQUEST_0_TAXAMT=0.00&PAYMENTREQUEST_0_AMT=50.00&L_PAYMENTREQUEST_0_QTY0=1&L_PAYMENTREQUEST_0_NAME0=%2450.00+USD+%2F+1+year+access&L_PAYMENTREQUEST_0_NUMBER0=3%3A%3A1+Y&L_PAYMENTREQUEST_0_AMT0=50.00&PAYMENTREQUEST_0_SHIPTONAME=Hester+Taylor&PAYMENTREQUEST_0_SHIPTOSTREET=&PAYMENTREQUEST_0_SHIPTOCITY=&PAYMENTREQUEST_0_SHIPTOSTATE=&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US&PAYMENTREQUEST_0_SHIPTOZIP=&EMAIL=hesterltaylor%40gmail.com&VERSION=71.0&USER=carey_api1.corkybird.com&PWD=MXNG9PQ9L9Y8TFA7&SIGNATURE=ALFcB9rWDjHkybTNFNLKZ30mYycYACibtf1zH-SLehyXrtdgk9Hh1ijD’,
    ‘compress’ => false,
    ‘decompress’ => true,
    ‘sslverify’ => false,
    ‘stream’ => false,
    ‘filename’ => NULL,
    ‘s2member’ => ‘130221’,
    ‘_redirection’ => 5,
    ‘ssl’ => true,
    ‘local’ => false,
    ),
    ‘url’ => ‘https://api-3t.paypal.com/nvp’,
    ‘response’ =>
    WP_Error::__set_state(array(
    ‘errors’ =>
    array (
    ‘http_request_failed’ =>
    array (
    0 => ‘connect() timed out!’,
    ),
    ),
    ‘error_data’ =>
    array (
    ),
    )),
    )

    Here is the error logs from my server:

    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T045939: http://www.suzukimusiclosangeles.com/wp-cron.php
    PHP Warning: session_start(): open(/var/php_sessions/sess_f3f8fffed6db4ddf7073becac7affcc2, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web116/b1163/sl.suzukimusic/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 852
    PHP Warning: Unknown: open(/var/php_sessions/sess_f3f8fffed6db4ddf7073becac7affcc2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T045940: http://www.suzukimusiclosangeles.com/index.php
    PHP Warning: session_start(): open(/var/php_sessions/sess_27bdb6c560ee9e1c0be029e9fb469acd, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web116/b1163/sl.suzukimusic/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 852
    PHP Warning: Unknown: open(/var/php_sessions/sess_27bdb6c560ee9e1c0be029e9fb469acd, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T060320: http://www.suzukimusiclosangeles.com/wp-cron.php
    PHP Warning: session_start(): open(/var/php_sessions/sess_962ad3e2d3f9af9a14e3294cb126d139, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web116/b1163/sl.suzukimusic/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 852
    PHP Warning: Unknown: open(/var/php_sessions/sess_962ad3e2d3f9af9a14e3294cb126d139, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T060321: http://www.suzukimusiclosangeles.com/index.php
    PHP Warning: session_start(): open(/var/php_sessions/sess_19491e043720c3130df89ab0ac9b2e4a, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web116/b1163/sl.suzukimusic/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 852
    PHP Warning: Unknown: open(/var/php_sessions/sess_19491e043720c3130df89ab0ac9b2e4a, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T063754: suzukimusiclosangeles.com/index.php
    PHP Warning: session_start(): open(/var/php_sessions/sess_24b44030da0e6a64dd8e33007bc0d8ba, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web116/b1163/sl.suzukimusic/public_html/wp-content/plugins/contact-form-plugin/contact_form.php on line 852
    PHP Warning: Unknown: open(/var/php_sessions/sess_24b44030da0e6a64dd8e33007bc0d8ba, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    PHP Warning: Unknown: Failed to write session data (files). Please verify that the current set
    20121103T063754: http://www.suzukimusiclosangeles.com/wp-cron.php

    Here is my wp-cron.php:

    <?php
    /**
    * WordPress Cron Implementation for hosts, which do not offer CRON or for which
    * the user has not set up a CRON job pointing to this file.
    *
    * The HTTP request to this file will not slow down the visitor who happens to
    * visit when the cron job is needed to run.
    *
    * @package WordPress
    */

    ignore_user_abort(true);

    if ( !empty($_POST) || defined(‘DOING_AJAX’) || defined(‘DOING_CRON’) )
    die();

    /**
    * Tell WordPress we are doing the CRON task.
    *
    * @var bool
    */
    define(‘DOING_CRON’, true);

    if ( !defined(‘ABSPATH’) ) {
    /** Set up WordPress environment */
    require_once(‘./wp-load.php’);
    }

    // Uncached doing_cron transient fetch
    function _get_cron_lock() {
    global $_wp_using_ext_object_cache, $wpdb;

    $value = 0;
    if ( $_wp_using_ext_object_cache ) {
    // Skip local cache and force refetch of doing_cron transient in case
    // another processs updated the cache
    $value = wp_cache_get( ‘doing_cron’, ‘transient’, true );
    } else {
    $row = $wpdb->get_row( $wpdb->prepare( “SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1”, ‘_transient_doing_cron’ ) );
    if ( is_object( $row ) )
    $value = $row->option_value;
    }

    return $value;
    }

    if ( false === $crons = _get_cron_array() )
    die();

    $keys = array_keys( $crons );
    $gmt_time = microtime( true );

    if ( isset($keys[0]) && $keys[0] > $gmt_time )
    die();

    $doing_cron_transient = get_transient( ‘doing_cron’);

    // Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock.
    if ( empty( $doing_wp_cron ) ) {
    if ( empty( $_GET[ ‘doing_wp_cron’ ] ) ) {
    // Called from external script/job. Try setting a lock.
    if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) )
    return;
    $doing_cron_transient = $doing_wp_cron = sprintf( ‘%.22F’, microtime( true ) );
    set_transient( ‘doing_cron’, $doing_wp_cron );
    } else {
    $doing_wp_cron = $_GET[ ‘doing_wp_cron’ ];
    }
    }

    // Check lock
    if ( $doing_cron_transient != $doing_wp_cron )
    return;

    foreach ( $crons as $timestamp => $cronhooks ) {
    if ( $timestamp > $gmt_time )
    break;

    foreach ( $cronhooks as $hook => $keys ) {

    foreach ( $keys as $k => $v ) {

    $schedule = $v[‘schedule’];

    if ( $schedule != false ) {
    $new_args = array($timestamp, $schedule, $hook, $v[‘args’]);
    call_user_func_array(‘wp_reschedule_event’, $new_args);
    }

    wp_unschedule_event( $timestamp, $hook, $v[‘args’] );

    do_action_ref_array( $hook, $v[‘args’] );

    // If the hook ran too long and another cron process stole the lock, quit.
    if ( _get_cron_lock() != $doing_wp_cron )
    return;
    }
    }
    }

    if ( _get_cron_lock() == $doing_wp_cron )
    delete_transient( ‘doing_cron’ );

    die();

    Any ideas???

  • The topic ‘wp-cron.php failing to write session??’ is closed to new replies.