quickshiftin / wfpc

Magento full page cache warmer
GNU General Public License v3.0
101 stars 28 forks source link

Cronjob doesn't work because of usage of relative paths. #6

Closed RogerKeulen closed 7 years ago

RogerKeulen commented 7 years ago

[testxxx@dev006 domains]$ /home/testxxxx/domains/test.xxxx.getnoticed.nl/wfpc/wfpc -k -w http://test.xxxx.getnoticed.nl:8080/sitemap.xml PHP Warning: require(./MageCacheWarmer.php): failed to open stream: No such file or directory in /home/xxxx/domains/test.xxxxx.getnoticed.nl/wfpc/wfpc on line 17

RogerKeulen commented 7 years ago

Sollution: before "require"

chdir( __DIR__ ); // <== Change current dir to "this" dir before using relative paths.

quickshiftin commented 7 years ago

This is fixed. BTW, take a peek at the patch; you don't need to chdir.

Thanks for reporting this!

RogerKeulen commented 7 years ago

Awesome !

Thanx, for the quick change.

2017-09-13 15:21 GMT+02:00 Nathan Nobbe notifications@github.com:

Closed #6 https://github.com/quickshiftin/wfpc/issues/6.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quickshiftin/wfpc/issues/6#event-1247232302, or mute the thread https://github.com/notifications/unsubscribe-auth/ANmmDns2srT7YIdw01MduI4XYkxJLXqzks5sh9bYgaJpZM4PWEd8 .

-- Met vriendelijke groet,

Roger Keulen Programmeur

Get.Noticed Eindhovensebaan 7H 6031 NB Nederweert

T: 0495 - 625 853 E: info@getnoticed.nl

https://www.facebook.com/getnoticednl/ https://www.linkedin.com/company-beta/1484734/ https://twitter.com/GetNoticed_Nl https://www.youtube.com/user/GetNoticedNL https://www.instagram.com/getnoticed.nl/