Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.27
- This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
09/05/2018 at 9:12 am #471613
Wayne Tooze
ParticipantSince upgrading from PHP5.6 to 7.0 or 7.2 the Logo image does not display, outputting “No image available” instead. This happens on the front side of the site and the Connections area in wp-admin.
Below is a print_r() of the $atts array in class.entry-output.php at about line 269 just after
case 'logo':
The CMap add on is installed and activated, and recently updated along with Connections itself and WordPress Core. Switching back to PHP5.6 causes the logo image to appear.
Thanks
Array ( [image] => logo [width] => [height] => [zc] => 1 [fallback] => Array ( [type] => block [string] => No Image Available [height] => 0 [width] => 0 ) [preset] => entry [quality] => 80 [before] => [after] => [sizes] => Array ( [0] => 100vw ) [style] => Array ( ) [action] => display [permalink] => [return] => )
09/05/2018 at 9:32 am #471617Steven Zahm
Keymaster@ Wayne
Not sure this would be a PHP version related issue… I develop on version 7.1 nd do backward compat testing.
I wonder, perhaps the permissions are set up in a way that the images can not be read when you switch. Can you switch to version 7.1?
09/05/2018 at 10:03 am #471622Wayne Tooze
ParticipantHi Steven,
Tried it on PHP7.1 as well now and still the same problem.
As the $atts array doesn’t contain a permalink I was under the impression that the problem would be before it would attempt to open any image file. Could you give me some guidance on where the image data is fetched / generated from the database so I can go digging a little deeper.
Thanks
09/05/2018 at 12:12 pm #471673Steven Zahm
Keymaster@ Wayne
The URL is fetch within this function a little further down. At about line 284, you’ll find a call to
this->getImageMeta()
with an array of option. Again a little further down on line 311. One of these two will be fetching the logo meta which includes it’s URL. ThegetImageMeta()
function is in theclass.entry-data.php
file.Hope this helps. Let me know what you learn.
09/06/2018 at 5:34 am #471721Wayne Tooze
ParticipantThanks Steven,
The 2nd getImageMeta call is being made a $customSize is false but the response is a WP_Error_object as follows…
WP_Error Object ( [errors] => Array ( [image_no_editor] => Array ( [0] => No editor could be selected. ) ) [error_data] => Array () )
Turns out the PHP-GD was missing from the PHP7 builds on the server.
Installed that and all working fine now. Thanks for your help and hope this thread helps someone else.
09/06/2018 at 9:11 am #471755Steven Zahm
Keymaster@ Wayne
Ahhh, yes, that would do it. When adding an entry or adding an image to an existing entry, that WP error would have bubbled up and displayed in the admin as an error.
One of WP secrets is that is actually requires GD too but never tells the user. Without it it is unable to create its own thumbnails and such for featured images. WP instead silently servers the full hires image using CSS scaling. A great way to slow down ones site :/
Glad to hear you figured it out!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.