If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
April 9, 2013 at 8:35 am #21948
HELP PLEASE! I was working on trying to change something in this area:
# creates the post image for each post
//circumvent the missing post and product parameter in the loop_shop template
$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
if($product->product_type != ‘external’)
$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’ );
$attachments = avia_post_meta(get_the_ID(), ‘slideshow’);
$thumbid = $attachments[slideshow_image];
$image = wp_get_attachment_image( $thumbid, ‘shop_catalog’ );
if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;
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!April 9, 2013 at 8:40 am #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 484April 9, 2013 at 8:49 am #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.April 9, 2013 at 3:09 pm #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?April 9, 2013 at 3:20 pm #113675
The topic ‘Parse error: syntax error’ is closed to new replies.