Hi @gb24, it seems there is some misunderstanding around JsonMapper, php.ini
and the? opcache.save_comments
config. The following info from the team should clarify:
This is what the dependency looks like:
WooCommerce Square > Square SDK > JsonMapper > php.ini > opcache.save_comments
“But the JsonMapper issue was fixed? Why is it happening again?”
Previously when opcache.save_comments
was disabled, there was a fatal error that was thrown by JsonMapper, which was visible upon the activation of the Woo Square plugin.
This fatal error was later fixed and handled within JsonMapper, so that hosting providers that have opcache.save_comments
disabled or if the access to php.ini
was blocked, the fatal error could be gracefully handled.
In Summary:
- The Square SDK is built using JsonMapper.
- JsonMapper still strictly relies on the access to the
php.ini
file.
- JsonMapper still strictly relies on the value of the
opcache.save_comments
configuration.
Conclusion :
Woo Square will not work if:
opcache.save_comments
is disabled by hosting providers
- Hosting providers prevent from accessing the
php.ini
file.
JsonMapper is a dependency of the Square SDK which the Woo Square plugin uses. Even if there were an alternative, we doubt if we could do anything about it from Woo Square.
I hope this helps clarify thing. Please let us know if you need further assistance.