View Single Post
Old 01-03-2013, 02:34 PM   PM User | #1
gathoni
New to the CF scene

 
Join Date: Dec 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
gathoni is an unknown quantity at this point
Error: Call to undefined function

Hi, just starting out with PHP, have watched some tutorials concerning functions and am using cartweaver to create an internet store. I'm using a template and customsing it.

When I load the site index page I get this error:

Fatal error: Call to undefined function expandPath() in C:\xampp\htdocs\brmstest\cw4\cwapp\func\cw-func-product.php on line 400

Line 400 of cw-func-product.php is:

$imageDirPath = expandPath(CWtrailingChar($_ENV["application.cw"]["appCWContentDir"],"remove") . CWtrailingChar(CWleadingChar($_ENV["application.cw"]["appImagesDir"])) . CWtrailingChar(CWleadingChar($imageTypeDir,"remove")));Where should I find the function expand path? I don't know if it exists or does it just defining in this file in particular?

If I need to define the function, where and how do I do that?

Thanks in advance for any help. I hope my question isn't too stupid.

Gathoni

Last edited by gathoni; 01-03-2013 at 02:36 PM..
gathoni is offline   Reply With Quote