• Hello,

    I am trying to run a website backup on my localhost and getting this error:

    Parse error: syntax error, unexpected character 0x00, expecting end of file in address/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 225

    I have tried the following:
    1. Download the latest version of WordPress CMS.
    2. Extract all files.
    3. Delete everything except the wp-config.php and /wp-content folder on my backup website.
    4. Copy all files except the wp-content folder from the new WordPress extraction to the backup website folder.

    However, it did not help me fix the problem.

    Please help me to fix this problem so that the backup website works on my localhost.

    Thanks!

    • This topic was modified 2 years, 6 months ago by James Huff. Reason: moved to Localhost Installs since this is a localhost install
Viewing 2 replies - 1 through 2 (of 2 total)
  • Panos

    (@panoshostinger)

    Hey there!??

    You’re not mentioning it, so I’ve to ask, Are you running locally XAMPP for exammple, in order to be able to get your database and site running? Have you created a database locally and imported your backup there? Also, have you changed your wp-config database details to match your localhost ones?

    Those might not be related to the error you’ve mentioned, but they’ll be required for the website to run locally.

    If all those are done correctly and you still get that error, can you please try replacing that specific file:
    /wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php

    With the default one from here?

    A screenshot of the error could be useful as well by the way, if it persists.

    Let me know if that has helped so far. ??

    error when clicking the filtering button on the admin interface

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please help me fix this error Parse error: syntax error, unexpected character’ is closed to new replies.