Jump to content

Admin image uploads not displaying


Marty Walker
 Share

Recommended Posts

Hi all,

This is my first time working with PW3 (3.0.37 to be specific) and I've run into a wee problem. Apologies if this has been discussed before but I haven't been keeping up with happenings in the new version.

I've upgraded from a 2.7.2 install and I can't seem to get new image uploads (jpegs or PNGs) displaying in the admin. The images that existed before the upgrade appear fine but anything new displays a blank thumbnail. I can confirm that the image is being uploaded as it exists in the directory. Not sure what do...

Server is running: PHP 5.4.45 and MySQL 5.5.52-cll.

screenshot-blumeillustrated.com.au 2016-10-17 13-24-47.jpg

Link to comment
Share on other sites

Hi @Marty Walker,

this seems to be new. :)

So, just a shot into the blue: can you inspect settings in regard of adminThumb ($config->adminThumbOptions) in your site/config.php, and compare this with settings from the wire/config.php. Your site/config.php may have old settings from PW 2.7 that overwrites newer settings introduced with PW 3.0 to become unusable. (Maybe something that results in a thumb with 0 px height or width.

If this doesn't help, it would be useful to see the markup (HTML-code) of that thumbnail.

Link to comment
Share on other sites

13 hours ago, Marty Walker said:

the image is being uploaded as it exists in the directory

In that  directory is there a variation too or just the original image?

If it just the original image then PW probably can't create the variation for some reason.

I had this happen while importing some images from another site through multi-instance, in my case it was a problem with the directory ownership.

You can check ownership with this command:

ls -l /path/to/site/assets/files

Result (web8 is the user, www-data is the apache group):

Untitled.jpg

You can then compare an old directory with a new one.

Link to comment
Share on other sites

10 hours ago, horst said:

and how does the rendered markup look like?

Strangely it looks like this:

<img src="/site/assets/files/1/blume_web_ad_bmcc.jpg" alt="" style="display: none !important;">

... which is odd considering this is my PHP:

echo "<img src='".$page->advert_image->url."' alt=''>";

@fbg13

There's a variation in there too and the directory group and permissions are all fine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...