• Resolved chandan435

    (@chandan435)


    HI

    when i make to child theme i got a error text

    Notice: Constant WP_CONTENT_URL already defined in /public_html/wp-config.php on line 99

    Notice: Constant COOKIE_DOMAIN already defined in /public_html/wp-config.php on line 100

    i dnot know what is error , i use ocean-wp theme

    this is raw analysis data

     {
      "parnt": {
        "deps": [
          [
            [
              "dep_unregistered",
              "assets/fonts/fontawesome/css/all.min.css",
              "parnt"
            ],
            [
              "dep_unregistered",
              "assets/css/third/simple-line-icons.min.css",
              "parnt"
            ],
            [
              "dep_unregistered",
              "assets/css/third/magnific-popup.min.css",
              "parnt"
            ],
            [
              "dep_unregistered",
              "assets/css/style.min.css",
              "parnt"
            ],
            [
              "dep_unregistered",
              "assets/css/woo/woo-mini-cart.min.css",
              "parnt"
            ],
            [
              "dep_unregistered",
              "assets/css/woo/woocommerce.min.css",
              "parnt"
            ]
          ],
          []
        ],
        "signals": {
          "failure": 0,
          "thm_noqueue": 1,
          "err_php": 1,
          "dep_unregistered": 1,
          "thm_notheme": 1
        },
        "queue": [],
        "irreg": [],
        "swaps": [],
        "url": "https://www.aevenr.com/?ModPagespeed=off&ao_noptimize=1&preview_ctc=1&template=oceanwp&stylesheet=oceanwp&now=1577300029"
      },
      "child": {
        "deps": [
          [],
          []
        ],
        "signals": {
          "failure": 0
        },
        "queue": [],
        "irreg": [],
        "swaps": []
      }
    }

    some days erlier i got malware attack on my site i alreday make child theme using ocean-wp , but when i get attack i delete all wordpress core file except wp-contant and wp-config.php file . then i import all core file with fresh installation . i also delete my parent theme and child theme folder . then i install fresh ocean-wp theme . but i dont know what this error means .

    • This topic was modified 5 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • you probably activated a plugin that manipulates these definitions. Go to the wp-config file.php and line 99 and 100 place constants within one condition. For example.

    if ( defined( ‘WP_CONTENT_URL’ ) ) {
    // you code
    }
    if ( defined( ‘COOKIE_DOMAIN’ ) ) {
    // you code

    }
    I place these conditions within the cim of this comment ” / * that’s all, stop editing! Happy blogging. */

    that type of constants can be created anywhere, you have to check if they are not defined you have to create them.
    In this case it is a bug of your theme, ask for support to your theme in order to improve the code forever or use a theme that doesn’t have this bug.
    If defined

    if ( defined( 'ANY_CONSTANT' ) ) {
    //Code
    }

    If not defined

    if ( ! defined( 'ANY_CONSTANT' ) ) {
    define( 'ANY_CONSTANT', 'my_value' );
    }

    if the error is a wrong coding of your theme you can solve it only by removing the constants involved inside your wp-config.php

    • This reply was modified 5 years, 2 months ago by autotutorial.
    Thread Starter chandan435

    (@chandan435)

    thanks @marcio-zebedeu
    thanks @autotutorial

    you guys solved my issue . love you brothers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘generated unexpected PHP debug output’ is closed to new replies.