Support » Plugin: Reviews Block for Google » Missing business image in the widget

  • Hi, on the latest version of wordpress and this free plugin I am trying to use the widget, however any business I try has no picture next to it…

    This is my test website where I have replicated the problem:
    http://sam-fullalove.uk.to/

    You can see the widget on the right. The business is called “hanjin hostel” but left of this text, there is meant to be a picture.

    This plug-in used to always work for me, so if anyone can help me I would appreciate it! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hey there,

    Somehow the inline style is corrupted. It currently shows this:
    <div class="gpr-business-avatar" style="background-image: https://maps.googleapis.com/maps/api/place/photo?photoreference=CoQBdwAAALmPJv7jGcuI65RRf93dr0wJZPUaKLqaMrUzsHiM7fPC1-8JKz9_NnjxoqPwb-AkUmJCAJjnz7t5HSZx-dGnh6SuzuXmq5LYsdn25rmyVwC0xCSYR8PnWKCAYFIgOwTF-tyKZOmUdZek2oXIr0osKa6DtYUV1gfZ4FJ5nKMUZ_-DEhD5ddONAUMuya98oHeyX1zuGhQ0bcifk2N_wIjQlIhgJrh9noAMKA&key=AIzaSyA9xMut6QQwpfzqK5rE96m6RA52OEvxysk&maxwidth=300&maxheight=300;"></div>

    Notice it’s missing url('https...');

    I’ll try to replicate that issue and get back to you. I would think if it was a wide-spread issue we’d be getting a lot more reports from users of this kind of breakage. But I’ll let you know what I find soon. Thanks!

    Thread Starter Sam Fullalove

    (@samful)

    Thanks Matt, I did set it up on 2 different word press installations today to test it.

    They both had different themes, so I’m not sure what could be effecting that CSS :/ and you are right about that missing url('https...'); that is most odd…

    Please let me know how your test goes and thank you for supporting this plug-in as well as you do!

    • This reply was modified 5 years, 7 months ago by Sam Fullalove.
    Thread Starter Sam Fullalove

    (@samful)

    Hi Matt, I know you are looking into this, but I did a bit more testing on different wordpress sites in case I could somehow get it working myself…

    I tried the plug-in on 3 separate websites and it did the same on all of them:

    http://sam-fullalove.uk.to/
    http://sam.fullalove.co/
    and another.

    If I am doing something wrong, or the same across all of these, then I don’t know what it is 🙁

    the solution is >> plugins >> google-places-reviews >> inc >> widget-frontend.php
    Line 34 find:
    <div class=”gpr-business-avatar” style=”background-image: <?php echo $place_avatar; ?>;”></div>

    replace with:
    <div class=”gpr-business-avatar” style=”background-image: url(‘<?php echo $place_avatar; ?>’);”></div>

    so long

    • This reply was modified 5 years, 7 months ago by Burner0815.
    • This reply was modified 5 years, 7 months ago by Burner0815.
    Thread Starter Sam Fullalove

    (@samful)

    Thank you Burner. I just did as you suggested, however now the html output is: <div class="”gpr-business-avatar”" style="”background-image:" url(‘https:="" maps.googleapis.com="" maps="" api="" place="" photo?photoreference="CoQBdwAAALmPJv7jGcuI65RRf93dr0wJZPUaKLqaMrUzsHiM7fPC1-8JKz9_NnjxoqPwb-AkUmJCAJjnz7t5HSZx-dGnh6SuzuXmq5LYsdn25rmyVwC0xCSYR8PnWKCAYFIgOwTF-tyKZOmUdZek2oXIr0osKa6DtYUV1gfZ4FJ5nKMUZ_-DEhD5ddONAUMuya98oHeyX1zuGhQ0bcifk2N_wIjQlIhgJrh9noAMKA&key=AIzaSyA9xMut6QQwpfzqK5rE96m6RA52OEvxysk&maxwidth=300&maxheight=300’);”"></div>

    :/ your suggestion made perfect sense to me, but I don’t understand why my html is not being output like this… my line 34 is now:

    <div class=”gpr-business-avatar” style=”background-image: url(‘<?php echo $place_avatar; ?>’);”></div>

    This is the website I tested it on: http://sam-fullalove.uk.to/

    may the wrong quotation marks?

    <div class="gpr-business-avatar" style="background-image: url('<?php echo $place_avatar; ?>');"></div>

    • This reply was modified 5 years, 7 months ago by Burner0815.
    Thread Starter Sam Fullalove

    (@samful)

    ah ha….thank you very much Burner, that worked. I feel silly that I missed those.

    Ok, well this seems to be the solution. I hope Matt can include this in the next update 🙂

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    We will for sure. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing business image in the widget’ is closed to new replies.