Skip to main content

The provided host name is not valid for this server

Issue

Trying to run a Drupal 9 localhost site on a Mac through Docker that uses a Wodby base.

 

Normally when using Docker and it's correctly set-up you don't need to add to the etc/hosts file.  However, reading through the Wodby local domains content, it seems this step is required.

Off to the /etc/hosts file

Angular leaflet map doesn't load tiles after refreshing the page

Working through an app project I inherited using Ionic, Angular and ngx-leaflet to name a few elements... I had a problem where the map shows only all map tiles when navigating via my app in the Xcode simulator.  The simulator screen would show just a small tile and the rest of the area where the map should be visible stays in gray color.

Cordova how to update and install or view platforms and plugins

This article references some of the common commands via CLI (command-line interface) in running a Cordova app.

 

Platforms

Platforms are the environment(s) that you want to run your app on.  We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json files.  

To add a platform use the following command:

cordova ios after upgrading to iOS 14 a black screen is shown and no splash screen appears

It appears that the plugin or file path is not working how it used to be on previous iOS versions. Previous version had the splash screen showing.  After upgrading to plugins, a black screen is shown.

The easiest way to simulate the problem is using iOS simulator.  A black screen will show up as the splash screen.

 

Cordova plugins not loading in Ionic

Updating the Cordova plugins... there are two locations to manage the plugins

  • config.xml
  • package.json

I was finding some Cordova functionality was not coming through... through further investigation the two files above had conflicting data.

 

Review the data

package.json

Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

Oh the treasure of a client coming to you with a site they have removed the previous dev on... treasure hunt.  Not.

Anyway, gaining access to an old site, working through the errors I came across this deprecated code

Deprecated function: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in common_check_language() (line 306 of /path/to/file).

 

Ionic Angular html tag showing in text

The issue

Text through the app is being rendered as

<p>Depletion estimates, Age and size composition, Catch, Effort, Catch rates, Fishing mortality</p>

Therefore, in this instance the HTML p tags are being displayed along with the text.

 

The code

Currently the code outputting this is written as:

Subscribe to