Images loading from IP address on WordPress

If you’re like me, you may be surprised to suddenly find that images on some of your posts have an image loading from an IP address instead of your domain name on your WordPress website.

Images loading from IP address instead of domain name on WordPress

I did not realise I had some broken images and maybe even images loading off my WordPress IP address instead of www.dejavuguides.com which is you’d want your visitors to see. (You can read more here if you’re interested in why exposing your origin IP address is not a good idea – Cloudflare hides your origin server IP addresses for traffic you proxy to Cloudflare).

Example of images not loading

Here is an example of one of my images that was not loading.

Images not loaded, why?

Discovered images loaded from IP address instead of domain name on WordPress

I looked into the HTML code and discovered one of my WordPress IP addresses was being referenced for the image.

Most likely as I had writing new blog posts via my WordPress IP address at https://35.230.x.x/wp-admin directly instead of https://dejavuguides.com/wp-admin so it automatically picked up that IP address to reference to.

IP address listed where I am storing my image!

So I can manually update these links so it says https://www.dejavuguides.com/wp-content/….

That allows the image to load now which you’ll see below. (You can also test this via the following and you’ll see that only my newly updated link works).

  • https://www.dejavuguides.com/wp-content/uploads/2019/02/google-service-center-hours-1024×768.jpg vs
  • https://35.230.0.44/wp-content/uploads/2019/02/google-service-center-hours-1024×768.jpg)
Image loaded after updating link

Great news is this fixed my images and made sure that they are loading. Now the question is how do I know and check if this is an issue for my other posts? How do I do that at scale?

Well, we can WordPress plugins to help us 😉

So we can use a WordPress Plugin that does a search and replace like functionality. You can use any that you prefer, but the goal now is to search for your WordPress IP address and do a very specific update to any references to this old WordPress IP address. Always back up your database before making changes here.

I personally like to use these WordPress plugins:

Once you have selected one of these you will want to use them in “dry run” mode, so you can review before any action is taken.

  • Case-insensitive = Yes
  • Replace GUIDs = Leave unchecked
  • Run as dry run? = Yes

Example of fixing this image IP address on WordPress using “Better Search Replace” plugin

Example of images loading properly now after the fix

Example of using “Velvet Blues Update URLs” plugin to Images loading from IP address on WordPress

If you want to use the Velvet Blues Update URLs to change the IP address to your current domain name. I recommend using the “URLs in page content” box. But can also consider the other options as well. Just make sure that you do back up and update your website when you can.

Updating URL links using Velvet Blues Update URLs plugin

Please feel free to comment below you have questions or tips for other readers to resolve this problem as well. Happy blogging!

How to sell photos on your WordPress website using Symbiostock

Applicable to: WordPress users
You may have been thinking whether you can monetarise the photos that you have posted on your website.
So that instead of just storing all these images on your phone or computer, you can showcase them and actually sell them to magazines and bloggers using Symbiostock!

symbiostock.org/shop/

Step 1 – Download Symbiostock Pro from Symbiostock

Download Symbiostock Pro from Symbiostock. Just download the free version of it. As they are currently offering the Pro version for free. https://www.symbiostock.org/shop


Uploading the files to your server via the WordPress Plugins section, and activate it.
Note – you’ll need to also have Symbiostock Lite installed as well, as it has some core components which the Symbiostock Pro relies on – https://wordpress.org/plugins/symbiostock/

 

Step 2 – Install WooCommerce 2.5.5

If you do not already have WooCommerce, you will be prompted to install it. Just click the link and it will be automatically installed.

I used a free WooCommerce Theme, Storefront, to make the push from Symbiostock to WooCommerce easier and consistent with the key features and functions I would like to have. However, you can opt to modify your current website to support it as well, if that’s what you prefer.

Step 3 –  Start uploading media/ photos

You’re ready to start uploading media!

Step 3 – How to upload photos to your account:

Scroll over the ‘Symbiostock’ tab and click on ‘Upload Media’. Upload an image via the web form.

3.1 Upload media

3.2 Run script to process images

Once uploaded, click on ‘Settings’ under the same ‘Symbiostock’ tab.

3.3 Click on the ‘System’ sub-tab (‘Run Now’)

You will see the Maintenance Command/Processor. You will see a link that says ‘Run Now’. Click on this. It may take a minute for your image to get processed as Symbiostock waits a certain amount of time prior to processing all new images to ensure they are finished uploading. Refresh that page a few times until you see that your new image has been parsed.   

3.4 Review and set images to publish mode (‘Publish’) 

Soon, the image you uploaded will show up under the ‘Symbiostock’ or ‘Media’ tabs. If it is still in draft mode, edit it and click on ‘Publish’. After that, you can click on ‘View’ or click on ‘View’ from the previous list page.  

3.5 Check live website

You will see your live, new image available for sale in your store. Customers can actually buy and checkout that image now. It’s that easy. More details on the upload of images on Symbiostock wordpress plugin process here https://www.symbiostock.org/docs/3-minute-guide-to-launching-your-store/

Future – Consider setting up the scheduler/ image processor so it is automated

Note – This requires access to your backend cPanel or Plesk.

The core functionality of Symbiostock Pro is built into the processor. This is a process that is run once every minute in order to process images, clean up data, organize downloads, and do a whole lot of other stuff. Symbiostock will not operate correctly if this processor is not run periodically, and should ideally be run once every minute.

You can manually run the scheduler by going to Symbiostock > Settings > System and clicking on ‘Run Now’. A window will pop up and this initiates the scheduler.

If you prefer manually doing it, you can do that – but it is highly recommended that you tell your system to run this automatically as it just makes things a whole lot easier. On Linux, these jobs are called ‘cron jobs’.
Different systems will implement this differently, but here are some links to some popular control panels:
Cpanel OR
Plesk

Please note that the script to run is in Symbiostock > Settings > System – copy that entire line into your scheduled task.

Once the processor is scheduled, it will keep checking and adding new images, regenerating thumbnails, and doing all the organization in the background.
https://www.symbiostock.org/docs/setting-up-the-schedulerimage-processor/

Verify your site ownership on Google Webmasters Console on HubSpot

How to verify your site ownership on Google Webmasters Console on HubSpot

First of all, what is Google Webmasters Console?

Google Webmasters Console is Google’s interface and communication channel between webmasters and Google. They found that while than passively indexing websites using web spiders was effective, sometimes webmasters simply didn’t know something on their website was lacking (e.g. dead links, excessive load times, etc.). So this is their way to actively let webmasters who opt in to communicate know.

How do I use Google Webmasters Console?

This is not a guide to go through all parts of the tool, as it’s constantly expanding in features. Google has been spending a fair bit of time recently bringing in the Google Webmasters Console and Google Analytics together.

One of the things that Google needs you to do to get started is to prove you are indeed a webmaster and own the domain/ subdomains that you are looking to manage.

Google lists a variety of different ways to check and verify you own the site. They are as follows:

Verification methods

  • HTML file upload
  • Domain name provider
  • HTML tag
  • Google Analytics tracking code
  • Google Tag Manager container snippet
  • Google Sites
  • Blogger
  • HTML tag 
  • Google Analytics tracking code 
  • Google Tag Manager container snippet
Of these, I personally find the Domain name provider as the easiest solution. If you provider is not listed though, this step may not be possible. So you will need to consider the other options.
On HubSpot, the applicable options you can use HubSpot to set up are:
I will show you how to verify your website using the HTML tag verification option.

How to verify your ownership of your website via “HTML tag” verification option on HubSpot

Step 1 – Log into Google Webmasters Console via your Google account

Log into the Google Webmasters Console Tools website.

Step 2 – Add your website “property” 

There will be an option to add your “property” to the Google Webmasters Console. Click on the “Add Property” button to do so.

Step 3 – Select HTML tag

Select HTML tag, where we will need to add a meta tag to your site’s home page.

Step 4 – Add Meta Tag to your HubSpot portal

Go to your HubSpot portal. Find “Content Settings” under “Content” and then find a section called, “Site Header HTML” and add in the meta tag that Google would have provided to you.
It should look something like this.

Once you have set this up on HubSpot, scroll down and click the blue “Save” button.

Step 5 – Click Verify on Google’s Search Console

Click “Verify” on Google’s Search Console so that they check your website for the meta tag.

Step 6 – Success

You should have a confirmation of success.
If it is not working, you may need to explore other options to prove that you own the website URL that you are asking Google to allow you to manage as a webmaster.

Please reach out to Google Webmasters Central Help Forums for help if you get stuck. As HubSpot Support won’t have access to Google’s system.

Here are some common verification errors mentioned by Google below.

Common verification errors

In addition to any method-specific verification errors, the following verification errors are possible in most verification methods:

  • The connection to your server timed out.
    We were unable to verify your file because we received a server timeout. This could be because your server is down or is busy and responding slowly. Make sure that your server is responding and try again.
  • We encountered an error looking up your site’s domain name.
    We tried to access your verification file, but were unable to access your domain due to a DNS error. This could be because your server is down, or there is an issue with the DNS routing to your domain. Make sure that your domain is resolving correctly and try again.
  • The download request was redirected too many times.
    Check the URL for potential issues, such as an infinite loop.
  • Your server returned an invalid response.
    This can happen if your site is requires password authentication, or if we cannot access it for other reasons.
  • We were unable to connect to your server.
    Make sure that your server is not down, and that your domain is resolving correctly, and try again.
  • An internal error occurred.
    If this problem persists, check the Webmaster Central Help Forum for updates.