Code Snippet and missing priority check
-
My site went broken, when I changed to use as condition
if(tap_is_mobile(){…}The function tap_is_mobile was defined in another Code Snippet. Both had the same priority. The site crashed.
When I set the priority of the snippet, which calls the snipped, bigger than in the another snippet, site worked again.
CodeSnippet checks that the PHP is valid and it checks if the function exists, but it doesn’t check if the function is available, when the page is created. If pririoty is wrong, site might crash. There should be also priority check.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Code Snippet and missing priority check’ is closed to new replies.