Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1312530
    Eidderf
    Participant

    Hi,

    After I updated my website to the latest X theme and Cornerstone, I got this error:

    Warning: in_array() expects parameter 2 to be array, string given in /home/website/public_html/devsite/wp-content/themes/x/framework/functions/global/portfolio.php on line 112

    Warning: Invalid argument supplied for foreach() in /home/website/public_html/devsite/wp-content/themes/x/framework/functions/global/portfolio.php on line 128

    Please help as soon as you can please because this error is present in our live site.

    I’ll provide my FTP details on the following post.

    Thank you

    #1312533
    Eidderf
    Participant
    This reply has been marked as private.
    #1312535
    Eidderf
    Participant
    This reply has been marked as private.
    #1312539
    Eidderf
    Participant

    Once fixed, kindly explain what you did so I can apply the solution to our live site. Thank you and happy new year!

    #1312575
    Christian
    Moderator
    This reply has been marked as private.
    #1313704
    Eidderf
    Participant
    This reply has been marked as private.
    #1313732
    Friech
    Moderator

    Hi There,

    The issue is, that page is your blog index page but it was using a Layout – Portfolio template. To resolve this issue first navigate to Settings > Reading unassigned the MEDIA as your Posts page.

    Then edit your MEDIA page and change the template to No Container | Header, Footer or if you need the title choose the Layout – Fullwidth.


    screenshot

    Then navigate back to Settings > Reading and assign the MEDIA as your Posts page again.

    Hope it helps, Cheers!

    #1313752
    Eidderf
    Participant

    Hi Friech,

    Thank you for the quick reply. I did that solution earlier and it did remove the error. However, I would like to have the FILTER functionality of the PORTFOLIO template that is why I’m using that template instead of the NO CONTAINER | HEADER, FOOTER template.

    How can I have a filter in MEDIA page without the error?

    Thank you

    #1313822
    Paul R
    Moderator

    Hi,

    Regretfully this isn’t a feature offered in integrity blog. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!

    #1315331
    Eidderf
    Participant

    Hi Paul,

    I understand. No worries.

    Thank you

    #1315335
    Nico
    Moderator

    Thank you for understanding.

    Feel free to ask us again.

    Thanks.

    #1411225
    Amanda P
    Participant

    i have this problem in Ethos.

    I loaded the Agency expanded demo and deleted some of the pages so not sure how the portfolio page was set up…but now when i tried to make a new page with Portfolio template, i get an error.

    See page: http://www.milanstile.com/work/

    How can i make the portfolio items show? Using Ethos stack and all settings from Agency demo.

    #1411821
    Friech
    Moderator

    Hi There @amandapiasta,

    Thank you for writing in! What error do you get? I am not seeing any error on that page.

    If you get the same error as the TS above, please check/edit your portfolio page and make sure none of the 3 options on the screen is empty.


    screenshot

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1312530 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>