Fatal error: Out of memory functions.php on line 380 in Dashboard Marketplace Widget
On the Classipress Dashboard, in the "marketplace" widget, I'm seeing the following error:
Fatal error: Out of memory (allocated 30408704) (tried to allocate 786521 bytes) in /xxxx/x/xxxxxx/xxxxx/website-root-folder/wp-includes/functions.php on line 380
I can not increase memory allocation because I'm on a shared hosting account. I'm not sure what the marketplace widget does and I can live without it. My only concern is that there may be other functions that will fail due to insufficient memory. I'm hoping somenone has a solution that I've overlooked.
For reference, line 380 is the " return serialize( $data );" below.
/**
* Serialize data, if needed.
*
* @since 2.0.5
*
* @param string|array|object $data Data that might be serialized.
* @return mixed A scalar data
*/
function maybe_serialize( $data ) {
if ( is_array( $data ) || is_object( $data ) )
return serialize( $data );
// Double serialization is required for backward compatibility.
// See https://core.trac.wordpress.org/ticket/12930
if ( is_serialized( $data, false ) )
return serialize( $data );
return $data;
}