• i tried logging into the website after purchase some few days ago it displayed error connecting to database and so i checked the the server and got an error of Uncaught Error: Undefined constant “ABSPATH” Fatal error: Uncaught Error: Undefined constant “ABSPATH” in /home1/uwfjfnp1/public_html/urlofmywebsite/wp-admin/index.php:13 Stack trace: #0 {main} thrown in /home1/uwfjfnp1/public_html/urlofmywebsite/wp-admin/index.php on line 13

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!
    The constant ABSPATH is defined very early in the WordPress environment setup. It’s defined in this file:
    wp-load.php

    When you access this page wp-admin/index.php the file wp-admin/admin.php is inmediately included. That file defines some constants and includes wp-load.php.

    Could you please disable that new plugin and check if the same issue happens?

    What is your WordPress version?

    I would check first if that files has been modified for some reason:

    wp-admin/index.php
    wp-admin/admin.php
    wp-load.php
    Thread Starter th3samaritan

    (@th3samaritan)

    i havent even install the plugins yet i just want to access the wordpress dashboard, i downloaded the wordpress zipfiles from the wordpress website few days ago and uploaded it using ftp

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Undefined constant “ABSPATH”’ is closed to new replies.