TomvV Posted January 22, 2017 Share Posted January 22, 2017 Hello all, First of all if anyone can help.. you already made my day! I've been trying to figure out what goes wrong for a while but I have no idea. I am in the process of starting a website and I've been using osclass, a free php script, for making a website displaying classifieds. My website is here: marketplacesxm.com . Now as you can see on the website, it displays the latest listings. However, if was showing from which 'sub'category those listings were instead of the parent category. I asked one of the guys there ad he gave me a script to put in there to display the parent categories.. It seems to be working now, except I also get an error displayed on my website as you can see. Does anyone have any ideas on how to fix this? I added some attachments so you can see what I've been doing. Thanks! Quote Link to comment Share on other sites More sharing options...
Moorcam Posted January 22, 2017 Share Posted January 22, 2017 Hi mate, Not being rude but nobody will go to your site to look for the issue. Not that they just don't want to. Lots of people are nervous of possible infections. Your best bet is to post your code here and also the error you are getting so people who are experienced with the script you are using can help. Quote Link to comment Share on other sites More sharing options...
TomvV Posted January 22, 2017 Author Share Posted January 22, 2017 Ok, This is happening. I entered this code:<?php$_category = osc_item_category();if(isset($_category['fk_i_parent_id']) && !is_null($_category['fk_i_parent_id'])) {$_category = Category::newInstance()->findRootCategory(osc_item_category_id());}echo $_category['s_name'];?>And I'm now getting this error displayed on my website: Warning: Illegal String Offset Anyone? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.