WPIntell

Source evidence

PHP7 deprecated function call

demon image annotation · support · 2018-04-30T04:24:00+00:00

mixedsentiment
highseverity
0.88relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
rekcah resolved
Hello, I really like this plugin, but the hosting service that host my site upgrade to PHP7, I get the following: Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /var/www/wp-content/plugins/demon-image-annotation/imageannotation.php:336 Stack trace: #0 /var/www/blog/wp-includes/class-wp-hook.php(286): dia_admin_notice(”) #1 /var/www/blog/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(false, Array) #2 /var/www/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/blog/wp-admin/admin-header.php(255): do_action(‘admin_notices’) #4 /var/www/blog/wp-admin/admin.php(216): require_once(‘/var/www/wp-c…’) #5 {main} thrown in /var/www/wp-content/plugins/demon-image-annotation/imageannotation.php on line 336 I notified the hosting service of the issue, they stated that the plugin has deprecated code and requested that I notify the plugin developer to update the code for PHP7. Is this an easy fix? Thank you. Hi, Can you try replace the code mysql_real_escape_string to mysqli_real_escape_string in imageannotation.php This reply was modified 8 years, 1 month ago by demonisblack . demonisblack, You are awesome!!! Replacing mysql_real_escape_string with mysqli_real_escape_string in imageannotation.php resolved the issue. Thank you!!!

Comments

2 shown
demonisblack 2018-04-30T09:32:00+00:00

Hi, Can you try replace the code mysql_real_escape_string to mysqli_real_escape_string in imageannotation.php This reply was modified 8 years, 1 month ago by demonisblack .

rekcah 2018-05-04T08:02:00+00:00

demonisblack, You are awesome!!! Replacing mysql_real_escape_string with mysqli_real_escape_string in imageannotation.php resolved the issue. Thank you!!!