We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I am using version 2.8.2.4
    when I do an export of the db all internal links like this:
    <a href="[~1~]"...>

    becomes this :
    <a href="[~1~]?phpMyAdmin=LtsNms3Yvlnk6JRBjMLAoPd8Yh3"...> that number is for all the links the same but changes on every export)

    the same happens to files:
    <a href="assets/files/Leaflet AGF17-12-07.pdf?phpMyAdmin=LtsNms3Yvlnk6JRBjMLAoPd8Yh3" 

    and in snippets:
    $ptarr[] = ''<a class="B_currentCrumb" href="[~''.$modx-?phpMyAdmin=LtsNms3Yvlnk6JRBjMLAoPd8Yh3>documentIdentifier.''~]" title="''.$descriptionToUse.''">''.$titleToShow.''</a>'';\n        
    


    Does any one know what causes this? when i use the backup option in modx that this does not happen so I think its a phpMyAdmin setting? maybe. or a bug?

    external links do not have this problem.
      follow me on twitter: @dimmy01
      • 7455
      • 2,204 Posts
      Jup I am sure, as I stated above, when I do a backup directly from modx (backup) then this is not there.

      Dimmy
        follow me on twitter: @dimmy01
        • 25483
        • 741 Posts
        I had the same one 1 site I moved from one to another server!

        I hope someone knows what is causing this, it is pretty annoying sad
          with regards,

          Ronald Lokers
          'Front-end developer' @ h2o Media

          • 33372
          • 1,611 Posts
          Wow that is indeed odd. I guess that the server is sending you the SQL file with the wrong headers and thus adding that query string to the links (it shouldn’t do anything to an SQL export file). Does the same thing happen if you view the SQL within phpMyAdmin itself (meaning have it display it to you so you can cut and paste it instead of exporting it as a file)?
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 24385
            • 12 Posts
            I think I can answer that question. I have the same problem (plus a 500 error) http://modxcms.com/forums/index.php/topic,21327.0.html

            It does the same thing when you export it within phpMyadmin, but I found that the errors start only after you enter the configuration page in the manager and click save. before that the links are perfect, even if you restore a backup that has the extra sql. Oh, and even if you use a good backup, i.e. the one from the modx backup utility it still displays modified links (only in this case even without accessing the configuration page). Oh, and may I add that it’s the same version of phpMyAdmin.
              • 22303 MODX Staff
              • 10,725 Posts
              Is Plesk a common factor here? If not I imagine this is just some strange PHP configuration regarding sessions or something.
                • 26179
                • 21 Posts
                Quote from: OpenGeek at Jan 06, 2008, 10:56 AM

                Is Plesk a common factor here?

                I have the same problem.... and I have Plesk panel !

                I notice that if I make a BU from phpmyadmin of Plesk panel the string "?phpMyAdmin=5dc2............ " is added or changed if already present but uploading a new phpmyadmin on the web site and making the backup form this phpmyadmin no string have been added.

                So, I think the problem is related to PhpMyAdmin on Plesk panel BUT this happen to me ONLY on modx databases !!
                  • 26179
                  • 21 Posts
                  I realized just now that the string added isn’t the session of phpMyAdmin but Plesk session !!

                  PhpMyAdmin simple have the session stored as token=1560sd24.....
                  PhpMyAdmin from Plesk panel have token=1560sd24.........&phpMyAdmin=54613sd..........
                  Checking details of Plesk Cookies stored on my browser I saw that phpMyAdmin=54613sd.......... is the same as PHPSESSID stored by Plesk !!

                  What’s I think it’s really strange is that this happen only to modx databases! (I tested it!)
                    • 24385
                    • 12 Posts
                    OK, so maybe it;s the Plesk. Mine is 8.3.0. What about yours?
                      • 26179
                      • 21 Posts
                      Plesk 8.1.0 - with PhpMyAdmin 2.8.2.4