| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Class not found | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Class not found
Hello Phil,
How did you add the class? Where is the file with the class definition located? What is the source code?
__________________
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 |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Class not found
At the top of your radio.php, what is your namespace?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#4
|
|||||||
|
|||||||
Re: Class not found
It is located in:
/classes/XLite/Module/Pmall/RadioButtonOptions/View/Product/AttributeValue/Admin/ PHP Code:
__________________
Ver 5.2.6 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Class not found
Where and how do you use this class?
Quote:
Quote:
These error messages make me believe that there is an error in the class name somewhere either in your templates, or in other PHP classes that reference the \XLite\Module\Pmall\RadioButtonOptions\View\Produc t\AttributeValue\Admin\Radio class.
__________________
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 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Class not found
Hello Phil,
I feel you are referring to your new class as to PHP Code:
but you should refer to it as to PHP Code:
Please, let me know if it makes sense to you. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|