• In the new version 2.7.3 , list-item not showing customized fields. it is showing only default fields.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sktyagi

    (@sktyagi)

    My Code is this

    array(
    ‘id’ => ‘home_slider’,
    ‘label’ => ‘Home Slider’,
    ‘desc’ => ”,
    ‘std’ => ”,
    ‘type’ => ‘list-item’,
    ‘section’ => ‘tyagi_home_layout’,
    ‘settings’ => array(
    array(
    ‘id’ => ‘slider_image’,
    ‘label’ => ‘Image’,
    ‘type’ => ‘upload’,
    ),
    array(
    ‘id’ => ‘slide_top_heading’,
    ‘label’ => ‘Slide Top Title’,
    ‘type’ => ‘text’,
    ),
    array(
    ‘id’ => ‘slide_sub_heading’,
    ‘label’ => ‘Slide Sub Title’,
    ‘type’ => ‘text’,
    ),
    array(
    ‘id’ => ‘slider_description’,
    ‘label’ => ‘Description text’,
    ‘type’ => ‘textarea-simple’,
    ),
    array(
    ‘id’ => ‘slider_link_text1’,
    ‘label’ => ‘First Link Text’,
    ‘type’ => ‘text’,
    ),
    array(
    ‘id’ => ‘slider_link1’,
    ‘label’ => ‘First Link’,
    ‘type’ => ‘text’,
    ),
    array(
    ‘id’ => ‘slider_link_text2’,
    ‘label’ => ‘Second LinkText’,
    ‘type’ => ‘text’,
    ),
    array(
    ‘id’ => ‘slider_link2’,
    ‘label’ => ‘Second Link’,
    ‘type’ => ‘text’,
    ),
    )
    ),

    Please go back to version 2.7.0 to fix the issue

    I hope this issue get resolved asap cause its really hard to explain the customers to downgrade. Thanks

    I’ve Found the issue

    Its on File option-tree -> includes -> ot-functions-admin.php

    For Function

    function ot_decode( $value ) {

    Preg_match is not working correctly.

    So this line

    // Search for an object.
    preg_match( '/O|C:\+?\d+:"[a-z0-9_]+":\+?\d+:/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 );

    Should be replaced with.

    // Search for an object.
    preg_match( '/O:\d+:"[a-z0-9_]+":\d+:{.*?}/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 );
    • This reply was modified 5 years, 4 months ago by Ateeq Rafeeq.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘list itemis not properlywork in new version’ is closed to new replies.