I have the utmost annoyung and weird issue I am us...
# community-help
s
I have the utmost annoyung and weird issue I am using PHP TS Client in a WP Plugin. It works like a charm. That, as long as I use it on "actions" like post saving, etc Now, the exact same config and code is used in a CRON action (which basically is a scheduled action, nothing special there) Again, everything works just fine, TS Client is loaded, etc... but it tries to call
https://:443/collections/my_collection/documents/the_ID?
As we can see the host is missing yet, the exact same config is used. I even tried to hardcode the host in the config - to see if maybe my way of retrieving the values would be faulty - and it still tries to call the bad URL The "my_collection" part is properly added to the url it builds. But the host not. This makes no sense to me and I am fairly sure this has nothing to do with the PHP code, since it works literally just fine in one case, but not the other. yet, I must miss something
f
Can this be replicated using the client itself? We have to be sure it's something on the PHP client and not on any sort of plugin / cron scheduler instead
s
I’ll put up a minimal thing this weekend to see if that’s somehow due to client or not. I’ve a feeling it’s due to dependency and scoper. The composer of ts (and all its dependencies) conflicts with a certain famous WP plugin and so I had to scope everything and maybe that’s my mess there showing The very client works fine scoped or not on a „normal“ webflow. Just with this crons callback not.