We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17723
    • 221 Posts
    Hello,
    I have still problems with context. Whenever I create a document in other context that main (web context) and when I preview it, it displays error message.
    Tried setting site_start and apply other settings, but it didn’t help.
    I’m running Revo 2.0.5 on Apache sever / PHP 5.2.14 . Previously I’ve used Revo 2.0.4 but with the same results.

    I’ve spend hours to figure out why it doesen’t want to work but with no results.

    Pleeeeaaassse help.

    I wonder If it doesnet have to do with this error message on install:
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/fca1736af87ce8276aa6a5682926b7a4/0/ to /home/oraliatr/public_html/index.php
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/fca1736af87ce8276aa6a5682926b7a4/1/ to /home/oraliatr/public_html/ht.access
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/f1af6d537dc2de2edd14ccf325264e21/0/ to /home/oraliatr/public_html/manager/assets
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/f1af6d537dc2de2edd14ccf325264e21/1/ to /home/oraliatr/public_html/manager/controllers
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/f1af6d537dc2de2edd14ccf325264e21/2/ to /home/oraliatr/public_html/manager/templates
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/f1af6d537dc2de2edd14ccf325264e21/3/ to /home/oraliatr/public_html/manager/ht.access
    [2010-10-05 08:28:55] (ERROR @ /setup/index.php) Could not copy /home/oraliatr/public_html/core/packages/core/modContext/f1af6d537dc2de2edd14ccf325264e21/4/ to /home/oraliatr/public_html/manager/index.php

    Luke
      Lucas from AroundCyprus.net
      • 17723
      • 221 Posts
      I’ve just set up a new Revo 2.0.5 website and have still the same problem.
      I would be very thankful if someone would show me solutions....

      thanks,
      Luke
        Lucas from AroundCyprus.net
        • 22303 MODX Staff
        • 10,725 Posts
        You’ll have to describe how you configured your Contexts so we know how it is being accessed. Plugin to switch contexts? Custom index.php in a separate virtual host configuration? Contexts can be used in many ways, so let’s start with how you are using them.
          • 17723
          • 221 Posts
          Hello,
          Thank You OpenGeek for looking into this.

          At this point I want to use context just to store language versions.
          The context settings that I need to "overwrite" are: site_start and site_name.
          And only those I’ve set up.
          I don’t use any plugins.

          Luke


            Lucas from AroundCyprus.net
            • 22303 MODX Staff
            • 10,725 Posts
            You have to have a mechanism for initializing or switching to the proper context. Again, there are many methods for doing this...
              • 17723
              • 221 Posts
              Hello OpenGeek,
              Happy New Year!

              So do You mean that if I have a link on my main web context to a document in web2 context the settings will not be overwritten "out of the box" ? Please advice me what plugin I need to use just to be able to browse through a web2 context like on main (web) context?

              My structure looks like this:
              web context (settings: site_start=1, cultureKey=en, site_name=English name)
              Home page (id=1)
              Services
              About us

              web2 context (settings: site_start=4, cultureKey=ru, site_name=Russian name)
              Russian home page (id=4)
              Russian Services
              Russian About us

              In my template I have links to switch between language versions like: <a href="[~1~]>english</a> <a href="[~4~]>russina</a>
                Lucas from AroundCyprus.net
                • 22303 MODX Staff
                • 10,725 Posts
                You need to write one that determines which context to switch to.