WordPress

wordpress.org — Nie można utworzyć nowych stron w wordpress

  • 14 marca, 2023
  • 3 min read
wordpress.org — Nie można utworzyć nowych stron w wordpress


Uruchomiłem kod php, aby usunąć niektóre strony bazy danych, kod działał dobrze i zostawiłem zoptymalizowane strony, których potrzebowałem.

Jednak teraz nie mogę w ogóle tworzyć nowych stron.

Stało się to teraz z 2 witrynami, Pierwsza witryna (catering.jobs), koniec fornt daje:

        Warning: Attempt to read property "post_type" on null in /wp-includes/post.php on line 7618

        Warning: Attempt to read property "post_type" on null in /wp-includes/post.php on line 7619

        Warning: Attempt to read property "ID" on null in /wp-includes/post.php on line 7623

        Warning: Attempt to read property "post_type" on null in /wp-includes/post.php on line 7868

        Warning: Attempt to read property "post_type" on null in /wp-includes/theme.php on line 3532

        Warning: Attempt to read property "post_type" on null in /wp-includes/theme.php on line 3757

        Warning: Attempt to read property "post_type" on null in /wp-includes/post.php on line 5405

        Warning: Attempt to read property "ID" on null in /wp-includes/post.php on line 5405

        Warning: Attempt to read property "post_type" on null in /wp-includes/post.php on line 4706

        Warning: Attempt to read property "post_type" on null in /wp-admin/includes/post.php on line 709

        Fatal error: Uncaught Error: Attempt to assign property "post_content" on null in /wp-admin/includes/post.php:748 
        Stack trace: #0 /wp-admin/post-new.php(66): get_default_post_to_edit('page', true) #1 {main} thrown in /wp-admin/includes/post.php on line 748

Dziennik błędów podaje:

         Got error '
    PHP message: PHP Warning:  Attempt to read property "post_type" on null in /wp-includes/post.php on line 7618
    PHP message: PHP Warning:  Attempt to read property "post_type" on null in /wp-includes/post.php on line 7619
    PHP message: PHP Warning:  Attempt to read property "ID" on null in /wp-includes/post.php on line 7623
    PHP message: PHP Warning:  Attempt to read property "post_type" on null in /wp-includes/post.php on line 7868
    PHP message: PHP Warning:  Attempt to read property "post_type" on null in /wp-includes/theme.php on line 3532
    PHP message: PHP Warning:  Attempt to read property "post_type" on null in /wp-includes/theme.php on line 3757

Na drugiej stronie (recruitment-agency.london) frontend podaje:

        Fatal error: Uncaught Error: Attempt to assign property "post_content" on null
    in /wp-admin/includes/post.php on line 748

    Call stack:

    get_default_post_to_edit()
    wp-admin/post-new.php:66

A dziennik błędów podaje:

        Got error '
    PHP message: PHP Fatal error:  Uncaught Error: Attempt to assign property "post_content" on null in /wp-admin/includes/post.php:748\n
    Stack trace:\n#0 /wp-admin/post-new.php(66): get_default_post_to_edit('page', true)\n#1 {main}\n  thrown in /wp-admin/includes/post.php on line 748'

wykonałem następujące czynności:

1- Cleared the cache on server and browser

2- Tried with 2020 theme with no plugins active.

3- Repaired and optimised the database tables.

4- Reinstalled wordpress the latest version.

5- Contatced my hosting support and they had no idea.

Czy ktoś może mi podpowiedzieć?

Warto przeczytać!  Jak dodać wideo z YouTube jako tło pełnoekranowe w WordPress

Pozdrowienia


Źródło