Support Forum ยป User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: โœ…Fatal errors on PHP upgrade from 7.4 to 8.1.17 #42151
    Leora DodrillLeora Dodrill
    Participant

    Sorry, that introduced more problems. I'll have to recode the theme. Thank you for your help!

    in reply to: โœ…Fatal errors on PHP upgrade from 7.4 to 8.1.17 #42150
    Leora DodrillLeora Dodrill
    Participant

    Sorry, I meant, can I leave that call to /inc/metabox/metabox-functions.php commented out until I redesign the theme? Or, should I continue trying to fix this?

    in reply to: โœ…Fatal errors on PHP upgrade from 7.4 to 8.1.17 #42149
    Leora DodrillLeora Dodrill
    Participant

    Hello,
    Thank you for your answer.

    The theme was there when I took over the site and added functionality with Meta Box.

    I commented out the call to count() in one theme file and changed iinit.php back to init.php and that worked.

    However, if I uncomment the call to /inc/metabox/metabox-functions.php, in functions.php, I receive the same errors as reported above. I moved this to local dev to troubleshoot errors:

    ( ! ) Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\Users\leora\Local Sites\the-website\app\public\wp-content\themes\website-theme\inc\metabox\init.php on line 746
    ( ! ) TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\Users\leora\Local Sites\the-website\app\public\wp-content\themes\website-theme\inc\metabox\init.php on line 746

    Can I leave that uncommented until I redesign the theme? Or, should I continue trying to fix this?

    in reply to: Send an email displaying the clone values #41323
    Leora DodrillLeora Dodrill
    Participant

    Hello,
    I see that loops are scoped so need to declare set before the loop. I'm having trouble now because posts_per_page must be wrong?

    {% set args = { post_type: 'item_selection_group', posts_per_page: -1, orderby: 'date', order: 'ASC' }
    %}
    {% set post.item_selection_group = mb.get_posts( args ) %}

    in reply to: Send an email displaying the clone values #41322
    Leora DodrillLeora Dodrill
    Participant

    Hello,
    I just can't get it to work in email. I do have it working in Views and now would like to use orderby: 'clone.select_d8hqbs14ib6.label', order: 'ASC' but this is missing something. Can you help, please?

    {% for clone in post.item_selection_group, orderby: 'clone.select_d8hqbs14ib6.label', order: 'ASC' }
    <td class="cs-items">{{ clone.select_d8hqbs14ib6.label }}</td>
    <td class="cs-items">{{ clone.number_e37aexcx7p }}</td>
    <td class="cs-items">{{ clone.brand_and_item_description }}</td>
    <td class="cs-items">{{ clone.size }}</td>
    <td class="cs-items">{% for item in clone.checkbox_vuqlhl9pcq %}
    {{ item.value }}
    {% endfor %}</td>
    <td class="cs-items">{{ clone.first_alternate }}<br>{{ clone.second_alternate }}<br>{{ clone.third_alternate }}</td>
    <td class="cs-items">{{ mb.checkbox( clone.prefer_organic, 'Yes', 'No' ) }}</td>
    <td class="cs-items">{{ mb.checkbox( clone.organic_only, 'Yes', 'No' ) }}</td>
    </tr>
    {% endfor %}

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