Title: Current version giving php errors when using shortcodes
Last modified: May 29, 2020

---

# Current version giving php errors when using shortcodes

 *  [Aquaritech IT Solutions](https://wordpress.org/support/users/aquaritech/)
 * (@aquaritech)
 * [6 years ago](https://wordpress.org/support/topic/current-version-giving-php-errors-when-using-shortcodes/)
 * The LeanPress plugin is showing these three errors above the shortocode:
 * Warning: mysqli_query() expects parameter 2 to be string, array given in C:\xampp\
   htdocs\websites\ecstasycollege\wp-includes\wp-db.php on line 2024
 * Warning: preg_match() expects parameter 2 to be string, array given in C:\xampp\
   htdocs\websites\ecstasycollege\wp-includes\wp-db.php on line 1968
 * Warning: preg_match() expects parameter 2 to be string, array given in C:\xampp\
   htdocs\websites\ecstasycollege\wp-includes\wp-db.php on line 1970

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

 *  Thread Starter [Aquaritech IT Solutions](https://wordpress.org/support/users/aquaritech/)
 * (@aquaritech)
 * [6 years ago](https://wordpress.org/support/topic/current-version-giving-php-errors-when-using-shortcodes/#post-12910395)
 * LearnPress Version:3.2.7.2
 *  [jayxcamps](https://wordpress.org/support/users/jayxcamps/)
 * (@jayxcamps)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/current-version-giving-php-errors-when-using-shortcodes/#post-12962501)
 * HI there!
 * I know they didn’t respond, but did you find a solution? Im having the same issues
 *  Thread Starter [Aquaritech IT Solutions](https://wordpress.org/support/users/aquaritech/)
 * (@aquaritech)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/current-version-giving-php-errors-when-using-shortcodes/#post-12963708)
 * I switched from LearnPress to another LMS called Sensei LMS

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

The topic ‘Current version giving php errors when using shortcodes’ is closed to
new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aquaritech IT Solutions](https://wordpress.org/support/users/aquaritech/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/current-version-giving-php-errors-when-using-shortcodes/#post-12963708)
 * Status: not resolved