Tooltipy: Difference between revisions

Created page with "...ran into an issue with Tooltipy where it was causing an error. === The Error === <syntaxhighlight lang="text"> preg_match() unknown modifier </syntaxhighlight> === The So..."
 
mNo edit summary
 
Line 1: Line 1:
...ran into an issue with Tooltipy where it was causing an error.
...ran into an issue with Tooltipy where it was causing an error.


=== The Error ===
===The Error===
<syntaxhighlight lang="text">
The error was due to the Title of a Tooltip that contained a Forward Slash ( / ).  It caused the below error in several areas of the Administrator site.<syntaxhighlight lang="text">
preg_match() unknown modifier
preg_match() unknown modifier
</syntaxhighlight>
</syntaxhighlight>


=== The Solution ===
===The Solution===
Add the below code (comments can be omitted) to the /WhatEverPathToWordPressSite/wp-content/plugins/bluet-keywords-tooltip-generator/functions.php immediately before the line with: if(preg_match($term,$content_to_check)){<syntaxhighlight lang="text">
Add the below code (comments can be omitted) to the /WhatEverPathToWordPressSite/wp-content/plugins/bluet-keywords-tooltip-generator/functions.php immediately before the line with: if(preg_match($term,$content_to_check)){<syntaxhighlight lang="text">
// By default Tooltipy cannot handle forward slashes in the name of the title
// By default Tooltipy cannot handle forward slashes in the name of the title