Images not showing on a dev domain

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
June 27, 2013 at 4:43 am #3243
Bart Dabek
Post count: 24

Hey there, wierd issue… we have a an issue when we move the site to a different sub domain the images stop showing from the image field… we’re not resizing the image exists still in the original production url and the db is linking to it but the code isn’t spitting out an image… the code hasn’t changed at all and the db is the same as prod… any ideas?

June 27, 2013 at 9:03 am #3251
traversal
Post count: 207

Hey Bart, unfortunately the image fields do rely on the fact that the files are hosted inside the same WordPress installation – you can’t really point at images hosted at another location.

While this may sound strange, we can’t do a lot of the magic with images without being able to access the files locally in PHP. In the dashboard for example, even if you’re not resizing them, we still need to resize them for display. Also, when we build a tag, we access the locally to be able to get the width and height, and so on.

On the front-end, I imagine you’d be able to display the images still if you manually build tags and just use the raw value, but that obviously takes away the convenience of not needing to do that in our API.

I think the only way for now is to run a separate DB / content folder for dev. Not ideal I know, but I don’t see a way around it.

There is potential to modify this handling a little and try to pull down an image (for resizing etc whenever the image isn’t found in the installation, but this change is not trivial. Your use-case is not unusual of course, so we might need to address this somehow.

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

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM