Thread: Class not found
View Single Post
  #1  
Old 03-24-2015, 04:53 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Class not found

I'm working on a new module to add radio buttons as product option attributes. I created a class called Radio but xcart is not finding it. I keep getting the following error


[24-Mar-2015 09:43:41 America/Indiana/Indianapolis] PHP Fatal error: Class '\XLite\View\Product\AttributeValue\Admin\Radio' not found in /home/upflushi/www/var/run/classes/XLite/View/AViewAbstract.php on line 418
[24-Mar-2015 09:43:41] Error (code: 1): Class '\XLite\View\Product\AttributeValue\Admin\Radio' not found
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=product&product_id=1&page=attribu tes;
Backtrace:
#0 Includes\ErrorHandler::logInfo(Class '\XLite\View\Product\AttributeValue\Admin\Radio' not found, 1) called at [/home/upflushi/www/Includes/ErrorHandler.php:324]
#1 Includes\ErrorHandler::handleError(Array ([type] => 1,[message] => Class '\XLite\View\Product\AttributeValue\Admin\Radio' not found,[file] => /home/upflushi/www/var/run/classes/XLite/View/AViewAbstract.php,[line] => 41) called at [/home/upflushi/www/Includes/ErrorHandler.php:309]
#2 Includes\ErrorHandler::shutdown()


The xlite.log contained



Mar 24 09:57:59 XLite [warning] Warning: include_once(/home/upflushi/www/var/run/classes/XLite/Model/AttributeValue/AttributeValueRadio.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/upflushi/www/Includes/Autoloader.php on line 125
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=product&product_id=1&page=attribu tes;
Mar 24 09:57:59 XLite [warning] Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/upflushi/www/var/run/classes/XLite/Model/AttributeValue/AttributeValueRadio.php' for inclusion (include_path='.:/usr/local/lib/php:/home/upflushi/www/lib/') in /home/upflushi/www/Includes/Autoloader.php on line 125
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=product&product_id=1&page=attribu tes;
Mar 24 09:57:59 XLite [warning] Warning: include_once(/home/upflushi/www/var/run/classes/XLite/View/Product/AttributeValue/Admin/Radio.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/upflushi/www/Includes/Autoloader.php on line 125
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=product&product_id=1&page=attribu tes;
Mar 24 09:57:59 XLite [warning] Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/upflushi/www/var/run/classes/XLite/View/Product/AttributeValue/Admin/Radio.php' for inclusion (include_path='.:/usr/local/lib/php:/home/upflushi/www/lib/') in /home/upflushi/www/Includes/Autoloader.php on line 125
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=product&product_id=1&page=attribu tes;




Any ideas?
__________________
Ver 5.2.6
Reply With Quote