Category Archives: Website developer

Web developers webmaster Website developer Wordpress

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

Published by:

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

The first I have check on php.ini if SSL is activated:

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1f 6 Jan 2014
OpenSSL Header Version OpenSSL 1.0.1f 6 Jan 2014

I configured the htaccess following the recommendations, Force your site to load securely with an .htaccess file
1- Checked the SSL is active on php configuration, I have tried the option 1
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result, check again for ssl but unfortunately is not working at all.
a) Check using curl:
(7) Failed to connect to www.ukgoodbye.co.uk port 443: Connection refused.

2- Tried the option 2:
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE]

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result: Is still not working. It looks like the port 443 is not opened at server level. Using the SSL checker with result:


Server Type: Apache
 	
No SSL certificates were found on www.hatley.info. Make sure that the name resolves to the correct server and that the SSL port (default is 443) is open on your server's firewall.

Last option contact the hosting service to open the port 443, and  “et voila” now everything is working:

 

These results were cached from June 6, 2019, 5:38 am PST to conserve server resources.
If you are diagnosing a certificate installation problem, you can get uncached results by clicking here.

www.ukgoodbye.co.uk resolves to 77.72.0.126

Server Type: LiteSpeed

The certificate should be trusted by all major web browsers (all the correct intermediate certificates are installed).

The certificate was issued by Let’s Encrypt.
The certificate will expire in 85 days.

The hostname (www.ukgoodbye.co.uk) is correctly listed in the certificate.

Common name: ukgoodbye.co.uk
SANs: cpanel.ukgoodbye.co.uk, mail.ukgoodbye.co.uk, ukgoodbye.co.uk, webdisk.ukgoodbye.co.uk, webmail.ukgoodbye.co.uk, www.ukgoodbye.co.uk
Valid from June 5, 2019 to September 3, 2019
Serial Number: 03c813484b9936945ea50dc0b7203eba0975
Signature Algorithm: sha256WithRSAEncryption
Issuer: Let’s Encrypt Authority X3
Common name: Let’s Encrypt Authority X3
Organization: Let’s Encrypt
Location: US
Valid from March 17, 2016 to March 17, 2021
Serial Number: 0a0141420000015385736a0b85eca708
Signature Algorithm: sha256WithRSAEncryption
Issuer: DST Root CA X3

Web developers Website developer Wordpress

Creating an Error 404 Page and example of 404 WP template

Published by:

Creating an Error 404 Page and example of 404 WP template

If your WordPress Theme does not include a template file named 404.php, you can create your own.

Here is an example of 404.php template page.

Download here an example, 404 page

2- Copy or upload this file to your server(Active theme)
a) Copy the file 404.php to /wp-content/themes/youractivetheme/404.php
Then, as described in the previous section, edit the error message to present your desired error message.
Need more information;

Web developers Website developer Wordpress

Remove , This is where you can add new products to your store, from WP woocommerce

Published by:

Remove , This is where you can add new products to your store, from WP woocommerce

Option 1 Using CSS


.search_results  .prodcut-description {

display:none !important;

}

 

Option 2

woocommerce .section-title-wrapper, .woocommerce .site-header-text {
    display:none !important;
}

You just need to find out where is the element, and the display: none !important, just in case!

Option 3 Edit the class-wc-post-types.php
Find out the file class-wc-post-types.php and remove “This is where you can add new products to your store.”
If you using a pluggin, wp-content/plugin/woocommerce/inlcudes/class-wc-post-types.php on the line 328(My version of the plugin)

replace this :


register_post_type( 'product',
			apply_filters( 'woocommerce_register_post_type_product',
				array(
					'labels'              => array(
							'name'                  => __( 'Products', 'woocommerce' ),
							'singular_name'         => __( 'Product', 'woocommerce' ),
							'all_items'             => __( 'All Products', 'woocommerce' ),
							'menu_name'             => _x( 'Products', 'Admin menu name', 'woocommerce' ),
							'add_new'               => __( 'Add New', 'woocommerce' ),
							'add_new_item'          => __( 'Add new product', 'woocommerce' ),
							'edit'                  => __( 'Edit', 'woocommerce' ),
							'edit_item'             => __( 'Edit product', 'woocommerce' ),
							'new_item'              => __( 'New product', 'woocommerce' ),
							'view_item'             => __( 'View product', 'woocommerce' ),
							'view_items'            => __( 'View products', 'woocommerce' ),
							'search_items'          => __( 'Search products', 'woocommerce' ),
							'not_found'             => __( 'No products found', 'woocommerce' ),
							'not_found_in_trash'    => __( 'No products found in trash', 'woocommerce' ),
							'parent'                => __( 'Parent product', 'woocommerce' ),
							'featured_image'        => __( 'Product image', 'woocommerce' ),
							'set_featured_image'    => __( 'Set product image', 'woocommerce' ),
							'remove_featured_image' => __( 'Remove product image', 'woocommerce' ),
							'use_featured_image'    => __( 'Use as product image', 'woocommerce' ),
							'insert_into_item'      => __( 'Insert into product', 'woocommerce' ),
							'uploaded_to_this_item' => __( 'Uploaded to this product', 'woocommerce' ),
							'filter_items_list'     => __( 'Filter products', 'woocommerce' ),
							'items_list_navigation' => __( 'Products navigation', 'woocommerce' ),
							'items_list'            => __( 'Products list', 'woocommerce' ),
						),
					'description'         => __( 'This is where you can add new products to your store.', 'woocommerce' ),
					'public'              => true,
					'show_ui'             => true,
					'capability_type'     => 'product',
					'map_meta_cap'        => true,
					'publicly_queryable'  => true,
					'exclude_from_search' => false,
					'hierarchical'        => false, // Hierarchical causes memory issues - WP loads all records!
					'rewrite'             => $permalinks['product_rewrite_slug'] ? array( 'slug' => $permalinks['product_rewrite_slug'], 'with_front' => false, 'feeds' => true ) : false,
					'query_var'           => true,
					'supports'            => $supports,
					'has_archive'         => $has_archive,
					'show_in_nav_menus'   => true,
					'show_in_rest'        => true,
				)
			)
		);

by this: remplace this 'This is where you can add new products to your store.' by ' '


register_post_type( 'product',
			apply_filters( 'woocommerce_register_post_type_product',
				array(
					'labels'              => array(
							'name'                  => __( 'Products', 'woocommerce' ),
							'singular_name'         => __( 'Product', 'woocommerce' ),
							'all_items'             => __( 'All Products', 'woocommerce' ),
							'menu_name'             => _x( 'Products', 'Admin menu name', 'woocommerce' ),
							'add_new'               => __( 'Add New', 'woocommerce' ),
							'add_new_item'          => __( 'Add new product', 'woocommerce' ),
							'edit'                  => __( 'Edit', 'woocommerce' ),
							'edit_item'             => __( 'Edit product', 'woocommerce' ),
							'new_item'              => __( 'New product', 'woocommerce' ),
							'view_item'             => __( 'View product', 'woocommerce' ),
							'view_items'            => __( 'View products', 'woocommerce' ),
							'search_items'          => __( 'Search products', 'woocommerce' ),
							'not_found'             => __( 'No products found', 'woocommerce' ),
							'not_found_in_trash'    => __( 'No products found in trash', 'woocommerce' ),
							'parent'                => __( 'Parent product', 'woocommerce' ),
							'featured_image'        => __( 'Product image', 'woocommerce' ),
							'set_featured_image'    => __( 'Set product image', 'woocommerce' ),
							'remove_featured_image' => __( 'Remove product image', 'woocommerce' ),
							'use_featured_image'    => __( 'Use as product image', 'woocommerce' ),
							'insert_into_item'      => __( 'Insert into product', 'woocommerce' ),
							'uploaded_to_this_item' => __( 'Uploaded to this product', 'woocommerce' ),
							'filter_items_list'     => __( 'Filter products', 'woocommerce' ),
							'items_list_navigation' => __( 'Products navigation', 'woocommerce' ),
							'items_list'            => __( 'Products list', 'woocommerce' ),
						),
					'description'         => __( '', 'woocommerce' ),
					'public'              => true,
					'show_ui'             => true,
					'capability_type'     => 'product',
					'map_meta_cap'        => true,
					'publicly_queryable'  => true,
					'exclude_from_search' => false,
					'hierarchical'        => false, // Hierarchical causes memory issues - WP loads all records!
					'rewrite'             => $permalinks['product_rewrite_slug'] ? array( 'slug' => $permalinks['product_rewrite_slug'], 'with_front' => false, 'feeds' => true ) : false,
					'query_var'           => true,
					'supports'            => $supports,
					'has_archive'         => $has_archive,
					'show_in_nav_menus'   => true,
					'show_in_rest'        => true,
				)
			)
		);

Developers DNS tools online Web developers webmasters tools Website developer

Dns Propagation Check

Published by:

Dns Propagation Check

Dns Propagation Check will check the propagation of DNS records across your servers for the selected DNS record type. You can use this tool to see if your records have propagated across all your servers, as well as identify possible DNS issues.
DNS tools

Command Explanation
a: DNS A record IP address for host name
mx: DNS MX records for domain
cname: DNS canonical host name to IP address
ptr: DNS PTR record for host name
spf: Check SPF records on a domain
txt: Check TXT records on a domain
soa: Get Start of Authority record for a domain

Web developers webmaster Website developer Wordpress

WP All Import – Slow Imports – due images

Published by:

WP All Import – Slow Imports – due images

All Import can make your XML or CSV import task easy. To import large amount of data to woocommerce that include importing the images could be very slow.
Solution:
1- Upload the images by file manager from your hosting control panel or by ftp client to All import directory: wp-content/uploads/wpallimport/files/

And the All import, https://your-website/wp-admin/admin.php?page=pmxi-admin-import
You just need at image section,

Select the option to import image:
Use images currently uploaded in wp-content/uploads/wpallimport/
Find out more on the next image:
WooCommerce WP all Import

Developers e-commerce webmasters tools Webs apps Website developer Wordpress

Test card numbers

Published by:

Genuine card information cannot be used in test mode. Instead, use any of the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment.

Number Brand
4242424242424242 Visa
4000056655665556 Visa (debit)
5555555555554444 Mastercard
2223003122003222 Mastercard (2-series)
5200828282828210 Mastercard (debit)
5105105105105100 Mastercard (prepaid)
378282246310005 American Express
371449635398431 American Express
6011111111111117 Discover
6011000990139424 Discover
30569309025904 Diners Club
38520000023237 Diners Club
3566002020360505 JCB
6200000000000005 UnionPay
Token Brand
tok_visa Visa
tok_visa_debit Visa (debit)
tok_mastercard Mastercard
tok_mastercard_debit Mastercard (debit)
tok_mastercard_prepaid Mastercard (prepaid)
tok_amex American Express
tok_discover Discover
tok_diners Diners Club
tok_jcb JCB
tok_unionpay UnionPay
Payment Method Brand
pm_card_visa Visa
pm_card_visa_debit Visa (debit)
pm_card_mastercard Mastercard
pm_card_mastercard_debit Mastercard (debit)
pm_card_mastercard_prepaid Mastercard (prepaid)
pm_card_amex American Express
pm_card_discover Discover
pm_card_diners Diners Club
pm_card_jcb JCB
pm_card_unionpay UnionPay

Each test card’s billing country is set to U.S. If you need to create test card payments using cards for other billing countries, use our international test cards.

We recommend using our test IDs when testing your integration and creating charges, instead of passing card information directly to the API. Using these test IDs in place of card numbers helps ensure your production integration is developed in a PCI compliant manner and is not going to handle card information directly. Each test ID is human-readable and represents card information that has been tokenized with our client-side libraries (e.g., Stripe Elements, Stripe.js).

Web developers webmaster Website developer Wordpress

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable

Published by:

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable??

I believe after that error, the WordPress stop

[Wed Mar 20 17:40:16 2019] [error] [client 80.47.1.117:0] End of script output before headers: admin-ajax.php

 

Heat map SEO Website developer Wordpress

What is heatmap?

Published by:

What is heatmap?

A heatmap is a graphical representation of data that uses a system of color-coding to represent different values. Heatmap provides realtime analytics to help chief editors and marketeers understand in seconds which are their best performing contents.

Download Heat map for WordPress,

Website developer Wordpress

All 404 redirect by .htaccess and PHP

Published by:

All 404 redirect by .htaccess and PHP

1- Edit or create the file ..htaccess:

ErrorDocument 404 /404.php

 

2- Create the file php 404.php

<?php
//on .htacessErrorDocument 404 /404.php
header(‘location:https://www.ukgoodbye.co.uk/shop’);
?>

Example:

https://ukgoodbye.co.uk/shop/thisfileNOtExisit