• Hi,
    I have encountered a recent error in my wordpress site.
    I am unable to add any post type. After enabling debugging from wp-config.php, I got these errors.

    Notice: Trying to get property of non-object in /home2/myliquo1/public_html/wp-includes/post.php on line 5827

    Warning: Creating default object from empty value in /home2/myliquo1/public_html/wp-admin/includes/post.php on line 632

    Notice: Undefined property: stdClass::$ID in /home2/myliquo1/public_html/wp-admin/post-new.php on line 84

    Notice: Undefined property: stdClass::$post_date in /home2/myliquo1/public_html/wp-admin/edit-form-advanced.php on line 133

    Notice: Undefined property: stdClass::$post_status in /home2/myliquo1/public_html/wp-admin/edit-form-advanced.php on line 185

    Notice: Undefined property: stdClass::$post_type in /home2/myliquo1/public_html/wp-includes/taxonomy.php on line 183

    Notice: Undefined property: stdClass::$post_status in /home2/myliquo1/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php on line 171

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 38433 bytes) in /home2/myliquo1/public_html/wp-content/plugins/js_composer/include/classes/vendors/plugins/class-vc-vendor-woocommerce.php on line 1136

    URGENT…!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

    Thread Starter jack4arpit

    (@jack4arpit)

    I know that “js_composer” is causing this error. If I disable it, everything works fine. But I need this plugin. I have tried re-installing it, still the same.
    Also tried increasing memory limit to 256M, still same. php memory limit also increased to 256M. Nothing worked.

    What do you suggest next?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You should talk to the plugin developers about this issue, as we don’t support commercial plugins.

    You’ll need to contact the plugin developer. I can’t find a plugin with that name, but it seems to be related to Visual Composer, possibly even an old version of it. Is that correct?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to add any POST type. Memory Exhausted. Have tried memory allocation.’ is closed to new replies.