Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21948

    HELP PLEASE! I was working on trying to change something in this area:

    #

    # creates the post image for each post

    #

    function avia_woocommerce_thumbnail()

    {

    //circumvent the missing post and product parameter in the loop_shop template

    global $post;

    $product = get_product( $post->ID );

    //$rating = $product->get_rating_html(); //rating is removed for now since the current implementation requires wordpress to do 2 queries for each post which is not that cool on overview pages

    ob_start();

    if($product->product_type != ‘external’)

    {

    woocommerce_template_loop_add_to_cart($post, $product);

    }

    $link = ob_get_clean();

    $extraClass = empty($link) ? “single_button” : “” ;

    echo “<div class=’thumbnail_container’>”;

    echo “<div class=’thumbnail_container_inner’>”;

    $image = get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ );

    if(empty($image))

    {

    $attachments = avia_post_meta(get_the_ID(), ‘slideshow’);

    if(!empty($attachments))

    {

    $thumbid = $attachments[0][slideshow_image];

    $image = wp_get_attachment_image( $thumbid, ‘shop_catalog’ );

    }

    }

    echo $image;

    echo $link;

    echo “ID).”‘>”.__(‘Show Details’,'avia_framework’).”“;

    if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;

    echo “</div>”;

    echo “</div>”;

    }

    I was trying to be smart and before I changed anything I copied the correct code into a word file just in case it didn’t work and then I could just copy and past it back. That is what I did and now I am getting this message:

    Parse error: syntax error, unexpected ‘<’ in /home/caseylum/public_html/wp-content/themes/flashlight/woocommerce-config/config.php on line 484

    how do I go about changing it back to the original?

    Thank you!

    #113672

    hmmmm…and now it wont even let me log back in. Every time I try to go to my admin page it just gives me that same message

    Parse error: syntax error, unexpected ‘<’ in /home/caseylum/public_html/wp-content/themes/flashlight/woocommerce-config/config.php on line 484

    #113673

    You must use ftp to replace the modified/broken php file on your server. Connect to your server, navigate to wp-content/themes/flashlight and search for the right php file. Then delete it and upload the unmodified file from your PC.

    #113674

    OK, I was able to access the file that way. The only problem is, is that I already replaced the unmodified file back and still getting that message, now I don’t know what else I can do.

    Is there any way I can post the config.php and you guys can see or would you not be able to tell?

    #113675

    Never mind! I realized I had an old back up that I re-uploaded and we are back in business!!!!!! yay! Thank you for your help!

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

The topic ‘Parse error: syntax error’ is closed to new replies.