Magento "parse error: syntax error" when I try to add or duplicate product -


in magento backend, when try add or duplicate product, error:

parse error: syntax error, unexpected '$validatedpath' (t_variable), expecting function (t_function) in /home2/osarri/public_html/olasarri.com/app/code/core/mage/catalog/model/url.php on line 828

i haven't added products couple of weeks, worked fine then. help?

so far have truncated log files in phpmyadmin , flushed magento cache. no avail.

this around line 828:

/**      * check 2 variants: $requestpath , $requestpath . '-' . $productid      */     $validatedpath = $this->getresource()->checkrequestpaths(         array($requestpath.$suffix, $requestpath.'-'.$product->getid().$suffix),         $storeid     );      if ($validatedpath) {         return $validatedpath;     }     /**      * use unique path generator      */     return $this->getunusedpath($storeid, $requestpath.$suffix, $idpath); } 


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -