[wp-trac] [WordPress Trac] #59497: There are pages or posts are not working update

WordPress Trac noreply at wordpress.org
Thu Dec 14 16:26:10 UTC 2023


#59497: There are pages or posts are not working update
-------------------------------------------------+-------------------------
 Reporter:  utsav72640                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:  6.4
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-testing-info       |     Focuses:
  reporter-feedback                              |
-------------------------------------------------+-------------------------

Comment (by lakshmananphp):

 Note:

 This is an env-related issue rather than a core bug. This error occurs
 when the htaccess file is not found and makes the wp-json/ path not work,
 eventually resulting in the error as reported in the ticket.

 == Bug Test report
 === Bug scrub update

 Props to @khoipro @jorbin

 The error occurs when .htaccess files is not found.
 Saving permalinks would help create or update the htaccess and hence
 solves this issue.

 === Environment
 - WordPress: 6.4.2
 - PHP: 8.1.20
 - Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f
 - Database: mysqli (Server: 10.6.14-MariaDB-1:10.6.14+maria~ubu2004 /
 Client: mysqlnd 8.1.20)
 - Browser: Chrome 120.0.0.0 (macOS)
 - Theme: Twenty Twenty-Four 1.0
 - MU-Plugins: None activated
 - Plugins:
   * WordPress Beta Tester 3.5.5

 === Steps to Reproduce
 1. Rename .htaccess
 2. Add a new post or page
 x. 🐞 Bug occurs.

 === Expected Results
 1.  ✅ save without errors

 === Actual Results
 1.  ❌ Unable to save

 === Steps to fix

 Save permalinks again (to generate htaccess or update it)
 Save works without errors

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59497#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list