We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24573
    • 1 Posts
    A simple solution could be:

    Adding a new plugin named "rewriteMyAdmin"
    pass the following code:

    $e = &$modx->Event;
    
    switch ($e->name) {
    case "OnWebPagePrerender":
    $o =  &$modx->documentOutput; // get a reference of the output
    $o = str_replace("?phpMyAdmin=", "", $o);
     break;
    default :
    return; // stop here - this is very important.
     break;
    }


    Add your corresponding string after "?phpMyAdmin="
    example: ?phpMyAdmin=LtsNms3Yvlnk6JRBjMLAoPd8Yh3

    And highlight "OnWebPagePrerender"

    Only use this if your site doesnt use any GET parameters, else get rid of the ? (questionmark) in the plugin str_replace

    So far i could see Wayfinder is where these ?phpMyAdmin parameters apear
      • 7455
      • 2,204 Posts
      when crerating a "backup" tru modx this is not an issue. creating db backubs in modx works without the extra string.
      its when using phpmyadmin in plesk (or cpanel) the extra part is added.

      so anything in htaccess in modx install wil not work same goes for a plugin.

      it is realy not related to modx (that why its in General Discussions » Web Design and Development and not a modx related forum)

      Dimmy
        follow me on twitter: @dimmy01
        • 27330
        • 884 Posts
        Does modx backup tool backups the whole modx db including new tables or just tables shipped with the package?
        I always use phpMyAdmin.
          • 27330
          • 884 Posts
          nice. that’s good to know. makes life easier.
            • 25630
            • 22 Posts
              • 8345
              • 147 Posts
              For me it added that phpmyadmin string only to inside the Wayfinder snippet calls inside the templates and chunks. As it was not a big website it took me 5min to remove it from everywhere.
                • 8367
                • 1 Posts
                Hi,

                I just wanted to add in how I resolved this for any people who experience this issue in future. It turns out that this issue is actually related to MySQL databases when they are exported through PhpMyAdmin in Plesk. The GET command gets added throughout the SQL but only when you save the output directly to a file, if you choose to have the SQL displayed on screen, copy and then save it to a file the extra content doesn’t get added.

                Hope that helps people anyway, it sure was a head scratcher!