We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    I’m sorry, some differences between the User Guide and the actual interface got me over that with Revo URL is the "connectors" directory. It is now connecting...
      • 26903
      • 1,336 Posts
      OK logiag, I’v raised a ticket in github for your issue.

      vhollo, the imports directory error is a bug, ticket raised in github, all you need do here is create the directory and make it writeable by your web server, its inly used for file imports.

      The Evo character encoding has cropped up before, all content type fields are converted to utf8 before transmission, I’m not sure why this works for some people and not others, or partially works, as in your case.

      The HTTP_REFERER is a bug also, ticket raised in github.
        Use MODx, or the cat gets it!
        • 31471
        • 206 Posts
        In "revogateway" please insert this line after every database connections:
        [tt]mysql_set_charset($database_connection_charset,$db);[/tt]

        For example, in getnodes.php the DB-connection part from line 57 should look like this:

        /* Get the resources from the database */
        $db = mysql_connect($database_server, $database_user, $database_password);
        if (!$db) die("Revo Gateway API error - No server :- $database_server, $databse_user, $databse_password");
        
        $dbase = str_replace('`', '', $dbase);
        $db_selected = mysql_select_db($dbase, $db);
        if (!$db_selected) die ("Revo Gateway API error - No database :- $dbase");
        
        mysql_set_charset($database_connection_charset,$db); /// add this line! - vhollo
        
        $sql = "SELECT id, pagetitle, longtitle, alias, description, parent, published,
                  deleted, isfolder, menuindex, hidemenu FROM " . $table_prefix . "site_content "
                  . "WHERE `parent` = " . $node;
        
        $result = mysql_query($sql, $db);


        Then, you’ll have to get rid of the utf8_encode() functions from your scripts. wink
          • 31471
          • 206 Posts
          One more bug I found in listing Evo users.
          Line 93 in revogateway\connectors\users\getlist.php:
          [tt] $sql = "SELECT fullname, email, blocked FROM " . $table_prefix . "web_user_attributes" .
          " WHERE `id` = " . $web_user[’id’];[/tt]
          should be:

          [tt] $sql = "SELECT fullname, email, blocked FROM " . $table_prefix . "web_user_attributes" .
          " WHERE `internalKey` = " . $web_user[’id’];[/tt]
            • 26903
            • 1,336 Posts
            Excellent, thanks vhollo, hoping this will settle the character conversion probs. Tickets raised for both the above.
              Use MODx, or the cat gets it!
              • 436 ☆ A M B ☆
              • 265 Posts
              How do I get the Evolution part of this to work?

              I’ve uploaded all the /revogateway/ gateway files to /assets/snippets/revogateway/ do I have to also create a new snippet in Evo too?

              When I enter my Evo login details I get an error message like this:



              Any ideas where I’m going wrong?
                MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
                • 26903
                • 1,336 Posts
                The URL is simply the site URL for Evolution sites, so in your case its http://www.wopc.co.uk, I’d type this in and logout first, then log in and see what happens.
                  Use MODx, or the cat gets it!
                  • 436 ☆ A M B ☆
                  • 265 Posts
                  ah I see!

                  I tried what you said after logging out of the Evo site and I got this error message:



                  Do the files have to have any certain permissions? They are in /assets/snippets/revogateway/ is this correct?
                    MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
                    • 26903
                    • 1,336 Posts
                    Check that the revogateway folder contains an index.php file and a folder named connectors, no special perms are needed.
                      Use MODx, or the cat gets it!
                      • 436 ☆ A M B ☆
                      • 265 Posts
                      Ack!

                      I actually put the files in /assets/revogateway/ It’s connecting now smiley

                      Very nice plugin! It’s even converted the snippet and chunk placeholders smiley Would it be possible to preserve the ID numbers of the resources so internal links don’t break?
                        MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.