I get a Warning: getimagesize() error after import

I get a Warning: getimagesize() error after import

in Layout BuilderTheme options Tags: errorget_image_sizeimport

If you imported the demo data, there is a small chance that you could get a notice similar to Warning: getimagesize(): php_network_getaddresses: getaddrinfo failed: Name or service not known. This is triggered because of a resource (image mostly) which cannot be loaded. In most cases the image in question is a banner which was used on the demos but does not exist on our server any more.

Solution

There is a simple solution for this, as it is actually not an error. To get rid of it you would need to replace/delete the images that were used for the demo. Search for image elements used on that layout and remove or change the URL of it. Most often this problem can appear for ads/banner images. Here is an example of an image element in the builder:

  1. Edit the page you are getting the notice on:
  2. Scroll down to the custom layout meta box with the custom built layout
  3. Find the image element which is problematic, in our case the one just below the top mosaic:
  4. Delete the element from the page or edit it and change the image URL to an existing one
  5. Save the new layout settings.

 

1

0

Related Articles

Leave a Reply