• Hi Team,

    Could you please help us fixing these errors/warnings shown in the log file of our website file manage home directory?

    [06-Jun-2022 01:09:13 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 01:09:13 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 01:09:13 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 01:09:13 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 01:09:13 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 01:09:20 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 01:09:35 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 01:09:35 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 01:09:35 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 01:09:35 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 01:09:35 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 01:09:54 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17
    [06-Jun-2022 02:17:28 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 02:17:28 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 02:17:28 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 02:17:28 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 02:17:28 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 02:18:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 02:20:04 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 02:20:04 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 02:20:04 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 02:20:04 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 02:20:04 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 02:21:11 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17
    [06-Jun-2022 04:17:02 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:17:02 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:17:02 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:17:02 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:17:02 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:18:00 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 04:19:35 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:19:35 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:19:35 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:19:35 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:19:35 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:20:05 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:20:05 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:20:05 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:20:05 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:20:05 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:20:26 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 04:21:09 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17
    [06-Jun-2022 04:22:08 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:22:08 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:22:08 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:22:08 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:22:08 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:22:57 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17
    [06-Jun-2022 04:49:14 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:49:14 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:49:14 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:49:14 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:49:14 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 04:50:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 04:51:53 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:51:53 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:51:53 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:51:53 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:51:53 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 04:52:46 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17
    [06-Jun-2022 05:02:30 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 05:02:30 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 05:02:30 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 05:02:30 UTC] PHP Warning: require(ABSPATHWPINC/class-requests.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 05:02:30 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/class-requests.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/class-wp-http.php on line 11
    [06-Jun-2022 05:03:20 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_the_block_template_html() in /home/pcstudio/public_html/wp-includes/template-canvas.php:12
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/template-canvas.php on line 12
    [06-Jun-2022 05:05:07 UTC] PHP Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 05:05:07 UTC] PHP Warning: Use of undefined constant WPINC – assumed ‘WPINC’ (this will throw an Error in a future version of PHP) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 05:05:07 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 05:05:07 UTC] PHP Warning: require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such file or directory in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 05:05:07 UTC] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/blocks/archives.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/pcstudio/public_html/wp-includes/blocks/index.php on line 9
    [06-Jun-2022 05:05:56 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Widget’ not found in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php:17
    Stack trace:
    #0 {main}
    thrown in /home/pcstudio/public_html/wp-includes/widgets/class-wp-widget-block.php on line 17

    Let me know if you need any further information.

    We have recently updated/replaced the wordpress core files in the file manager as per the latest update.

    Thanks
    Shashikant

Viewing 10 replies - 1 through 10 (of 10 total)
  • As it seems mainly undeclared constants creating the issue – e.g. ABSPATH It looks like something is trying to run WP code or functions without first loading WP.

    Do you have any custom processes?

    Thread Starter shashikant91

    (@shashikant91)

    Hi @alanfuller

    As such no custom processes except WooCommerce & it’s related plugins needed for E-commerce website.

    Are you looking at any specific process?

    Have you tried re-installing WP – it may have been corrupted on upgrade – e.g. disc full. You can re-install from Dashboard > Updates

    Thread Starter shashikant91

    (@shashikant91)

    @alanfuller

    We haven’t tried that option of re-installing the WordPress.

    I can try that if you want us to do so from the ftp or file manager as updates of wordpress from dashboard has been disabled somehow.

    When ever we update it from dashboard it never happens.

    Please be aware, all help here is voluntary from people trying to help.

    Also always make sure you have a backup before overwriting stuff

    as updates of wordpress from dashboard has been disabled somehow.

    When ever we update it from dashboard it never happens.

    This is a possible clue as to what may be is going wrong.

    Thread Starter shashikant91

    (@shashikant91)

    @alanfuller

    Thanks!

    Any idea on how to enable the updates from the dashboard back again?

    Usually why do they disable updates from dashboard? Is it for any security reasons?

    This might be a one time solution for such errors / warnings.

    Let me know if that block can be removed. Else do you want us to try updating new files in the file manager?

    I have not head of updates from dashboard being disabled, are you sure you have admin rights on your user? ( I have heard about auto updates being disabled but that is different ).

    Ideally you should reinstall from the dashboard or the command line using WP CLI as a manual effort may be prone to mistakes, but in theory you can do it manually.

    Thread Starter shashikant91

    (@shashikant91)

    Ok. Let me try it manually from the File Manager itself then.

    deeeesign

    (@designnewdaymediacom)

    I’ve been receiving these exact warnings and errors on my site – did re-installing WordPress do the trick?

    As per forum guide lines, it is always better to start your own thread for a couple of reasons
    1) a response to another thread is less visible
    2) even similar issues may actually be totally different

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Uncaught PHP Fatal Error in Log File’ is closed to new replies.