Page 1 of 1

Multiste Error message when saving settings

PostPosted: May 26th, 2011, 1:00 am
by denvert
I'm trying to set up multisite config and am getting an error message out of memory on a shared hosting account that is set to 64m of memory:

Out of memory (allocated 64749568) (tried to allocate 2621422 bytes)

I tried doing the patch manually and get a bunch of errors when trying to follow the instructions to set that up.

Also can't figure out how users can just register for individual blogs without getting re-directed to main site.

Is there any documentation on implementing multiste together? Haven't been able to find it.

Thanks

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 10:00 am
by denvert
Also, If I am able to get the settings to change is it supposed to re-direct to the main blog when registering or can the registration page still stay on the same site that the user is registering to?

I'm trying to set this up and am getting redirected to the main blog when trying to register and then it's saying that the registration is disabled even though it's set to be enabled on the multisite config page (although I can't tell if these settings are really taking effect since i'm getting the above memory which is leading me to believe this isn't getting set).

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 4:24 pm
by Jason Caldwell
Thanks for your inquiry.

Yes, the confusion you're seeing is almost certainly related to the errors during the Multisite (Config) patches being applied. "Out of memory". Hmm, what other plugins are you running? s2Member should be just fine with 64MB of RAM. It sounds like you might have several plugins activated, pushing you over that limit collectively. Please report back with any additional information you can provide.

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 4:40 pm
by denvert
It's a multisite account obviously but there aren't any other plugins running and the setting is in the super-admin area, there aren't any other plugins running.

When I go to the main blog for the site I have a system resource plugin running which is saying there is 22.44 mb or memory running.

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 5:04 pm
by Jason Caldwell
OK. Thanks for the follow-up.
Can you please tell me what version of PHP/WordPress and s2Member you're running please?

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 5:24 pm
by Jason Caldwell
At this point, I have to assume it's a compatibility issue. There must be something going wrong during the processing of this particular page in your Dashboard; resulting in memory loss. Once I see the versions that you're running, perhaps we can take a closer look and offer some suggestions.

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 5:31 pm
by denvert
Out of memory (allocated 64749568) (tried to allocate 44 bytes) in /home/xxxx/public_html/wp-includes/functions.php on line 1028

full error message above,

php 5.2.15
wordpress 3.1.3

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 8:32 pm
by Jason Caldwell
Thanks for the follow-up.

That section of code references the following core WordPress function:
Code: Select all
function maybe_serialize( $data ) {
    if ( is_array( $data ) || is_object( $data ) )
        return serialize( $data );

    if ( is_serialized( $data ) )
        return serialize( $data );

    return $data;
}
 
This function is used by some of the WordPress data storage routines, and just taking a wild guess at this point, I'd say your database has become corrupted somehow, and one of the arrays and/or objects that WordPress is trying to serialize is unnecessarily large.

Couple of things to try.

1. Start all over with a clean installation of WordPress.
2. Or attach a debug_backtrace() to that section of the code generating the error.
Open /wp-includes/functions.php and change it to something like this temporarily:
Code: Select all
function maybe_serialize( $data ) {

file_put_contents(WP_CONTENT_DIR."/debug.log", var_export(debug_backtrace(), true));

    if ( is_array( $data ) || is_object( $data ) )
        return serialize( $data );

    if ( is_serialized( $data ) )
        return serialize( $data );

    return $data;
}
 
When the error occurs the next time, open the /wp-content/debug.log file and post the contents of that file for us to review please.

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 10:27 pm
by denvert
I xxx out my domain name, below is log file,

Code: Select all
array (
  0 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-includes/functions.php',
    'line' => 532,
    'function' => 'maybe_serialize',
    'args' =>
    array (
      0 =>
      array (
        'login_welcome_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
        'membership_options_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
        'file_download_limit_exceeded_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
      ),
    ),
  ),
  1 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php',
    'line' => 81,
    'function' => 'update_option',
    'args' =>
    array (
      0 => 'ws_plugin__s2member_cache',
      1 =>
      array (
        'login_welcome_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
        'membership_options_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
        'file_download_limit_exceeded_page' =>
        array (
          'time' => 1306466498,
          'page' => '',
          'link' => 'http://xxxxxxwebdesign.com/?page_id=0',
        ),
      ),
    ),
  ),
  2 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-content/plugins/s2member/includes/classes/constants.inc.php',
    'line' => 30,
    'function' => 'cached_page_links',
    'class' => 'c_ws_plugin__s2member_cache',
    'type' => '::',
    'args' =>
    array (
    ),
  ),
  3 =>
  array (
    'function' => 'constants',
    'class' => 'c_ws_plugin__s2member_constants',
    'type' => '::',
    'args' =>
    array (
      0 => '',
    ),
  ),
  4 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-includes/plugin.php',
    'line' => 395,
    'function' => 'call_user_func_array',
    'args' =>
    array (
      0 => 'c_ws_plugin__s2member_constants::constants',
      1 =>
      array (
        0 => '',
      ),
    ),
  ),
  5 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-settings.php',
    'line' => 298,
    'function' => 'do_action',
    'args' =>
    array (
      0 => 'init',
    ),
  ),
  6 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-config.php',
    'line' => 92,
    'args' =>
    array (
      0 => '/home/xxxxxx/public_html/wp-settings.php',
    ),
    'function' => 'require_once',
  ),
  7 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-load.php',
    'line' => 30,
    'args' =>
    array (
      0 => '/home/xxxxxx/public_html/wp-config.php',
    ),
    'function' => 'require_once',
  ),
  8 =>
  array (
    'file' => '/home/xxxxxx/public_html/wp-blog-header.php',
    'line' => 12,
    'args' =>
    array (
      0 => '/home/xxxxxx/public_html/wp-load.php',
    ),
    'function' => 'require_once',
  ),
  9 =>
  array (
    'file' => '/home/xxxxxx/public_html/index.php',
    'line' => 17,
    'args' =>
    array (
      0 => '/home/xxxxxx/public_html/wp-blog-header.php',
    ),
    'function' => 'require',
  ),
)

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 10:54 pm
by Jason Caldwell
Thanks for the follow-up.

OK. Nothing out of the ordinary here. If you'd like me to have a closer look for you, please send me a Dashboard login with Super Administrative access along with an FTP login to this installation. You can submit those details through this private contact form: http://www.s2member.com/contact/

I'll be happy to take a look and see what the problem is.

Re: Multiste Error message when saving settings

PostPosted: May 26th, 2011, 11:39 pm
by Jason Caldwell
Investigating now. Thank you.

Re: Multiste Error message when saving settings

PostPosted: May 27th, 2011, 12:39 am
by Jason Caldwell
Investigation completed.
After running several debug_backtrace() calls in various areas of your system, I discovered that your database field that stores WP_Cron tasks was corrupted with over 4MB of serialized data containing this same entry. 4MB is HUGE when WordPress is trying to re-serialize it.
Code: Select all
  1278263420 =>
  array (
    'mca_savedata_event' =>
    array (
      '40cd750bba9870f18aada2478b24840a' =>
      array (
        'schedule' => 'daily',
        'args' =>
        array (
        ),
        'interval' => 86400,
      ),
    ),
  ),
  1278263422 =>
  array (
    'mca_savedata_event' =>
    array (
      '40cd750bba9870f18aada2478b24840a' =>
      array (
        'schedule' => 'daily',
        'args' =>
        array (
        ),
        'interval' => 86400,
      ),
    ),
  ),
* This appears to be "mca_savedata_event", associated with a MailChimp plugin. So you may have had this plugin running at some point in the past? It corrupted your database.

100% Resolved

I cleaned this out and ran a reset on this internal array to correct the issue.
You should be good now.

Re: Multiste Error message when saving settings

PostPosted: May 27th, 2011, 9:14 am
by denvert
Thanks so much for the help Jason!!