Loading...


Related Products


What should I do when getting an error opening required file?

Description

Build stageJobError messageCategoryResponsibility
Test DrupalTest DrupalError: Failed opening required '/var/www/site-php/<APP>/<APP>-settings.inc'ApplicationCustomer

Solution

You must update the if statement in the Cloud Platform database settings as follows:

  1. In the settings.php file of your project, locate a statement similar to the erroneous statement. For example:

    if (file_exists('/var/www/site-php')) {
        require('/var/www/site-php/<APP>/<APP>-settings.inc');                                                                                                                                               }
  2. Update the if statement to specify the complete path to the file:

    if (file_exists('/var/www/site-php/<APP>/<APP>-settings.inc')) { 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation
Back to Site navigation