Local Dev with XAMMP Question | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Local Dev with XAMMP Question
May 5, 2011
10:23 pm
Avatar
Guest
Guests

I get the following error: Parse error: syntax error, unexpected T_STRING in C:xamppxampphtdocssitename_folderwp-contentpluginsxcloner-backup-and-restorecloner.config.php on line 3

I am using Windows 7, WordPress 3.1.2. and a fresh install of XCloner.  I had a site which was on a server and was going to test XCloner by making a local site clone on XAMMP.  

 

Also, here is a screenshot of my initial welcome screen errors within XCloner: http://screencast.co.....t/B0VgB7kb

 

I tried looking for posts on XAMMP and also in the manual, but did not see anything.  

 

jw

May 6, 2011
5:38 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Looks to be a php parsing error, could you attach here a copy after the wp-content\plugins\xcloner-backup-and-restore\cloner.config.php file to see the exact content you have there, what php version are you running on your server?

 

Ovidiu

May 6, 2011
12:39 pm
Avatar
Guest
Guests

Thanks Ovidiu.  I just noticed a new version of XAMMP (which includes PHP 5.3.5), below are the details of what I am using currently.  

 

###### Apache Friends XAMPP (Basis Package) version 1.7.3 ######
  + Apache 2.2.14 (IPV6 enabled)
  + MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
  + PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
  

Here is the cloner.config details:

<?php

$_CONFIG['license_code']="";

$_CONFIG['backup_path']="./";

$_CONFIG['clonerPath']="./";

$_CONFIG['mysql_host']="localhost";

$_CONFIG['mysql_user']="root";

$_CONFIG['mysql_pass']="";

$_CONFIG['mysql_database']="";

$_CONFIG['select_folders']="";

$_CONFIG['select_lang']="english";

$_CONFIG['secure_ftp']="0";

$_CONFIG['backup_compress']="";

$_CONFIG['cron_logemail']="";

$_CONFIG['cron_exclude']="";

$_CONFIG['cron_send']="0";

$_CONFIG['cron_btype']="0";

$_CONFIG['cron_bname']="";

$_CONFIG['cron_ip']="";

$_CONFIG['cron_ftp_server']="";

$_CONFIG['cron_ftp_user']="";

$_CONFIG['cron_ftp_pass']="";

$_CONFIG['cron_ftp_path']="";

$_CONFIG['cron_ftp_delb']="";

$_CONFIG['databases_incl_list']="";

$_CONFIG['cron_sql_drop']="";

$_CONFIG['cron_email_address']="";

$_CONFIG['cron_file_delete']="";

$_CONFIG['cron_file_delete_act']="";

$_CONFIG['mem']="";

$_CONFIG['backup_refresh']="1";

$_CONFIG['refresh_time']="1";

$_CONFIG['refresh_mode']="1";

$_CONFIG['backup_refresh_number']="100";

$_CONFIG['sql_mem']="";

$_CONFIG['enable_db_backup']="1";

$_CONFIG['zippath']="";

$_CONFIG['tarpath']="tar";

$_CONFIG['sqldump']="mysqldump –quote-names ";

$_CONFIG['system_dlink']="";

$_CONFIG['system_ftptransfer']="0";

$_CONFIG['system_mdatabases']="0";

$_CONFIG['recordsPerSession']= "10000";

$_CONFIG['excludeFilesSize'] = "-1";

$_CONFIG['splitBackupSize'] = "2048"; //MB

 

### Defaults

$script_dir = str_replace("","/",dirname(__FILE__));

 

$_CONFIG['jcuser'] = 'admin';

$_CONFIG['jcpass'] = md5('admin');

$_CONFIG['mem']="0";

$_CONFIG['archive_type']="0";

$_CONFIG['backup_refresh'] = "1";

$_CONFIG['backup_path'] = $script_dir;

$_CONFIG['clonerPath'] = $script_dir."/backups";

$_CONFIG['enable_db_backup'] = '0';

 

###Wordpress specific configuration

 

/*if(@include("../../../wp-config.php")){

 

$_CONFIG["enable_db_backup"] = 1;

$_CONFIG['mysql_host'] = DB_HOST;

$_CONFIG['mysql_user'] = DB_USER;

$_CONFIG['mysql_pass'] = DB_PASSWORD;

$_CONFIG['mysql_database'] = DB_NAME;

 

}*/

 

if(@file_exists("../../../wp-config.php")){

 

$content = file_get_contents("../../../wp-config.php");

$content = str_replace("require_once","#require_once", $content);

$content = str_replace(array("<?php","<?","?>"),array("","",""), $content);

eval($content);

 

$_CONFIG["enable_db_backup"] = 1;

$_CONFIG['mysql_host'] = DB_HOST;

$_CONFIG['mysql_user'] = DB_USER;

$_CONFIG['mysql_pass'] = DB_PASSWORD;

$_CONFIG['mysql_database'] = DB_NAME;

 

}

 

$script_dir = str_replace("wp-content/plugins/xcloner-backup-and-restore","", $script_dir);

 

$_CONFIG['backup_path'] = $script_dir;

 

$_CONFIG['clonerPath'] = realpath($script_dir."/administrator/backups");

$_CONFIG['clonerPath'] = str_replace("","/", $_CONFIG['clonerPath']);

 

$_CONFIG['mosConfig_live_site']=$_SERVER['HTTP_HOST'];

 

?>

May 6, 2011
7:56 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Ah, the issue seems to be related to the wp-config.php file parsing, you can simply go ahead and adjust the XCloner paths and mysql details manually, that should help, after you save the config, all the details should be ok.

 

Just before you do that, try and delete this code from the cloner.config.php file

 

if(@file_exists("../../../wp-config.php")){

 

$content = file_get_contents("../../../wp-config.php");

$content = str_replace("require_once","#require_once", $content);

$content = str_replace(array("<?php","<?","?>"),array("","",""), $content);

eval($content);

 

$_CONFIG["enable_db_backup"] = 1;

$_CONFIG['mysql_host'] = DB_HOST;

$_CONFIG['mysql_user'] = DB_USER;

$_CONFIG['mysql_pass'] = DB_PASSWORD;

$_CONFIG['mysql_database'] = DB_NAME;

 

}

 

Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0