Title: JsonMapper.php Warning
Last modified: July 1, 2023

---

# JsonMapper.php Warning

 *  Resolved [musicinme](https://wordpress.org/support/users/musicinme/)
 * (@musicinme)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/)
 * Hi,
 *  I know it’s only warning, but very annoying to see it almost on every admin 
   page. It’s happens only when connected to Square.
 * **Warning**: parse_ini_file(): open_basedir restriction in effect. File(/home/***/
   musicinme/.settings/php.ini) is not within the allowed path(s): (/home/***/***/***/:/
   home/***/***/.tmp/:/demonek/www/public/bledy.demonek.com/:/usr/local/lsws/share/
   autoindex:/usr/local/php/:/dev/urandom:/opt/alt/php81/usr/share/pear/:/opt/alt/
   php81/usr/share/php:/opt/alt/php81/) in **/home/\*\*\*/\*\*\*/\*\*\*/public_html/
   wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.
   php** on line **119**
 * **Warning**: parse_ini_file(/home/klient.dhosting.pl/musicinme/.settings/php.
   ini): Failed to open stream: Operation not permitted in **/home/\*\*\*/\*\*\*/\*\*\*/
   public_html/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/
   src/JsonMapper.php** on line **119**

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

 *  [drumbrent](https://wordpress.org/support/users/drumbrent/)
 * (@drumbrent)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/#post-16924452)
 * I’m seeing this warning in my install as well. Why is it showing a PHP warning
   even with WP DEBUG disabled??? Annoying!
    -  This reply was modified 2 years, 10 months ago by [drumbrent](https://wordpress.org/support/users/drumbrent/).
 *  Plugin Support [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/#post-16937465)
 * Hi [@musicinme](https://wordpress.org/support/users/musicinme/),
   Thanks for sharing
   the warning.
 * The warning `Failed to open stream: Operation not permitted` suggests there may
   be an issue with the permission levels on your site’s root-level folder or with
   the specific `php.ini` file. 
   As a first step, could you please reach out to 
   your host to check further on this for you? Let us know if they confirm that 
   permission levels are okay, we’d like to explore other possibilities that may
   cause the issue.[@drumbrent](https://wordpress.org/support/users/drumbrent/),
   thanks for your report as well, but kindly let’s handle the two requests separately.
   Could you open a new thread here for your request – [https://wordpress.org/support/plugin/woocommerce-square/#new-topic-0](https://wordpress.org/support/plugin/woocommerce-square/#new-topic-0)?
 *  Thread Starter [musicinme](https://wordpress.org/support/users/musicinme/)
 * (@musicinme)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/#post-16994726)
 * Fixed by upgrading PHP version.
 *  [Tamrat A. (woo-hc)](https://wordpress.org/support/users/bisratlearn/)
 * (@bisratlearn)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/#post-16995015)
 * Hi [@musicinme](https://wordpress.org/support/users/musicinme/)
 * > Fixed by upgrading PHP version.
 * I’m happy to see that you managed to fix the issue by upgrading your PHP version!
   It’s a common fix for warnings like the one you encountered, as older PHP versions
   can sometimes clash with certain plugins or features.
 * Just a quick tip for the future: always keep your PHP version updated. This is
   not only for compatibility but also for security and performance.
 * I’ll go ahead and mark this thread as resolved. However, if you ever have more
   questions or issues in the future, don’t hesitate to kick off a [**new topic**](https://wordpress.org/support/theme/storefront/#new-topic-0).
 * Hope you have a fantastic day!

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

The topic ‘JsonMapper.php Warning’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 4 participants
 * Last reply from: [Tamrat A. (woo-hc)](https://wordpress.org/support/users/bisratlearn/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/jsonmapper-php-warning/#post-16995015)
 * Status: resolved