Support » Fixing WordPress » Error adding page

  • I am having problems adding a page to my WordPress installation, clicking Add new, the options are super limited, and it appears as if you were editing the “blog” page, but as it is new page can not have this configuration, And I can not save the page, giving a permission error, and my user is an administrator.
    Another error is also when I create a new user, the same does not appear the name in the list and when I click edit it is with ID 0. What can be done? I already tried to restore the database through the WordPress panel, I also tried to restore the installation and it continues with the same error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Volunteer

    It sounds like your database may be corrupted. From your hosting control panel, access phpmyadmin. Select all the tables in your database then, at the bottom where it says “with selected”, select “check”.

    @roger_arruda – check what is your DB size limit. Once I’ve created a DB with a 1MB limit and had the same problem.

    Hi @sterndata and @palmiak
    I activated WordPress’s DEBUG and appeared in the log in to create a new page.

    Erro no banco de dados do WordPress: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO wp_posts (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) VALUES
    (1, ‘2017-06-06 13:15:42’, ‘0000-00-00 00:00:00’, ”, ”, ‘Rascunho automático’, ”, ‘auto-draft’, ‘page’, ‘closed’, ‘closed’, ”, ”, ”, ”, ‘2017-06-06 13:15:42’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”)

    Warning: Creating default object from empty value in /home/portal/portalunimontes/relatoriogestao/2016/wp-admin/includes/post.php on line 641

    Notice: Undefined property: stdClass::$ID in /home/portal/portalunimontes/relatoriogestao/2016/wp-admin/post-new.php on line 84

    Notice: Undefined property: stdClass::$post_date in /home/portal/portalunimontes/relatoriogestao/2016/wp-admin/edit-form-advanced.php on line 133

    Notice: Undefined property: stdClass::$post_status in /home/portal/portalunimontes/relatoriogestao/2016/wp-admin/edit-form-advanced.php on line 185

    Notice: Undefined property: stdClass::$post_status in /home/portal/portalunimontes/relatoriogestao/2016/wp-admin/edit-form-advanced.php on line 219

    Notice: Undefined property: stdClass::$post_type in /home/portal/portalunimontes/relatoriogestao/2016/wp-includes/taxonomy.php on line 201

    Notice: Undefined property: stdClass::$post_type in /home/portal/portalunimontes/relatoriogestao/2016/wp-includes/taxonomy.php on line 203

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Volunteer

    Your database seems corrupt. Do you have a backup? Did you try the steps I suggested?

    Can you delete your current database?

    Than try new WP install. It looks like id field isn’t autoincremenating.

    If it won’t work contact your hosting support and give them this topic’s link – thay should know what to do.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error adding page’ is closed to new replies.