• thezzbiszz

    (@thezzbiszz)


    Hi everyone, I’m having a problems when trying to Add new Post or new Page so here is the problems:

    – I still can edit post, update post, but when I try to add new post or new page, it only show “Submit for preview”. The same thing happen when I try to import or export at wp-admin, the warning appear “You are not allow to edit this post”

    – I tried to log in as Admin, Editor, Author but still that warning.

    – Try some search and I have found this. I tried to change the value in “wp_user_roles” like they said but it doesn’t work.

    – Lastly, I tried to export and import each table in my database to another testing wordpress and the problems lie in the table wp_posts table. Every other table is fine but when I import the wp_posts, it show “Submit for preview” like I describe above. But I don’t know which part in the wp_posts define the role to add new post or page.

    This happen after I install Cloudflare plugin, and use the feature optimize database. After pressing the button optimize, the table wp_posts crashed and I have to manually go to phpMyAdmin to reapair it. But after repairing, another problems is I cannot add new post.

    Does anyone good at sql and can help me to fix the table wp_posts?

    Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi You still have the same problem??
    I think there are lots or reasons for this issue. like if your database is not properly updated or any problem is there in your database then this issue can be come. second thing if your user permission get changed for any other reason then also this problem comes.

    https://www.infoways.in

    in your wp_posts check that the following field:

    post_mime_type does not have a default of nothing / null

    a db script with this:

    post_mime_typevarchar(100) NOT NULL,

    Will result in your error, it should be:

    post_mime_typevarchar(100) NOT NULL DEFAULT ''

    (you can edit this in something like phpmyadmin)

    Thank you Ferahi for the solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin not allowed to edit this post ( wp_posts problems)’ is closed to new replies.