Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Migrating Drupal 7 to Cloudron Lamp 7.4

    LAMP
    2
    4
    231
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Shai
      Shai last edited by

      I'm having trouble with a Drupal 7 (latest 7.80) migration from cPanel to Cloudron.

      I think I've got the db connection settings right using the environment variables as outlined in the docs.

      When I succeeded with the env variables the error changed from a db error to a 500 error.

      "drush status" now returns:

      Call to undefined function cache_get() in /app/data/public/includes/module.inc:762
      

      In settings.php I've done this to deal with the proxy.

      $conf['reverse_proxy'] = TRUE;
      
      /**
       * Specify every reverse proxy IP address in your environment.
       * This setting is required if $conf['reverse_proxy'] is TRUE.
       */
       $proxyip = getenv("CLOUDRON_PROXY_IP");
       $conf['reverse_proxy_addresses'] = array($proxyip);
      
      

      I'm sure it's some config in settings.php or .htaccess or some php mod that isn't already installed. I'm just blanking out on the next troubleshooting step to take.

      Thanks.

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @Shai last edited by

        @shai said in Migrating Drupal 7 to Cloudron Lamp 7.4:

        Call to undefined function cache_get() in /app/data/public/includes/module.inc:762

        I assume line 762 of the above file has cache_get() ?

        But a random web search led me to https://www.drupal.org/forum/support/post-installation/2016-06-23/fatal-error-call-to-undefined-function-cache_get where someone suggests that "I had this issue in drush command line, when there was an error parsing the settings.php file (forgot to close a comment /* */)" . So can you check if there is some syntax error in settings.php ?

        Shai 2 Replies Last reply Reply Quote 1
        • Shai
          Shai @girish last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Shai
            Shai @girish last edited by

            @girish

            But a random web search

            +1 for random web searches!

            led me to where someone suggests that "I had this issue in drush command line, when there was an error parsing the settings.php file

            That was it! A missing comma in the databases array. Thanks so much!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB