Viewing 13 replies - 1 through 13 (of 13 total)
  • Jorge Luiz

    (@jluizsouzadev)

    1. First off, do you have any previous backups before that issue? If so, just try to restore it and check your site out again. If not, I highly recommend you to back your site up asap for avoinding any futher headaches;
    2. Did you already try to verify whether the post’s in the trash?
    Thread Starter vsacad

    (@vsacad)

    @jluizsouzadev

    Yes sir!

    I already tried restoring the previous backup. But I had not published any posts since last 2 months.

    But took backups. Today when I wanted to publish one post, I cam across this problem

    When I noticed this problem, I quickly took the backup.

    And now waiting for some effective solution. Please help.

    Thread Starter vsacad

    (@vsacad)

    @jluizsouzadev

    I observed following things on my website –

    1. When I activated the Classic Editor plugin Version 1.6.7, then I can easily create new posts.
    2. Then I write the post content and then publish it.
    3. When I reopen that published post, it can be edited in Gutenberg environment, if the classic editor plugin it deactivated.
    4. But if I create new post with classic editor plugin activated and save it in draft mode, then deactivate that plugin, I cannot open the draft of the post in Gutenberg environment.

    Kindly help to solve this problem.

    Moderator threadi

    (@threadi)

    I have two tips:

    • Go to Settings > Permalinks and save them again without changing them.
    • If this does not solve the problem, check under Tools > Site Health to see if anything unusual is reported there.
    Jorge Luiz

    (@jluizsouzadev)

    Considering you’ve updated the WP installation, its plugins, and themes to latest version.

    I’d recommend you to enable the WP debugging mode to check whether you’ll get any warning/error messages. If so, post them here.

    Thread Starter vsacad

    (@vsacad)

    @jluizsouzadev

    I checked everything as per your directions.

    1. Just saved permalink structure without changing anything.
    2. Checked site health. Its good. Only it is suggesting to remove inactive plugins.
    3. I removed three of them, but cannot remove under construction plugin, as we may require at any time, if we have to do major updates – because it is a very large university level website. However, this plugin is right now inactive.
    4. WP installation, its plugins, and themes are up to date.
    5. Also I observed one thing. On the left side, the menu “Dashboard” is not visible. Please check this screenshot.
    6. Also after logged in condition, if I type https://rltsc.edu.in/wp-admin/ in browser and hit enter, I see this. But I am the root user with Administrator level privileges.
    7. Now as per your directions started the debug mode.

    Hope this will solve the problem. However, I have not seen the wp_debug file yet after doing some activity on my dashboard.

    Thread Starter vsacad

    (@vsacad)

    @jluizsouzadev

    When I tried to create new post in dashboard, keeping Classic Editor plugin deactivated, I got this error, in error_log file.

    [13-Dec-2024 10:51:59 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home4/rltsc5ab/public_html/wp-blog-header.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear') in /home4/rltsc5ab/public_html/index.php:17
    Stack trace:
    #0 {main}
    thrown in /home4/rltsc5ab/public_html/index.php on line 17
    [13-Dec-2024 10:56:52 UTC] Cron reschedule event error for hook: nfd_data_sync_cron, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"minutely","args":[],"interval":60}
    [13-Dec-2024 10:57:03 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [13-Dec-2024 11:00:15 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [13-Dec-2024 11:00:27 UTC] Cron reschedule event error for hook: wpo_cron_event2, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"wpo_daily","args":[],"interval":86400}
    [13-Dec-2024 11:00:27 UTC] Cron reschedule event error for hook: wpo_purge_old_cache, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"wpo_purge_old_cache","args":[],"interval":86400}
    [13-Dec-2024 11:00:29 UTC] [ERROR] : WP_CACHE constant is not present in wp-config.php
    [13-Dec-2024 11:00:29 UTC] [ERROR] : WP_CACHE constant is not present in wp-config.php
    [13-Dec-2024 11:00:30 UTC] Cron reschedule event error for hook: wpo_smush_clear_failed_tasks, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"wpo_monthly","args":[],"interval":2592000}
    [13-Dec-2024 11:00:30 UTC] Cron reschedule event error for hook: delete_fonts_folder, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"monthly","args":[],"interval":2592000}
    [13-Dec-2024 19:54:18 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [16-Dec-2024 08:22:58 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [17-Dec-2024 19:02:10 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [20-Dec-2024 16:32:27 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM
    wpus_options WHERE option_name = '_site_transient_timeout_wp_theme_files_patterns-d7a92bdd3b4c2f6e08dcfc0c075cd055' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, _register_theme_block_patterns, WP_Theme->get_block_patterns, WP_Theme->get_pattern_cache, get_site_transient, delete_site_option, delete_network_option, delete_option
    [20-Dec-2024 17:07:22 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wpus_options WHERE option_name = '_site_transient_wp_theme_files_patterns-de15fd3157f9e74bc4b4511cd350ee08' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, _register_theme_block_patterns, WP_Theme->get_block_patterns, WP_Theme->get_pattern_cache, get_site_transient, delete_site_option, delete_network_option, delete_option
    [23-Dec-2024 19:43:45 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [24-Dec-2024 01:18:50 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [24-Dec-2024 08:10:01 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [24-Dec-2024 17:03:25 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [26-Dec-2024 13:18:43 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [27-Dec-2024 04:22:22 UTC] PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH" in /home4/rltsc5ab/public_html/wp-settings.php:33
    Stack trace:
    #0 {main}
    Moderator threadi

    (@threadi)

    These entries are from last year, not up to date. Do you also have more recent entries in the error log?

    Thread Starter vsacad

    (@vsacad)

    @threadi

    Oh….!
    Extremely sorry for the wrong posting.
    Here are the latest error log entries –

    #0 {main}
    thrown in /home4/rltsc5ab/public_html/wp-settings.php on line 33
    [09-Jan-2025 16:43:00 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}
    [10-Jan-2025 19:42:29 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [10-Jan-2025 19:42:29 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [11-Jan-2025 06:30:19 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [11-Jan-2025 06:30:19 UTC] PHP Warning: Cannot modify header information - headers already sent in /home4/rltsc5ab/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 692
    [12-Jan-2025 09:17:58 UTC] PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH" in /home4/rltsc5ab/public_html/wp-settings.php:33
    Stack trace:
    #0 {main}
    thrown in /home4/rltsc5ab/public_html/wp-settings.php on line 33

    I also tried deactivating all plugins and activating them one by one. But no luck, still…

    Kindly help, if you find something out of it. Thanks in advance!

    • This reply was modified 1 year, 4 months ago by vsacad.
    Moderator threadi

    (@threadi)

    Try reinstalling the WordPress core files in the backend via Updates. There is a button for this. Only the files are downloaded and stored again, no data is changed. If you are unsure about this, create a backup beforehand.

    Thread Starter vsacad

    (@vsacad)

    @threadi

    Even though I am the root administrator of this website, I cannot go to this link: https://rltsc.edu.in/wp-admin/update-core.php

    It says: Sorry, you are not allowed to access this page. However, I have access to CPanel of this domain.

    So can I do this: Fist download latest copy of WP from ww.wp.xz.cn and then upload the zip file at the root of the domain and then unzip? I think it is the same as updating core files! I am not sure!

    Please guide.

    • This reply was modified 1 year, 4 months ago by vsacad.
    Thread Starter vsacad

    (@vsacad)

    @threadi

    I just updated the core files.
    But still the problem is same.

    Moderator threadi

    (@threadi)

    If you go the manual route, follow the instructions here: https://ww.wp.xz.cn/documentation/article/updating-wordpress/#manual-update

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Cannot create new post’ is closed to new replies.