test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • saswiss Friend
    #190306

    Hi,
    I get the following error when I tried to use the extended fields per item/category. Now the whole site is not displayed correctly!!!

    Fatal error: Call to undefined method K2ViewItemlist::buildAliasBasedExtraFields()

    what am I doing wrong???>:(

    phong nam Friend
    #504660

    Hi saswiss,

    You can try to backup your files and update to latest version K2 2.6.7, it may help you to solve this problem which was announced to be fixed in the earlier verision v2.6.x. Remember to clear System cache after updating this component.

    saswiss Friend
    #504707

    Hi Leo,
    thanks for the advice…did the update, cleared the cache and now the whole site is without the proper layout!:((
    It seems as if the css file got changed…not sure though…grrrr

    phong nam Friend
    #504708

    Hi saswiss,

    Can you put your website’s url here and describe more details on the layout problem ? Since updating the K2 component will not affect on the css files or our K2 customized files in templates/ja_lens/html/ folder yet.

    saswiss Friend
    #504711

    sure,
    http://www.myartforrent.com

    I’m sure you’ll see the ‘layout problem’ as soon as you open the site;)

    phong nam Friend
    #504713

    Hi saswiss,

    There is a serious problem with the website’s homepage because all layout structures and css styles are gone away while other pages still display fine : http://www.myartforrent.com/index.php/item/43-waiting . Well, can you backup your website and send me PM with the admin login info ? I will help you to check this weird issue.

    saswiss Friend
    #504715

    hi Leo,
    I now removed the extended field to the specific category and it’s back to normal again…what could be the problem?
    Here 2 screenshots…the before and after extended fields used:


    1. site_without_extendedused
    2. error_after_extended
    phong nam Friend
    #504720

    Hi saswiss,

    I need some times to check this issue carefully on both our JA Lens demo and your website. I will back to you with detailed explanation tomorrow morning. Is it fine, mate ?

    saswiss Friend
    #504721

    thanks! I eagerly await your good news 🙂

    phong nam Friend
    #504835

    Hi saswiss,

    I have updated the codes of Extra fields in our customized K2 category item layout on Joomla 2.5.14 by replacing:

    if(count($this->item->extra_fields)) {
    $extra_fields=K2ModelItem::getItemExtraFields($this->item->extra_fields);
    if (count($extra_fields)) {
    foreach ($extra_fields as $key=>$extraField) {
    if ($extraField->name == $xclass_key) {
    $xclass = $extraField->value;
    break;
    }
    }
    }
    }

    with


    $k2obj = new K2ModelItem();
    $fields = $k2obj->getItemExtraFields($this->item->extra_fields, $this->item);
    //echo $this->item->extraFields->State->name;
    echo $this->item->extraFields->FIELD_ALIAS->value;

    in templatesja_lenshtmlcom_k2ja_lenscategory_item.php file.

    Your website works fine with K2 extra fields now.

    saswiss Friend
    #504840

    Leo,
    THANK you so much!!! you are an absolute star 😉

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 2 voices, and was last updated by  saswiss 11 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum