• Hello

    Recently I change password from php my admin in wp_option ,

    i can’t change password from WordPress dashboard so I think password can be changed from wp_option

    but when I changed password i can’t login to my admin panel .

    today now website is showing { There has been a critical error on this website. } and in cpanel error log there is error showing PHP Parse error: syntax error, unexpected character 0x00, expecting end of file in /home1/xxxxx/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212

    and also there is some unknown files i did not see early these are 3 text genric here is screenshot

    https://ibb.co/cy8Qvxq

    Please help me

    thanks

    chandan

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Critical Error:
    Since the problem can be caused by any number of things, check the error log on your server. If you can’t find the log, please contact your host. Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/

    You may also try: plugin and theme
    – Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
    – If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Also review the following article for details on this error and how to fix it:
    https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-critical-error-in-wordpress/
    https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/

    Thread Starter chandan435

    (@chandan435)

    hello

    i did debug in wp config yesterday , today i checked in wp content but there is no debug log also enable show hiden file .

    here is error log

    [15-May-2023 17:38:36 UTC] PHP Warning:  Constant WP_DEBUG already defined in /home1/a1669t/public_html/wp-config.php on line 95
    [15-May-2023 17:38:36 UTC] PHP Warning:  Constant WP_DEBUG_LOG already defined in /home1/a1669t/public_html/wp-config.php on line 98
    [15-May-2023 17:38:36 UTC] PHP Warning:  Constant WP_DEBUG_DISPLAY already defined in /home1/a1669t/public_html/wp-config.php on line 101
    [15-May-2023 17:38:36 UTC] PHP Parse error:  syntax error, unexpected character 0x00, expecting end of file in /home1/a1669t/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212

    also i tried manully disable plugin but nothing works . and renamed the theme directory also upload twentytwenty theme but not works

    here is wp config screen shot of line what i added for debug highlited in yellew https://ibb.co/PmdDktw

    Thread Starter chandan435

    (@chandan435)

    i get it now i changed in wp config debug code and now its showing debug log .

    here is debug log

    [15-May-2023 18:27:47 UTC] PHP Parse error:  syntax error, unexpected character 0x00, expecting end of file in /home1/a1669t/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212
    [15-May-2023 18:28:36 UTC] PHP Parse error:  syntax error, unexpected character 0x00, expecting end of file in /home1/a1669t/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212
    [15-May-2023 18:32:50 UTC] PHP Parse error:  syntax error, unexpected character 0x00, expecting end of file in /home1/a1669t/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212
    [15-May-2023 18:33:36 UTC] PHP Parse error:  syntax error, unexpected character 0x00, expecting end of file in /home1/a1669t/public_html/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php on line 1212
    • This reply was modified 2 years, 11 months ago by chandan435.
    Moderator t-p

    (@t-p)

    and also there is some unknown files i did not see early

    Install the plugin Wordfence plugin and do full scan of your site.

    Also try reviewing: https://wordpress.org/documentation/article/common-wordpress-errors/#parse-errors

    Thread Starter chandan435

    (@chandan435)

    i already install wordfence plugin , i cant login in my admin panel .

    also i did not did create or add any php ,

    please guide how to fix these error

    Thread Starter chandan435

    (@chandan435)

    here is functions.php on line 5865 error https://ibb.co/DQTzP2b

    here is class-wp-rest-block-pattern-categories-controller.php on line 1212 error https://ibb.co/TBCgqcq

    I did not edit any line on those code , plese guide me how to fix these lines

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

The topic ‘Edit password from php my admin in wp_options’ is closed to new replies.