[Skip to main content](#vessel-content)

#   Fatal error in helpers/modules.php on line 207

##

- **[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")**
- [![stratacorps's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33546-stratacorps "View stratacorps's Profile") Topic Author
- [ Offline](/forum/user/33546-stratacorps)

Less More

- Posts: 116
- Thank you received: 7
-

10 years 8 months ago [\#232543](#232543) by [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")  *[Fatal error in helpers/modules.php on line 207](/forum/27-checkout/882896-fatal-error-in-helpers-modules-php-on-line-207#232543 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on null in /home/.../public&#95;html/administrator/components/com&#95;hikashop/helpers/module.php on line 207  This happens when the user has added an item to the shopping cart from RSVP Pro (3rd party)...it redirects to Hikashop's shopping cart and then this error is generated.  I'm not sure how to troubleshoot this. It had been working before.  Can someone help me with how to communicate when/what this module is doing so I can track down the cause?  Thank you,  Kevin")* was created by *[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.18
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on null in /home/.../public_html/administrator/components/com_hikashop/helpers/module.php on line 207

This happens when the user has added an item to the shopping cart from RSVP Pro (3rd party)...it redirects to Hikashop's shopping cart and then this error is generated.

I'm not sure how to troubleshoot this. It had been working before.

Can someone help me with how to communicate when/what this module is doing so I can track down the cause?

Thank you,

Kevin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Mjg5Ni1mYXRhbC1lcnJvci1pbi1oZWxwZXJzLW1vZHVsZXMtcGhwLW9uLWxpbmUtMjA3P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 8 months ago [\#232585](#232585) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Fatal error in helpers/modules.php on line 207](/forum/27-checkout/882896-fatal-error-in-helpers-modules-php-on-line-207#232585 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on null in /home/.../public&#95;html/administrator/components/com&#95;hikashop/helpers/module.php on line 207  This happens when the user has added an item to the shopping cart from RSVP Pro (3rd party)...it redirects to Hikashop's shopping cart and then this error is generated.  I'm not sure how to troubleshoot this. It had been working before.  Can someone help me with how to communicate when/what this module is doing so I can track down the cause?  Thank you,  Kevin")*

Hi,

Please replace the content of the file mentioned in the error by this one: Code:

&lt;?php class hikashopModuleHelper{ function initialize(&amp;$obj){ $this-&gt;_getParams($obj); // Set the joomla menu settings to the hikashop settings if(!empty($obj-&gt;ctrl)){ $data = $obj-&gt;params-&gt;get('data'); $type = 'hk_'.$obj-&gt;ctrl; if(isset($data-&gt;$type) &amp;&amp; is_object($data-&gt;$type)){ foreach($data-&gt;$type as $k =&gt; $v){ $obj-&gt;params-&gt;set($k,$v); } } } $this-&gt;setCSS($obj-&gt;params,@$obj-&gt;module); $obj-&gt;modules = $this-&gt;setModuleData($obj-&gt;params-&gt;get('modules')); } function setCSS(&amp;$params,$name=''){ $css =''; $main_div_name = $params-&gt;get('main_div_name'); if(empty($main_div_name)){ $main_div_name ='hikashop_category_information_'.($name?'module_':'menu_').$params-&gt;get('id'); $params-&gt;set('main_div_name',$main_div_name); } $config =&amp; hikashop_config(); if($config-&gt;get('no_css_header',0)){ return true; } if($params-&gt;get('background_color','')==''){ $defaultParams = $config-&gt;get('default_params'); $params-&gt;set('background_color',$defaultParams['background_color']); } if($params-&gt;get('margin','')==''){ $defaultParams = $config-&gt;get('default_params'); $params-&gt;set('margin',$defaultParams['margin']); } $background_color = $params-&gt;get('background_color'); if(!empty($background_color)){ $css=' #'.$main_div_name.' div.hikashop_subcontainer { background:'.$background_color.'; } #'.$main_div_name.' .hikashop_rtop *,#'.$main_div_name.' .hikashop_rbottom *{ background:'.$background_color.'; } '; } if($params-&gt;get('text_center','-1')=='-1'){ $config =&amp; hikashop_config(); $defaultParams = $config-&gt;get('default_params'); $params-&gt;set('text_center',$defaultParams['text_center']); } $center = $params-&gt;get('text_center'); if(!empty($center)){ $css.=' #'.$main_div_name.' div.hikashop_subcontainer,#'.$main_div_name.' div.hikashop_subcontainer span { text-align:center; } #'.$main_div_name.' div.hikashop_container { text-align:center; } '; }else{ $css.=' #'.$main_div_name.' div.hikashop_subcontainer,#'.$main_div_name.' div.hikashop_subcontainer span { text-align:left; } #'.$main_div_name.' div.hikashop_container { text-align:left; } '; } $margin = $params-&gt;get('margin',0); $css.=' #'.$main_div_name.' div.hikashop_container { margin:'.$margin.'px '.$margin.'px; } #'.$main_div_name.' div.hikashop_category,#'.$main_div_name.' div.hikashop_product{ float:left; }'; if($params-&gt;get('rounded_corners','-1')=='-1'){ $config =&amp; hikashop_config(); $defaultParams = $config-&gt;get('default_params'); $params-&gt;set('rounded_corners',$defaultParams['rounded_corners']); } $rounded_corners = $params-&gt;get('rounded_corners',0); if($rounded_corners){ $css.= ' #'.$main_div_name.' .hikashop_subcontainer { -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; } '; }else{ $css.= ' '; } if (!HIKASHOP_PHP5) { $doc =&amp; JFactory::getDocument(); }else{ $doc = JFactory::getDocument(); } $doc-&gt;addStyleDeclaration($css); } function setModuleData($modules){ if(!empty($modules)){ if(!is_array($modules)){ $modules = explode(',',$modules); } JArrayHelper::toInteger($modules); $modules = implode(',',$modules); $database = JFactory::getDBO(); $query = 'SELECT * FROM '.hikashop_table('modules',false).' WHERE id IN ('.$modules.');'; $database-&gt;setQuery($query); $modulesData = $database-&gt;loadObjectList('id'); $unset = array(); $modules = explode(',',$modules); foreach($modules as $k =&gt; $v){ if(isset($modulesData[$v])){ $file = $modulesData[$v]-&gt;module; $custom = substr( $file, 0, 4 ) == 'mod_' ? 0 : 1; $modulesData[$v]-&gt;user = $custom; $modulesData[$v]-&gt;name = $custom ? $modulesData[$v]-&gt;title : substr( $file, 4 ); $modulesData[$v]-&gt;style = null; $modulesData[$v]-&gt;position = strtolower($modulesData[$v]-&gt;position); $modules[$k] = $modulesData[$v]; }else{ $unset[]=$k; } } if(!empty($unset)){ foreach($unset as $u){ unset($modules[$u]); } } }else{ $modules=array(); } return $modules; } function _getParams(&amp;$obj){ if(empty($obj-&gt;params)){ global $Itemid; $app = JFactory::getApplication(); $menus = $app-&gt;getMenu(); $menu = $menus-&gt;getActive(); if(!empty($Itemid) &amp;&amp; !empty($menu) &amp;&amp; !empty($menuData-&gt;link) &amp;&amp; strpos($menu-&gt;link,'option='.HIKASHOP_COMPONENT)!==false &amp;&amp; (strpos($menu-&gt;link,'view=category')!==false &#124;&#124; strpos($menu-&gt;link,'view=')===false)){ $app-&gt;setUserState(HIKASHOP_COMPONENT.'.category_item_id',$Itemid); } if(empty($menu)){ if(!empty($Itemid)){ $menus-&gt;setActive($Itemid); $menu = $menus-&gt;getItem($Itemid); }else{ $item_id = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.category_item_id'); if(!empty($item_id)){ $menus-&gt;setActive($item_id); $menu = $menus-&gt;getItem($item_id); } } } jimport('joomla.html.parameter'); if (is_object( $menu )) { // If missing hikashop data for the current menu due to FaLang or JoomFish for example if(HIKASHOP_J30 &amp;&amp; (($menu-&gt;query['view'] == 'category' &amp;&amp; (!$menu-&gt;params-&gt;get('hk_category',false) &#124;&#124; !$menu-&gt;params-&gt;get('hk_product',false))) &#124;&#124; ($menu-&gt;query['view'] == 'product' &amp;&amp; !$menu-&gt;params-&gt;get('hk_product',false)))){ $db = JFactory::getDBO(); $query = 'SELECT params FROM '.hikashop_table('menu',false).' WHERE id = '.(int)$menu-&gt;id; $db-&gt;setQuery($query); $itemData = json_decode($db-&gt;loadResult()); if(isset($itemData-&gt;hk_category)) $menu-&gt;params-&gt;set('hk_category', $itemData-&gt;hk_category); if(isset($itemData-&gt;hk_product)) $menu-&gt;params-&gt;set('hk_product', $itemData-&gt;hk_product); } $obj-&gt;params = new HikaParameter( $menu-&gt;params ); $obj-&gt;params-&gt;set('id',$menu-&gt;id); if(version_compare(JVERSION,'1.6','&lt;')){ $obj-&gt;params-&gt;set('title',$menu-&gt;name); }else{ $obj-&gt;params-&gt;set('title',$menu-&gt;title); } }else{ $params =''; $obj-&gt;params = new HikaParameter($params); } if (is_object( $menu )) { // We force the option "selectparentlisting" for retro compatibility $productParams = $menu-&gt;params-&gt;get('hk_product',false); if($productParams &amp;&amp; !isset($productParams-&gt;selectparentlisting) &amp;&amp; isset($productParams-&gt;category)){ $productParams-&gt;selectparentlisting = $productParams-&gt;category; $menu-&gt;params-&gt;set('hk_product',$productParams); $menu-&gt;params-&gt;set('selectparentlisting',$productParams-&gt;selectparentlisting); $menu-&gt;params-&gt;set('content_type','product'); } $categoryParams = $menu-&gt;params-&gt;get('hk_category',false); if($categoryParams &amp;&amp; !isset($categoryParams-&gt;selectparentlisting) &amp;&amp; isset($categoryParams-&gt;category)){ $categoryParams-&gt;selectparentlisting = $categoryParams-&gt;category; $menu-&gt;params-&gt;set('hk_category',$categoryParams); $menu-&gt;params-&gt;set('selectparentlisting',$categoryParams-&gt;selectparentlisting); $menu-&gt;params-&gt;set('content_type','category'); } } $config = hikashop_config(); $menuClass = hikashop_get('class.menus'); $menuData = $menuClass-&gt;get(@$menu-&gt;id); if($config-&gt;get('auto_init_options',1) &amp;&amp; !empty($menuData-&gt;link) &amp;&amp; strpos($menuData-&gt;link,'view=product')===false){ //the menu is a category listing so check the associated modules $options = $config-&gt;get('menu_'.@$menu-&gt;id,null); if(empty($options) &#124;&#124; empty($options['modules'])){ //no options set for the categories listing menu, auto create the options and an associated module $menuClass-&gt;createMenuOption($menuData,$options); } } if(!empty($menuData-&gt;hikashop_params)){ foreach($menuData-&gt;hikashop_params as $key =&gt; $item){ $obj-&gt;params-&gt;set($key,$item); } } if(!empty($menuData-&gt;params)){ foreach($menuData-&gt;params as $key =&gt; $item){ if(!is_object($item)){ $obj-&gt;params-&gt;set($key,$item); } } } }else{ $obj-&gt;module = true; } } }

The following user(s) said Thank You: [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Mjg5Ni1mYXRhbC1lcnJvci1pbi1oZWxwZXJzLW1vZHVsZXMtcGhwLW9uLWxpbmUtMjA3P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")**
- [![stratacorps's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33546-stratacorps "View stratacorps's Profile") Topic Author
- [ Offline](/forum/user/33546-stratacorps)

Less More

- Posts: 116
- Thank you received: 7
-

10 years 8 months ago [\#232776](#232776) by [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")  Replied by *[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")* on topic *[Fatal error in helpers/modules.php on line 207](/forum/27-checkout/882896-fatal-error-in-helpers-modules-php-on-line-207#232776 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.18 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to a member function get() on null in /home/.../public&#95;html/administrator/components/com&#95;hikashop/helpers/module.php on line 207  This happens when the user has added an item to the shopping cart from RSVP Pro (3rd party)...it redirects to Hikashop's shopping cart and then this error is generated.  I'm not sure how to troubleshoot this. It had been working before.  Can someone help me with how to communicate when/what this module is doing so I can track down the cause?  Thank you,  Kevin")*

Monitoring things for a day so far and all seems well. Thank you for the quick response!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Mjg5Ni1mYXRhbC1lcnJvci1pbi1oZWxwZXJzLW1vZHVsZXMtcGhwLW9uLWxpbmUtMjA3P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
