View Single Post
  #1  
Old 05-05-2016, 01:49 AM
 
BurtonTech BurtonTech is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 46
 

Default LC_USE_CLEAN_URLS error with getImageURL()

Hello,

When trying to get a product image URL using getImageURL(), I get the following error:

Code:
Notice: Use of undefined constant LC_USE_CLEAN_URLS - assumed 'LC_USE_CLEAN_URLS' in /<SNIP>/var/run/classes/XLite/Core/ConverterAbstract.php on line 263

Here's the bit of code generating the issue:

Code:
$testproduct = \XLite\Core\Database::getRepo('XLite\Model\Product')->findOneBy(array('sku' => 'TESTSKU')); $imageurl = $testproduct->getImageURL();

$testproduct->getURL() produces the same error, but using getCleanURL() fixes it. Turning Clean URL's on or off doesn't seem to matter...

Any ideas on how to correct the getImageURL() error?

Thank you!
__________________
X-Cart Gold 4.4.5
X-Cart Ultimate 5.2.22
X-Cart Business 5.3.2.13
X-Payments 3
Reply With Quote