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
Post a Comment