Fatal Error with SSL
Updated on December 15, 2016 in Tonjoo Tom
2 on December 12, 2016

I’m getting a Fatal Error when using https:

Fatal error: Call to undefined function Tonjoo\TOM\tom_https_link() in /httpdocs/wp-content/plugins/tonjoo-theme-option-maker/src/TOMShortcode.php on line 65

Could you please help?

Thank you!

(i also posted on the wp plugin support forum https://wordpress.org/support/topic/fatal-error-with-ssl-2/)

  • Liked by
By using the forum you are agree with tonjoo studio license agreement
0 on December 12, 2016

In case anyone was wondering:<br />
<br />
– Edit file wp-content/plugins/tonjoo-theme-option-maker/src/TOMShortcode.php, at line 65
– Replace with:

if(is_ssl()) {
if(filter_var($tom_data, FILTER_VALIDATE_URL)) {
// Parse to get domain from url
$parse_base = parse_url(get_site_url());
$parse_url = parse_url($tom_data);

if ($parse_url[‘host’] == $parse_base[‘host’]) {
$tom_data = str_replace(‘http://’, ‘https://’, $tom_data );
}
}
return $tom_data;
}


– Remove the last function in the file,
function tom_https_link($url)
completely

Problem solved.
If anyone from the dev team is reading this.. would be nice if you could patch the plugin when you can! :)

  • Liked by
Cancel
By using the forum you are agree with tonjoo studio license agreement
Message :
Moderator 0 on December 15, 2016

Hi!

Thank you for the work around! Really appreciated! :D

Thanks

  • Liked by
Cancel
By using the forum you are agree with tonjoo studio license agreement
Message :
Loading more replies
You are not logged in

Please login here or simply sign up here .