• Resolved mahdigh

    (@mahdigh)


    Hello
    Since after migrating to a new hosting i can’t update one of the post in my wordpress site and get “You are not allowed to see this page” error. i tested other post and they update fine and i can write new post too. my account is admin. here is the things i tried.
    1 – removed my cashe and history and coockies.
    2 – tried another browser.
    3 – updated all plugins and removed deactive ones.
    4 – tried making a new .htaccess file.

    i saw a few fix on youtube and tried them but none worked. what should i do now ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey,

    I would try deactivating all plugins temporarily and seeing if the issue persists. If not then you know it’s one of the plugins causing the problem.

    Otherwise you might enable WP_DEBUG to see if that reveals any errors.

    Beyond that, if you recently migrated to a new host it may be worth reaching out to them to see if they notice anything in their error logs.

    Thread Starter mahdigh

    (@mahdigh)

    `Hey,

    I would try deactivating all plugins temporarily and seeing if the issue persists. If not then you know it’s one of the plugins causing the problem.

    Otherwise you might enable WP_DEBUG to see if that reveals any errors.

    Beyond that, if you recently migrated to a new host it may be worth reaching out to them to see if they notice anything in their error logs.`

    I tried the deactivating all plugins by changing the plugin folder name and it didn’t fix the problem.
    activated debug mode as you said and this is the errors it shows on the site

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Last_Modified has a deprecated constructor in /home/…../public_html/wp-content/plugins/last-modified-posts/LastModfifiedWidget.php on line 13

    Deprecated: The called constructor method for WP_Widget in Last_Modified is deprecated since version 4.3.0! Use __construct() instead. in /home/…./public_html/wp-includes/functions.php on line 5409

    • This reply was modified 3 years, 1 month ago by mahdigh.

    Hmm, I don’t think that error will be related, but it’s probably worth deactivating the Last Modified Posts plugin for now, just in case.

    It’s strange that this is only happening for one post. Are you able to view that post on the frontend? What happens if you log in as a different user (with editor privileges)?

    Thread Starter mahdigh

    (@mahdigh)

    Hmm, I don’t think that error will be related, but it’s probably worth deactivating the Last Modified Posts plugin for now, just in case.

    It’s strange that this is only happening for one post. Are you able to view that post on the frontend? What happens if you log in as a different user (with editor privileges)?

    I deactivated that plugin and didn’t solve the problem.
    I made 2 new users. one as admin and another one as editor. both of them receive the same error.

    Solved it with with deleting a portion of the post although in the end i didn’t understand what was the problem. since the code was one for centering the text and color. nothing else was in post.

    Thanks for helping me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘You are not allowed to see this page’ is closed to new replies.