Title: Code errors after upgrading to PHP 7.2
Last modified: September 29, 2018

---

# Code errors after upgrading to PHP 7.2

 *  [agsrescue](https://wordpress.org/support/users/agsrescue/)
 * (@agsrescue)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/)
 * Code errors after upgrading to PHP 7.2 – I’m not really sure what to make of 
   this but they all seem to have to do with this plugin. Please help because I 
   love this plugin so much! Thanks!
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/search/class-
   acadp-widget-search.php on line 187
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/locations/class-
   acadp-widget-locations.php on line 316
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/categories/
   class-acadp-widget-categories.php on line 321
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/listings/class-
   acadp-widget-listings.php on line 375
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/listing-address/
   class-acadp-widget-listing-address.php on line 158
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/listing-contact/
   class-acadp-widget-listing-contact.php on line 164
 * Deprecated: Function create_function() is deprecated in /home/agsgerbi/public_html/
   wp-content/plugins/advanced-classifieds-and-directory-pro/widgets/listing-video/
   class-acadp-widget-listing-video.php on line 154
 * Notice: is_author was called incorrectly. Conditional query tags do not work 
   before the query is run. Before then, they always return false. Please see Debugging
   in WordPress for more information. (This message was added in version 3.1.0.)
   in /home/agsgerbi/public_html/wp-includes/functions.php on line 4161
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/agsgerbi/public_html/wp-content/plugins/advanced-classifieds-and-directory-
   pro/widgets/search/class-acadp-widget-search.php:187) in /home/agsgerbi/public_html/
   wp-content/plugins/participants-database/vendor/wp-session-manager/class-wp-session.
   php on line 142
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/agsgerbi/public_html/wp-content/plugins/advanced-classifieds-and-directory-
   pro/widgets/search/class-acadp-widget-search.php:187) in /home/agsgerbi/public_html/
   wp-content/plugins/visitors-online/visitors-online.php on line 322
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/agsgerbi/public_html/wp-content/plugins/advanced-classifieds-and-directory-
   pro/widgets/search/class-acadp-widget-search.php:187) in /home/agsgerbi/public_html/
   wp-admin/includes/misc.php on line 1126
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/agsgerbi/public_html/wp-content/plugins/advanced-classifieds-and-directory-
   pro/widgets/search/class-acadp-widget-search.php:187) in /home/agsgerbi/public_html/
   wp-includes/pluggable.php on line 1219

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [michael walker](https://wordpress.org/support/users/michael-walker/)
 * (@michael-walker)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/#post-10739540)
 * Do you have the option of specifying PHP 7.1? That seems to be a lot less likely
   to throw these errors as less stuff is deprecated in that version than in 7.2
 *  Plugin Author [pluginsware](https://wordpress.org/support/users/pluginsware/)
 * (@pluginsware)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/#post-10744841)
 * Hi,
 * We are working on PHP 7.2 compatibility and these issues will be fixed soon.
 * Thanks
 *  anonymized-14239226
 * (@anonymized-14239226)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/#post-10865716)
 * Any update on the PHP 7.2 compatibility?
 * Thank you
 *  [perltechs](https://wordpress.org/support/users/perltechs/)
 * (@perltechs)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/#post-11050141)
 * This is the #1 problem I’ve had with php since it was produced so many years 
   ago. Function Bloat=Deprecated functions! It’s never a problem with the programmers
   that code in php, but php.org itself.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code errors after upgrading to PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/advanced-classifieds-and-directory-pro/assets/icon-128x128.
   png?rev=1506527)
 * [Advanced Classifieds & Directory Pro](https://wordpress.org/plugins/advanced-classifieds-and-directory-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-classifieds-and-directory-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [perltechs](https://wordpress.org/support/users/perltechs/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/code-errors-after-upgrading-to-php-7-2/#post-11050141)
 * Status: not resolved