Error after instalation Awo Coupon and Awo Affiliate


  • Default avatar
    source@easy.cz    
     2 years ago
    0

    After instalation I see this error message:

    Fatal error: Cannot access private property VirtueMartCart::$_triesValidateCoupon in /data/www/victus.cz/public_html/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php on line 39 Call Stack: 0.0000 645824 1. {main}() /data/www/victus.cz/public_html/index.php:0 0.1301 6533368 2. JSite->render() /data/www/victus.cz/public_html/index.php:48 0.2224 8012856 3. JDocumentHTML->render() /data/www/victus.cz/public_html/includes/application.php:271 0.2224 8012856 4. JDocumentHTML->_renderTemplate() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:433 0.4097 9650696 5. JDocumentHTML->getBuffer() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:655 0.4097 9651632 6. JDocumentRendererModules->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:371 0.4097 9653256 7. JDocumentRendererModule->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/modules.php:39 0.4099 9656576 8. JModuleHelper::renderModule() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/module.php:107 0.4137 9707712 9. include('/data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php') /data/www/victus.cz/public_html/plugins/system/advancedmodules/modulehelper.php:195 0.4224 10020840 10. VirtueMartCart->prepareAjaxData() /data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php:34 0.4224 10020920 11. VirtueMartCart->prepareCartData() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1468 0.4710 10788440 12. JDispatcher->trigger() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1280 0.4722 10966760 13. JEvent->update() /data/www/victus.cz/public_html/libraries/joomla/event/dispatcher.php:161 0.4723 10967816 14. call_user_func_array() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:71 0.4723 10967880 15. plgVmPaymentAwoCoupon->plgVmgetPaymentCurrency() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:0 0.4731 11025560 16. AwoCouponVirtuemartCouponHandler::process_autocoupon() /data/www/victus.cz/public_html/plugins/vmpayment/awocoupon/awocoupon.php:32 0.4910 11809536 17. AwoCouponVirtuemartCouponHandler->__construct() /data/www/victus.cz/public_html/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php:154 Warning: spl_autoload(): open_basedir restriction in effect. File(jfactory.inc) is not within the allowed path(s): (/usr/share/php:/data/www/victus.cz) in /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php on line 71 Call Stack: 0.0000 645824 1. {main}() /data/www/victus.cz/public_html/index.php:0 0.1301 6533368 2. JSite->render() /data/www/victus.cz/public_html/index.php:48 0.2224 8012856 3. JDocumentHTML->render() /data/www/victus.cz/public_html/includes/application.php:271 0.2224 8012856 4. JDocumentHTML->_renderTemplate() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:433 0.4097 9650696 5. JDocumentHTML->getBuffer() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:655 0.4097 9651632 6. JDocumentRendererModules->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:371 0.4097 9653256 7. JDocumentRendererModule->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/modules.php:39 0.4099 9656576 8. JModuleHelper::renderModule() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/module.php:107 0.4137 9707712 9. include('/data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php') /data/www/victus.cz/public_html/plugins/system/advancedmodules/modulehelper.php:195 0.4224 10020840 10. VirtueMartCart->prepareAjaxData() /data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php:34 0.4224 10020920 11. VirtueMartCart->prepareCartData() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1468 0.4710 10788440 12. JDispatcher->trigger() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1280 0.4722 10966760 13. JEvent->update() /data/www/victus.cz/public_html/libraries/joomla/event/dispatcher.php:161 0.4723 10967816 14. call_user_func_array() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:71 0.4723 10967880 15. plgVmPaymentAwoCoupon->plgVmgetPaymentCurrency() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:0 0.4731 11025560 16. AwoCouponVirtuemartCouponHandler::process_autocoupon() /data/www/victus.cz/public_html/plugins/vmpayment/awocoupon/awocoupon.php:32 0.4910 11809536 17. AwoCouponVirtuemartCouponHandler->__construct() /data/www/victus.cz/public_html/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php:154 0.4967 9923464 18. JSessionStorageDatabase->write() /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php:0 Warning: spl_autoload(): open_basedir restriction in effect. File(jfactory.php) is not within the allowed path(s): (/usr/share/php:/data/www/victus.cz) in /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php on line 71 Call Stack: 0.0000 645824 1. {main}() /data/www/victus.cz/public_html/index.php:0 0.1301 6533368 2. JSite->render() /data/www/victus.cz/public_html/index.php:48 0.2224 8012856 3. JDocumentHTML->render() /data/www/victus.cz/public_html/includes/application.php:271 0.2224 8012856 4. JDocumentHTML->_renderTemplate() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:433 0.4097 9650696 5. JDocumentHTML->getBuffer() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:655 0.4097 9651632 6. JDocumentRendererModules->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:371 0.4097 9653256 7. JDocumentRendererModule->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/modules.php:39 0.4099 9656576 8. JModuleHelper::renderModule() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/module.php:107 0.4137 9707712 9. include('/data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php') /data/www/victus.cz/public_html/plugins/system/advancedmodules/modulehelper.php:195 0.4224 10020840 10. VirtueMartCart->prepareAjaxData() /data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php:34 0.4224 10020920 11. VirtueMartCart->prepareCartData() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1468 0.4710 10788440 12. JDispatcher->trigger() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1280 0.4722 10966760 13. JEvent->update() /data/www/victus.cz/public_html/libraries/joomla/event/dispatcher.php:161 0.4723 10967816 14. call_user_func_array() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:71 0.4723 10967880 15. plgVmPaymentAwoCoupon->plgVmgetPaymentCurrency() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:0 0.4731 11025560 16. AwoCouponVirtuemartCouponHandler::process_autocoupon() /data/www/victus.cz/public_html/plugins/vmpayment/awocoupon/awocoupon.php:32 0.4910 11809536 17. AwoCouponVirtuemartCouponHandler->__construct() /data/www/victus.cz/public_html/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php:154 0.4967 9923464 18. JSessionStorageDatabase->write() /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php:0 Fatal error: Class 'JFactory' not found in /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php on line 71 Call Stack: 0.0000 645824 1. {main}() /data/www/victus.cz/public_html/index.php:0 0.1301 6533368 2. JSite->render() /data/www/victus.cz/public_html/index.php:48 0.2224 8012856 3. JDocumentHTML->render() /data/www/victus.cz/public_html/includes/application.php:271 0.2224 8012856 4. JDocumentHTML->_renderTemplate() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:433 0.4097 9650696 5. JDocumentHTML->getBuffer() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:655 0.4097 9651632 6. JDocumentRendererModules->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/html.php:371 0.4097 9653256 7. JDocumentRendererModule->render() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/modules.php:39 0.4099 9656576 8. JModuleHelper::renderModule() /data/www/victus.cz/public_html/libraries/joomla/document/html/renderer/module.php:107 0.4137 9707712 9. include('/data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php') /data/www/victus.cz/public_html/plugins/system/advancedmodules/modulehelper.php:195 0.4224 10020840 10. VirtueMartCart->prepareAjaxData() /data/www/victus.cz/public_html/modules/mod_virtuemart_cart/mod_virtuemart_cart.php:34 0.4224 10020920 11. VirtueMartCart->prepareCartData() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1468 0.4710 10788440 12. JDispatcher->trigger() /data/www/victus.cz/public_html/components/com_virtuemart/helpers/cart.php:1280 0.4722 10966760 13. JEvent->update() /data/www/victus.cz/public_html/libraries/joomla/event/dispatcher.php:161 0.4723 10967816 14. call_user_func_array() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:71 0.4723 10967880 15. plgVmPaymentAwoCoupon->plgVmgetPaymentCurrency() /data/www/victus.cz/public_html/libraries/joomla/event/event.php:0 0.4731 11025560 16. AwoCouponVirtuemartCouponHandler::process_autocoupon() /data/www/victus.cz/public_html/plugins/vmpayment/awocoupon/awocoupon.php:32 0.4910 11809536 17. AwoCouponVirtuemartCouponHandler->__construct() /data/www/victus.cz/public_html/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php:154 0.4967 9923464 18. JSessionStorageDatabase->write() /data/www/victus.cz/public_html/libraries/joomla/session/storage/database.php:0

    www.victus.cz

    When I maked all plugins off, then error message isnt it.

    Now I make all plugin off, because this is production site.
  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    Thanks for reporting the fatal error with $_triesValidateCoupon . It seems in earlier versions of Virtuemart, that variable is private. Ok, here is what you can do to fix it:



    Please find the file:
    www/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php

    Around line 38 is this:
    <?php
                    
    // disable virtuemart coupon re-try limit of 8
                            
    $this->vmcart->_triesValidateCoupon = array();
                            
    $this->vmcart->setCartIntoSession();
                    }
    ?>


    Right before that add this:
    <?php
                    $vmcart_class_vars 
    get_class_vars(get_class($this->vmcart));
                    if(isset(
    $vmcart_class_vars['_triesValidateCoupon']))
    ?>


    So the overall looks like this:

    <?php
                    $vmcart_class_vars 
    get_class_vars(get_class($this->vmcart));
                    if(isset(
    $vmcart_class_vars['_triesValidateCoupon']))
                    { 
    // disable virtuemart coupon re-try limit of 8
                            
    $this->vmcart->_triesValidateCoupon = array();
                            
    $this->vmcart->setCartIntoSession();
                    }
    ?>


    That should fix the problem.