• Resolved loyukfai

    (@loyukfai)


    Just saw a bunch of permission-related errors throwing up this morning.

    The concerned files are 664

    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-local-ORD.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-local-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-local-PAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-local-LCP.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-SURPAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-AIRPAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-SPT.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post//data//postageRate-intl-EXP.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61

    Cheers.

    • This topic was modified 2 years, 8 months ago by loyukfai.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WebStoreGuru

    (@webstoreguru)

    The file path is incorrect in above.
    Not sure how that got thru in the earlier release.
    Have fixed and released update 2.2

    Thanks for spotting this. Do confirm back if release 2.2 fixes this.

    Cheers. S

    Thread Starter loyukfai

    (@loyukfai)

    Seems not, today’s cron job…

    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-local-ORD.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-local-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-local-PAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-local-LCP.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-REG.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-SURPAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-AIRPAR.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-SPT.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61
    Warning:
    file_put_contents(/home/public/wp-content/plugins/shipping-rates-for-hk-post/data/postageRate-intl-EXP.json):
    failed to open stream: Permission denied in
    /home/public/wp-content/plugins/shipping-rates-for-hk-post/includes/class-base.php
    on line 61

    Do I need to re-install the plugin?

    Cheers.

    Thread Starter loyukfai

    (@loyukfai)

    Still seeing the same error. Am I doing something wrong?

    Cheers.

    Plugin Author WebStoreGuru

    (@webstoreguru)

    sorry. been tied up on a project.
    let me check this on weekend and get back to you.

    Thread Starter loyukfai

    (@loyukfai)

    Sure, no problem! I don’t think HK post rates changes are big these days?

    Cheers.

    Plugin Author WebStoreGuru

    (@webstoreguru)

    Hi @loyukfai

    Could you share the site info ( Go to WP Admin > Tools > Site Health :: Info [ Copy site info to clipboard ] and paste it here. No private information or access credentials are shared this way. ) for the site where you are facing this issue please.

    Thanks.

    Thread Starter loyukfai

    (@loyukfai)

    Thanks! You got me thinking about something else…. Maybe it’s the cron job setup. Let me try adjusting something and see if it helps.

    Cheers.

    • This reply was modified 2 years, 7 months ago by loyukfai.
    Thread Starter loyukfai

    (@loyukfai)

    Yeah! Found the culprit, it’s the file permission… the cron job is run under another account from that which the plugin was installed.

    Cheers.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Permission Errors in Cron Job’ is closed to new replies.