@razorfrog I’m the author of many plugins for WordPress, including one that has been available on the WordPress repository for a decade. The Dropbox link was just a quick way to make a patched YOTPO plugin available with a Github repository included. I did that as a courtesy, but if that is seen as “sketchy” I would rather take it down.
@kjy112 one of our users (@amistry) reported that the latest version of the YOTPO plugin introduces a non-namespaced function, called get_arr_value()
, that is also declared in one of our plugins, namely the Aelia Foundation Classes. While the AFC performs a check to avoid declaring the same function twice, the YOTPO plugin does not. Due to that, if the AFC runs first, the YOTPO plugin tries to re-declare the same function and triggers the fatal error described by @amistry. This is something I already explained in my original reply.
A simple workaround is to perform an if_exists()
check before declaring the function. The two functions are equivalent, therefore YOTPO can use the one loaded by the AFC, at least until we’re done removing it. The patched version I linked does just that.
The intention was to provide a quick fix, which would allow YOTPO to work normally, while the developers work to properly namespace the conflicting function.
-
This reply was modified 9 months, 3 weeks ago by Diego. Reason: Formatting