We have a live system.

screenshot as below

define('DRUPAL_ROOT', getcwd());
define ('DRUPAL_ROOT', getcwd ());

I couldn't log in with the command

define('DRUPAL_ROOT', 'D:/www/webhosting/o3800_7Z55V5Hop2Ff/wwwroot/vts/')

I changed it this way

I entered the site but the page is broken as it appears in the photo

I request help on this subject, thanks.

  • Welcome to Drupal Answers! 👋 We are here to help. But for this to happen we need narrowly scoped, detailed and reproducible problems. So what do we need to do to run into the same error? What have you done before the error occurred? Please edit your question and include all necessary information. Please don't include links to your live site as they are worthless for demonstration purpose for future readers as soon as your problem got fixed. Please also have a look at How do I ask a good question? and try to improve your question. Thank you – leymannx May 13 at 14:51

Firstly, will be better if you host a Drupal site on the separate domain/subdomain.

About your error, seems you forget copy all files (for example a folder with themes).

About the DRUPAL_ROOT constant, you shouldn't change it.

| improve this answer | |
  • available in the theme folder, installed. – siyahbere May 13 at 10:44
  • Except for the drupal_root index file, no other places are defined, right? – siyahbere May 13 at 10:45
  • Maybe you have some specific changes in your sites/default/settings.php file. Generally the index.php shouldn't change. – Ivan Tibezh May 13 at 10:46
  • Please don't use answers for comments or clarification. – leymannx May 13 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.