Title: Syntax error in cart.class.php
Last modified: June 9, 2023

---

# Syntax error in cart.class.php

 *  Resolved [imosek8](https://wordpress.org/support/users/imosek8/)
 * (@imosek8)
 * [3 years ago](https://wordpress.org/support/topic/syntax-error-i-cart-class-php/)
 * Hi
 * In the recent version of this plugin (2.6.0) I encounter some problem. My site
   has critical problem:
   > **Parse error**: syntax error, unexpected ‘$item’ (T_VARIABLE),
   expecting ‘(‘ in **/home/srv31241/domains/smakosz.nl/public_html/wp-content/plugins/
   ti-woocommerce-wishlist/public/cart.class.php** on line **548**
 * WordPress version: 6.2.2
 * Do you know how can I solve this issue?
    -  This topic was modified 3 years ago by [imosek8](https://wordpress.org/support/users/imosek8/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntax-error-i-cart-class-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years ago](https://wordpress.org/support/topic/syntax-error-i-cart-class-php/#post-16806927)
 * Hi [@imosek8](https://wordpress.org/support/users/imosek8/) ,
 * We are sorry to hear that you’re experiencing issues after the recent update.
   The error you’re seeing could be due to your PHP version. Can you please confirm
   the PHP version your setup is running? According to WordPress’s official requirements,
   your server should be running PHP 7.4 or greater. You can check these requirements
   [here](https://wordpress.org/about/requirements/). It might be that you need 
   to upgrade your PHP version to resolve this issue.
 *  Thread Starter [imosek8](https://wordpress.org/support/users/imosek8/)
 * (@imosek8)
 * [3 years ago](https://wordpress.org/support/topic/syntax-error-i-cart-class-php/#post-16807404)
 * Thanks, it solved the issue.

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

The topic ‘Syntax error in cart.class.php’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [imosek8](https://wordpress.org/support/users/imosek8/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/syntax-error-i-cart-class-php/#post-16807404)
 * Status: resolved