e-smartsolution » Smartsolution

Smartsolution

Http error, uploading SVG on WP, solution

2019-06-26 16:42:24 websitedeveloper

Http error, uploading SVG, solution

To upload SVG on backend on WordPress, you should  install a plugin to do so like SVG support by

1- Download and install the plugin

SVG Support plugin

2- Now, you should be able to upload SVG files.  If you are able to upload other types files like PNG, JPG but not SVG that could be the case your hosting provider do not allow to so like on Godady,

Access Denied – GoDaddy Website Firewall
If you are the site owner (or you manage this site), please whitelist your IP or if you think this block is an error please open a support ticket and make sure to include the block details (displayed in the box below), so we can assist you in troubleshooting the issue.
for information check on the next picture:

Access Denied Godady

 

Posted in: Web developersWebsite developerWordpressTagged in: GoDadySVGWebsite firewall Read more... 0 comments

Vimeo embed won't autoplay, what to do?

2019-06-24 16:11:52 websitedeveloper

Vimeo embed won’t autoplay, what to do?

If you are using ACF, you need to choose field type “oEmbed”

You will need to add

and your php code


$video=$row['video'] ;
      
preg_match('/src="(.+?)"/', $video, $matches);
$src = $matches[1];


// add extra params to iframe src
$params = array(
    'playsinline' => 1,
				'controls'    => 0,
				'hd'  => 1,
				'autoplay' => 1,
				'background' => 1,
				'loop' => 1,
				'byline' => 0,
				'title' => 0,
                                'muted' => 1
);

$new_src = add_query_arg($params, $src);

$video = str_replace($src, $new_src, $video);


// add extra attributes to iframe html
$attributes = 'frameborder="0"';

$video = str_replace('>', ' ' . $attributes . '>', $video);
echo $video;

So it is important to set up autoplay to 1, loop to 1

Posted in: Website developerWordpressTagged in: ACFautoplayloopvideovimeo Read more... 0 comments

WordPress, why ACF won't appear on menu my WP dashboard?

2019-06-24 12:44:32 websitedeveloper

WordPress, why ACF won’t appear on menu my WP dashboard?

There are many reasons Advanced Custom Fields, doesn’t appear in dashboard menu. The custom fields menu item can be hidden like on the next example:
Check on the wp-content/theme/your-active-theme/functions.php



....
add_filter('acf/settings/show_admin', '__return_false');
....

 

By removing this line the ACF should appear back to the dashboard.
"Custom Fields" doesn't appear in dashboard menu

 

 

 

 

You can try to  access to ACF menu, by type you browser

http://your-domain/wp-admin/edit.php?post_type=acf-field-group,

Posted in: Web developerswebmasterWebsite developerWordpressTagged in: ACF Read more... 0 comments

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

2019-06-10 08:24:25 websitedeveloper

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

Posted in: Web developerswebmasterWebsite developerWordpressTagged in: curlopensslPHPSSL Read more... 0 comments

Solution for unhandled exception, Gsm Flasher Frp Reactivation Lock Remover Pro

2019-06-09 07:18:33 websitedeveloper

Solution for unhandled exception, Gsm Flasher Frp Reactivation Lock Remover Pro

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.IOException: The I/O operation has been aborted because of either a thread exit or an application request.

at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream.EndWrite(IAsyncResult asyncResult)
at System.IO.Ports.SerialStream.Write(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialPort.Write(Byte[] buffer, Int32 offset, Int32 count)
at (frmMain , String , Int64 , Int64 , Int64 )
at SamFrp.frmMain.LOKE_ImageFlashing(String fn, Int64 BinaryType, Int64 DeviceID, Int64 Identifier)
at (frmMain )
at SamFrp.frmMain.LOKEStartFlashing()
at (frmMain , Object , EventArgs )
at SamFrp.frmMain.Button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
—————————————-
SamFrp
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Users/Windows10HP/Documents/99%20mediasector%20SAMSUNG%20FRP%20TO/SAMSUNG%20FRP%20TO/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro.exe
—————————————-
Protect
Assembly Version: 2.0.20.2
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Users/Windows10HP/Documents/99%20mediasector%20SAMSUNG%20FRP%20TO/SAMSUNG%20FRP%20TO/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro.exe
—————————————-
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
—————————————-
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
—————————————-
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
—————————————-
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
—————————————-
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
—————————————-
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
—————————————-
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
—————————————-
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
—————————————-
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
—————————————-
ICSharpCode.SharpZipLib
Assembly Version: 0.85.4.369
Win32 Version: 0.85.4.369
CodeBase: file:///C:/Users/Windows10HP/Documents/99%20mediasector%20SAMSUNG%20FRP%20TO/SAMSUNG%20FRP%20TO/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/Gsm%20Flasher%20Frp%20Reactivation%20Lock%20Remover%20Pro/ICSharpCode.SharpZipLib.DLL
—————————————-

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:



When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

Posted in: AndroidSmartphonesTagged in: samsung Read more... 0 comments