• Hello,

    One of my sites is down with this error:

    image here: https://pasteboard.co/HWbmIVN2NskZ.png

    Parse error: syntax error, unexpected character 0x00, expecting end of file in /home/insightfos/public_html/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php on line 374

    Can someone please help me. Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there,

    What version of WordPress is the site currently on? The most recent version’s version of that file does not have that as you can see from this file: https://github.com/WordPress/WordPress/blob/6.2/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php

    I highly recommend you try to re-install core using an SFTP program like FileZilla or CyberDuck. You can follow a guide like: https://help.dreamhost.com/hc/en-us/articles/360028822932-Reinstall-WordPress-core-files-in-an-existing-site#option2

    Let us know if you have any other questions

    Thread Starter Maria Restrepo

    (@mariarestrepog)

    Hello Jose,

    Thank you so much for your response.

    I tried doing the re-install over my cpanel, but now there is another notification once I refresh the site:

    The MIT License (MIT) Copyright (c) 2013 Yani Iliev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    I am not sure what I did wrong, I followed all the steps as the link you shared, the only thing different was that I did this over Cpanel. So I went back and restored the files that had before.

    I also tried to Reinstall the core from WP toolkit but got this notice:

    Failed to reinstall WordPress core files

    Task in progress

    Downloading WordPress 6.2 (en_US)… md5 hash verified: 354e81106f8197b2b4bbc33a752caa2f

    here a screenshot: https://pasteboard.co/mMLKlqCskh6o.png

    WP integrity: https://pasteboard.co/w2br4Zl5pfl1.png

    Do you have any other recommendation to fix this, please?

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error’ is closed to new replies.