lat9 / gpsf

An update to the previous Numinix version, now supporting Zen Carts 1.5.6 and above (including 1.5.8a) as well as PHP versions 5.6 through 8.2.
GNU General Public License v2.0
2 stars 2 forks source link

Cron wget saves output text output file in server root #44

Open torvista opened 3 months ago

torvista commented 3 months ago

Using the suggested cron command wget 'https://domain/gpsf_main_controller.php?key=&language=en'

I get the email confirmation

--2024-07-24 00:07:01-- https://domain/gpsf_main_controller.php?key=&language=en Resolving domain (domain)... 170.249.205.210 Connecting to domain (domain)|170.249.205.210|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘gpsf_main_controller.php?key=&language=en.4’

 0K .......... .......... ....                              347M=0s

2024-07-24 00:07:25 (347 MB/s) - ‘gpsf_main_controller.php?key=&language=en.4’ saved [25421]

The feed file is correctly created.

I've just found that the text output (that you normally see when running this in the admin), is being saved to the server root. image

with an incremental number suffix.

drbyte commented 3 months ago

Do you mean "server root"? or "website root"? (ZC website root would be same place as your ipn_main_handler.php etc)

torvista commented 3 months ago

server root: /home/mysection/HERE

Not here /home/mysection/public_html/website root

lat9 commented 3 months ago

Standard operation; I've seen this on sites I manage that use GPSF.