Error in portfolio code

Discussion in 'Photomaker WordPress Theme' started by darachbeag, Jun 24, 2015.

Thread Status:
Not open for further replies.
  1. darachbeag

    darachbeag Guest

    Joined:
    Jun 16, 2015
    Messages:
    2
    Likes Received:
    0
    Hallo,

    I am trying to build a site on a local server but cannot connect - just get a blank screen or 404 message. The php. error log says this: PHP Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/wordpresstest/wp-content/themes/photomakertheme/portfolio.php on line 42

    Line 42 in the portfolio.php says this: terms = get_the_terms($post->ID, 'filter');

    Or this (not sure if blank lines count as lines): foreach ($terms as $term) {

    Any advice would be greatly appreciated. It was all working ok last time I logged on. Thanks.
     
  2. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello,

    We need your website dashboard access to figure out the issue.
    So, send us your website WordPress login details at [email protected] along with the thread link.

    Thanks,
    Praveen
     
  3. darachbeag

    darachbeag Guest

    Joined:
    Jun 16, 2015
    Messages:
    2
    Likes Received:
    0
    Thanks for that Praveen, I have solved the issue now. :)
     
Thread Status:
Not open for further replies.

Share This Page