<![CDATA[ Modbak Error - My Forums]]> https://forums.modx.com/thread/?thread=45128 <![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error?page=2#dis-post-259807 Terry Mar 22, 2008, 11:41 AM https://forums.modx.com/thread/45128/modbak-error?page=2#dis-post-259807 <![CDATA[Re: Modbak Error - solved]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259806
I uninstalled Modbak entirely. Deleted my local copies of the code. Downloaded a new file and reinstalled on the server. Finally, the installation is working!! Yeah!

Now I’m getting memory errors when I run it. I’ve truncated the event logs but the problem persists. I’ve posted this issue on another topic related to this problem.

http://modxcms.com/forums/index.php/topic,2794.msg148106.html

Thanks for all your help!

Terry]]>
Terry Mar 21, 2008, 06:30 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259806
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259805
manager/processors/execute_module.processor.php

and

assets/modules/modbak/modbak.php

Sorry I can’t help more.

Eric]]>
wordcooper Mar 20, 2008, 08:46 AM https://forums.modx.com/thread/45128/modbak-error#dis-post-259805
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259804
Yes, that was already modified:

// directory to contain zipped archives, default is servers document root, not secure
$modx_backup_dir = $_SERVER['DOCUMENT_ROOT'].'/backup/';

Any other suggestions?  I know this shouldn't be this hard. . . ;)

]]>
Terry Mar 20, 2008, 07:57 AM https://forums.modx.com/thread/45128/modbak-error#dis-post-259804
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259803
Edit the module code in the manager @ Modules>Manage Modules>Modbak. It’s somewhere around line 40.]]>
ram Mar 19, 2008, 10:02 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259803
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259802
I removed the underscore on the folder and in the settings file. No change.

You indicated the settings.php file need not be changed? What about step 3 in the instructions?

Install:
---------
1. Create a directory on your webserver to hold modx .zip archives (ie /home/username/_backup ) and set read/write permissions to 777
2. Unzip modbak directory under /assets/modules/ directory. --> /assets/modules/modbak
3. Edit /assets/modules/modbak/settings.php, and set $modx_backup_dir to backup dir in new directory created in (1)
4. Create a new Module in MODx manager and copy contents of modBak.module.tpl into module code.
5. Now run module, click generate, if it works there should be a .zip link containing your modx site.
]]>
Terry Mar 19, 2008, 03:28 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259802
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259801
$modx_backup_dir = $_SERVER['DOCUMENT_ROOT'].'/home/httpd/website/html/manager/data/';



I would try it without the underscore. Maybe that is causing problems. Obviously, you also need to rename the folder, too. smiley

]]>
wordcooper Mar 19, 2008, 03:05 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259801
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259800
I restored the original download.php file and tried to run modback again. I still get the same errors.

Is this the correct way to modify the settings file? Is this how the path should be specified? Is the syntax correct? Do I need the full path? I’ve tried variations but no luck.


$modx_backup_dir = $_SERVER[’DOCUMENT_ROOT’].’/home/terrybar/public_html/_backup/’;

Thank you.]]>
Terry Mar 19, 2008, 02:51 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259800
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259799
include_once(dirname(__FILE__).'/settings.php');


This is the original code and it works fine on my setup.]]>
wordcooper Mar 19, 2008, 07:39 AM https://forums.modx.com/thread/45128/modbak-error#dis-post-259799
<![CDATA[Re: Modbak Error]]> https://forums.modx.com/thread/45128/modbak-error#dis-post-259798
I’m assuming I have a problem with how the directory is specified. I’m not sure how to express the path.]]>
Terry Mar 18, 2008, 07:17 PM https://forums.modx.com/thread/45128/modbak-error#dis-post-259798