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
    It did not work ider and I do not realy like my root folder being 777 thats a heigh risk factor.

    I pm you my testsite ftp and modxadmin so you can take a look if you want.
      follow me on twitter: @dimmy01
      • 7455
      • 2,204 Posts
      OK I got it to work sort of
      I updated the zipclass to the latest version now I end up with a good zipfile but after creating the zip I get this error:

      « MODx Parse Error »
      MODx encountered the following error while attempting to parse the requested resource:
      « PHP Parse Error »
       
      PHP error debug
        Error:  mysql_query(): 5 is not a valid MySQL-Link resource  
        Error type/ Nr.:  Warning - 2  
        File:  /home/httpd/vhosts/kinghosting.nl/subdomains/modx/httpdocs/manager/includes/extenders/dbapi.mysql.class.inc.php  
        Line:  135  
        Line 135 source:  if (!$result = @ mysql_query($sql, $this->conn)) {   
       
      Parser timing
        MySQL:  0.0020 s s (3 Requests)
        PHP:  8.3044 s s  
        Total:  8.3064 s s  

      if we could fix this that I think it wil be working nice

      maybe its posible to make the sqlbackup not in the root but in another folder?
      I realy do not like setting my root folder to 777
        follow me on twitter: @dimmy01
        • 7455
        • 2,204 Posts
        Is there a limit to the size? it stops on one of my sites that contains over 40MB the tempzip did not get bigger than 11.2Mb
        on the small site it does continue but gives the error above
          follow me on twitter: @dimmy01
          • 32982
          • 674 Posts
          if want to make a zip file bigger than 12 mb change th line
          370 ini_set("memory_limit","12M"); to sweet your needs
          for make mysql file in another directory, for example the folder you have sql
          make this folder 777 and change the line 7 to
          $modx_backup_dir2 = $modx->config[’base_path’] .’sql/’;
          i think if you change this all works well (pm if you could works all well to post to the repository whith the last pzip class)hi
            Jabiertxof (formerly XYZVISUAL)
            My bussines: http://marker.es
            https://www.youtube.com/user/jabiertxof/videos
            • 7455
            • 2,204 Posts
            Changing $modx_backup_dir2 = $modx->config[’base_path’] .’sql/’;
            did not work it gives me a sql error

            if i set it to use root it works but on the end I get this error

            « MODx Parse Error »
            MODx encountered the following error while attempting to parse the requested resource:
            « PHP Parse Error »
             
            PHP error debug
              Error:  mysql_query(): 7 is not a valid MySQL-Link resource 
              Error type/ Nr.:  Warning - 2 
              File:  /home/httpd/vhosts/1-vision.nl/httpdocs/manager/includes/extenders/dbapi.mysql.class.inc.php 
              Line:  93 
              Line 93 source:  if(!$result = @mysql_query($sql, $this->conn)) {   
             
            Parser timing
              MySQL:  0.0032 s s (4 Requests)
              PHP:  90.0268 s s 
              Total:  90.0300 s s 


            I pmed you my login
              follow me on twitter: @dimmy01
              • 32982
              • 674 Posts
              i added to the repository updated and whithout chmod problems
              hi
                Jabiertxof (formerly XYZVISUAL)
                My bussines: http://marker.es
                https://www.youtube.com/user/jabiertxof/videos
                • 22289
                • 41 Posts
                did you ever figure this out? I get a very similar error message on a test page of mine


                MODx encountered the following error while attempting to parse the requested resource:
                « PHP Parse Error »

                PHP error debug
                Error: mysql_query(): Unable to save result set
                Error type/ Nr.: Warning - 2
                File: /hsphere/local/home2/manager/includes/extenders/dbapi.mysql.class.inc.php
                Line: 135
                Line 135 source: if (!$result = @ mysql_query($sql, $this->conn)) {

                Parser timing
                MySQL: 0.0558 s s (105 Requests)
                PHP: 20.2995 s s
                Total: 20.3553 s s