Jump to content

ismael84

New Members
  • Posts

    2
  • Joined

  • Last visited

ismael84's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello When I run this command-bash-3.2 $ php magmi.cli.php-mode = update-profile = default SSH to import a csv file Magento products in my shop I get this message: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/17/10622317/html/magmi/inc/magmi_loggers.php on line 4 <?php class FileLogger { protected $_fname; public function __construct($fname=null) { if($fname==null) { $fname=Magmi_StateManager::getProgressFile(true); } $this->_fname=$fname; $f=fopen($this->_fname,"w"); if($f==false) { throw new Exception("CANNOT WRITE PROGRESS FILE "); } fclose($f); } public function log($data,$type) { $f=fopen($this->_fname,"a"); if($f==false) { throw new Exception("CANNOT WRITE PROGRESS FILE "); } $data=preg_replace ("/(\r|\n|\r\n)/", "<br>", $data); fwrite($f,"$type:$data\n"); fclose($f); } } class EchoLogger { public function log($data,$type) { $info=explode(";",$type); $type=$info[0]; echo('<p class="logentry log_'.$type.'">'.$data."</p>"); } } class CLILogger { public function log($data,$type) { echo("$type:$data\n"); } } ?> magmi_loggers.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.