View Single Post
  #2  
Old 05-16-2016, 06:09 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: LC_USE_CLEAN_URLS error with getImageURL()

Where do you run these statements from? Is it an X-Cart 5 module? Or is it a custom stand-alone script?

If it is a stand-alone script, did you include all required files as follows?
Code:
... try { define('LC_INCLUDE_ADDITIONAL', true); require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'top.inc.php'); // your statements there } catch (\Exception $e) { \Includes\ErrorHandler::handleException($e); }
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote