• barbaralehmann

    (@barbaralehmann)


    [Mon Jun 02 00:31:40.330477 2025] [proxy_fcgi:error] [pid 15238:tid 38855605504] [client 185.191.171.16:45354]

    AH01071: Got error ‘PHP message: PHP Warning: Constant ABSPATH already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 13PHP message: PHP

    Warning: Constant AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 14PHP message: PHP

    Warning: Constant SECURE_AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 15PHP message: PHP

    Warning: Constant LOGGED_IN_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 16PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/riemensd/www/riemensdesign.ch/wp-includes/load.php:607\nStack trace:\n#0 /home/riemensd/www/riemensdesign.ch/wp-settings.php(282): wp_magic_quotes()\n#1 /home/riemensd/www/riemensdesign.ch/wp-config.php(22): require_once(‘/home/riemensd/…’)\n#2 /home/riemensd/www/riemensdesign.ch/wp-load.php(37): require_once(‘/home/riemensd/…’)\n#3 /home/riemensd/www/riemensdesign.ch/wp-blog-header.php(12): require_once(‘/home/riemensd/…’)\n#4 /home/riemensd/www/riemensdesign.ch/index.php(17): require(‘/home/riemensd/…’)\n#5 {main}\n thrown in /home/riemensd/www/riemensdesign.ch/wp-includes/load.php on line 607′

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • bvbaked

    (@bvbaked)

    You should start by checking your wp-config.php file to ensure the constant ABSPATH is not being defined twice.

    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
    define( 'ABSPATH', __DIR__ . '/' );
    }

    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';

    This is what I have at the end of mine. Based on the error message, there may be a second line defining this constant and the conditional check may be missing here, so it gets defined twice. The other errors my be caused by this, so start with this and see if it fixes anything

    durdesh

    (@durdesh)

    Use the !defined() check to prevent redefinition.

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(FILE) . '/');

    Check your wp-config.php file (and any includes it has) for duplicate definitions. Constants should only be defined once, like this.

    • This reply was modified 6 months ago by durdesh.
    Sandeep Dahiya

    (@sandeepdahiya)


    AH01071: Got error ‘PHP message: PHP Warning: Constant ABSPATH already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 13PHP message: PHP

    Warning: Constant AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 14PHP message: PHP

    Warning: Constant SECURE_AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 15PHP message: PHP

    Warning: Constant LOGGED_IN_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 16

    From above error, it seems that you have constants ABSPATH, AUTH_KEY are defined more than once in your wp-config.php. Try the fixes mentioned above.

    PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/riemensd/www/riemensdesign.ch/wp-includes/load.php:607

    For this, get_magic_quotes_gpc() has been completely removed in PHP 7.4 and later versions but your WordPress version is still calling it which means you need to update your WordPress version.

    Thread Starter barbaralehmann

    (@barbaralehmann)

    Thank you for your answer! I have tried with your codes at the end of my wp-config.php file. Unfortunatly I get still the same errorlog

    Moderator threadi

    (@threadi)

    The above codes should not be inserted at the end of the file. There is also a corresponding comment in the file indicating where changes can be made.

    Take another close look at your wp-config.php file. ABSPATH must be stored twice somewhere.

    You are welcome to post the content here. However, I would recommend removing the database access data. And use the code block to insert code here in the forum, see: https://wordpress.org/support/forum-user-guide/block-editor/#code-block

    Shubham Patil

    (@iamshubhamsp)

    Hello barbaralehmann
    Please check your wp-config.php file. It is showing that in the wp-config.php you have ABSPATH 2 times. Instead are you able to share code of your wp-config.php file in this forum. Replace your all main credentials from the config file.

    Thread Starter barbaralehmann

    (@barbaralehmann)

    .{aAFiC8VHKHB5(ky{Rs6BJ2=t9c{,=wtJ8eQ~+8_P)O+F'); define('SECURE_AUTH_KEY', '4/fmI}NRyPQr'); define('AUTH_SALT', 'e-NXx-n.2#st?_MP+mM3N[ojr^ba^[dp)uAy_{f!C+fl+V,pmh1g7Gu|%%|OH1Z’); define(‘SECURE_AUTH_SALT’, ‘b)^S]I$a[hQ@%q$5di=m=}P8wxtos2|f|L|Q;Qg2g*)>t:6FKqLm+OfomwXfnR]]’); define(‘LOGGED_IN_SALT’, ‘LnyQ&6+eho~y0_iq; XLd]=-+&rKwq9-O3{v*2gow[y#%d9~IO}YvvZo!igK^Fu'); define('NONCE_SALT', 'MnO:k>S1kqo;d|A/FMLHp3B2!A!,JShrs@%spN?#BbN}0yM/TgI*?

    Thread Starter barbaralehmann

    (@barbaralehmann)

    “); define(“DB_USER”, ““); define(“DB_PASSWORD”, “***”);
    define(“DB_HOST”, “riemensd.mysql.db.internal”);
    define(“AUTH_KEY”, “ClygCujefidkes4”);
    define(“SECURE_AUTH_KEY”, “irtyolpipAnk3”);
    define(“LOGGED_IN_KEY”, “dubsoctEb2”);
    $table_prefix = “wp_”;
    define (“WPLANG”, “”);

    define(‘DB_CHARSET’, ‘utf8mb4’);
    define(‘DB_COLLATE’, ”);
    define(“ABSPATH”, dirname(FILE).”/”);
    define(‘AUTH_KEY’, ‘3nLnn75D^UNU0~~|>.{aAFiC8VHKHB5(ky{Rs6BJ2=t9c{,=wtJ8eQ~+8_P)O+F'); define('SECURE_AUTH_KEY', '4/fmI}NRy<pvPEW6;T;!p<?{An@I|~RN3%M%VYRrQesA=2i9/YQB6-]UE)[qyZ^’);
    define(‘LOGGED_IN_KEY’, ‘oyoU@fC -B&E!ZE Tfhw^hwOGh 4ED?KnD^ri:A7+MR6zpYqE.[c!n5o=dvOlv’);

    define(‘NONCE_KEY’, ‘_GV9WR~o,;W$Bp6NB!]<99)0T)ONCK &7m( i;v]a->^qdp>PQr’);
    define(‘AUTH_SALT’, ‘e-NXx-n.2#`st?MP+mM3N[ojr^ba^[dp)uAy{f!C+fl+V,pmh1g7Gu|%%|OH1Z’);<br>define(‘SECURE_AUTH_SALT’, ‘b)^S]I$a[hQ@%q$5di=m=}P8wxtos2|f|L|Q;Qg2g*)>t:6FKqLm+OfomwXfnR]]’);</em></p> <p>define(‘LOGGED_IN_SALT’, ‘LnyQ&6+eho~y0_iq; XLd]=-+&rKwq9-O3{v*2gow[y#%d9~IO}YvvZ`o!igK^Fu’);

    define(‘NONCE_SALT’, ‘MnO:k>S1kqo;d|A/FMLHp3B`2!A!,JShrs@%spN?#BbN}0yM/TgI*?

    <Iu9H|6.qX’);require_once(ABSPATH.”wp-settings.php”);?>

    Moderator threadi

    (@threadi)

    Unfortunately you did not use the code block to post the code here in the forum as I recommended. But I see this line in the middle of the gibberish:

    define("ABSPATH", dirname(FILE)."/");

    You have to remove this line IF it is not at the end of the file. It belongs only once at the end of the file and not somewhere else.

    Apart from that, your file seems to me to be rather chaotic. Without being able to see it clearly (with code block) I would almost say you are hacked.

    Thread Starter barbaralehmann

    (@barbaralehmann)

    <?php
    define("DB_NAME", "riemensd_riemensdesign");
    define("DB_USER", "riemensd_andre");
    define("DB_PASSWORD", "l9PHP0sC");
    define("DB_HOST", "riemensd.mysql.db.internal");
    define("AUTH_KEY", "ClygCujefidkes4");
    define("SECURE_AUTH_KEY", "irtyolpipAnk3");
    define("LOGGED_IN_KEY", "dubsoctEb2");
    $table_prefix = "wp_";
    define ("WPLANG", "");
    define('DB_CHARSET', 'utf8mb4');
    define('DB_COLLATE', '');
    define('AUTH_KEY', '3nLnn75D^UNU0~~|>.{aAFiC8VHKHB5(ky{Rs6BJ2=
    t9c{,=wtJ8eQ~+8_P)O+F');<br>define('SECURE_AUTH_KEY', '4/fmI}NRy<pvPEW6;T;!p<?{An@I|~RN3%M%VYRrQesA=2i9/YQB6-]UE)[qyZ^');
    define('LOGGED_IN_KEY', 'oyoU@fC -B&E!ZE T*fhw^hwOGh 4ED?KnD^*ri:A7+MR6zpYqE.[c!n5o=dvOlv');
    define('NONCE_KEY', '_*_GV*9WR~o,;W$Bp6NB!]<99)0T)ONCK &7m( i;v]a-><uZ4beiZV_^qdp>PQr');
    define('AUTH_SALT', 'e-NXx-n.2#st?_MP+mM3N[ojr^ba^[dp)uAy_{f!C+fl+V,pmh1g7Gu|%%|OH1Z');<br>define('SECURE_AUTH_SALT', 'b)^S]I$a[hQ@%q$5di=m=}P8wxtos2|f|L|Q;Qg2g*)>t:6FKqLm+OfomwXfnR]]');<br>define('LOGGED_IN_SALT', 'LnyQ&6+eho~y0_iq; XLd]=-+&rKwq9-O3{v*2gow[y#%d9~IO}YvvZo!igK^Fu');
    define('NONCE_SALT', 'MnO:k>S1kqo;d|A/FMLHp3B`2!A!,JShrs@%spN?#BbN}0yM/TgI*?<Iu9H|6.qX');
    define("ABSPATH", dirname(__FILE__)."/");
    ?>

    Thank you very much for your suport! Now in the code block. Sorry I haven´t seen your post.

    Above you see my wp-config.php code. I would like to relunch this website. But I can’t access the admin area. Thank you for your help. And indeed it seems a bit messy. I haven´t done anything exept installing the latest WordPress version by ftp.

    Moderator threadi

    (@threadi)

    This is the entire wp-config.php? There should be more than that. Take a look at the template from WordPress: https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php

    The last lines are particularly important here, otherwise WordPress will not load at all.

    Based on this structure and also the strange ones, I suspect that you are on a hosting that may be managing this file for you or that you are looking at a completely different file that is not responsible for your WordPress.

    I would recommend that you contact your host’s support team to clarify this. Or to the person who set up the project for you.

    Thread Starter barbaralehmann

    (@barbaralehmann)

    Thank you very much for your answer. This website is not mine. I try to fix it for a friend of mine because he can´t find the webmaster who is responsible for it. The page is hosted on a server, for which I have now access. I found the wp-config.php file like this. No, the hosting is not managing the file. I guess that nobody did do anything for some years. It seems the webpage hasn’t been acualized for a long time. The PHP version was old, thats wy the page was not working anymore…. thats what they told me from the hosting support.

    This is my log report:

    Tue Jun 03 00:49:28.009782 2025] [proxy_fcgi:error] [pid 1397:tid 38875800832] [client 167.86.68.31:52133] AH01071: Got error 'PHP message: PHP Warning:  Constant ABSPATH already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 13PHP message: PHP Warning:  Constant AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 14PHP message: PHP Warning:  Constant SECURE_AUTH_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 15PHP message: PHP Warning:  Constant LOGGED_IN_KEY already defined in /home/riemensd/www/riemensdesign.ch/wp-config.php on line 16PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp_unregister_GLOBALS() in /home/riemensd/www/riemensdesign.ch/wp-settings.php:55\nStack trace:\n#0 /home/riemensd/www/riemensdesign.ch/wp-config.php(22): require_once()\n#1 /home/riemensd/www/riemensdesign.ch/wp-load.php(37): require_once('/home/riemensd/...')\n#2 /home/riemensd/www/riemensdesign.ch/wp-blog-header.php(12): require_once('/home/riemensd/...')\n#3 /home/riemensd/www/riemensdesign.ch/index.php(17): require('/home/riemensd/...')\n#4 {main}\n  thrown in /home/riemensd/www/riemensdesign.ch/wp-settings.php on line 55', referer www.google.com
    Moderator threadi

    (@threadi)

    Is /home/riemensd/www/riemensdesign.ch/wp-config.php the file you showed above? Or is it a different one? Are the WordPress files and directories (such as wp-admin and wp-includes) located in exactly this directory, and does the domain really point to this exact directory?

    Thread Starter barbaralehmann

    (@barbaralehmann)

    Good morning and thank you very much for your answer! I have checked everyting agin with the server support and can hereby confirm that all files and directories are in exactly this directory. And yes, the file I have shared above is exactly the same. I will get a backup file from 2023 in order to compare the wp-config.php file. Maybe that will help to see whats wrong. Do you have an other idea? Seems quite complicated.

    Moderator threadi

    (@threadi)

    To be honest, it just seems complicated because what your project is using doesn’t seem to comply with WordPress standards at all. A wp-config.php file cannot look the way yours does. WordPress wouldn’t be able to start.

    I would therefore recommend that you find someone who can take a look at it with you in person. If your hosting support can’t do that, you might find someone here: https://jobs.wordpress.net/

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

You must be logged in to reply to this topic.