Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Sorry for the inconvenience caused.
    Let me check this issue with our Team. I will get back to you as soon as possible.
    Please allow us time to investigate the issues.

    Thanks for your patience!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Sorry for the late reply.
    I have tried reproducing the issue with PHP version 8, but I can’t. We need to investigate the issue more.

    Please contact our support team here. They will check and help you to fix the issue as soon as possible.

    Thanks for your patience!

    Thread Starter hakre

    (@hakre)

    The reason is rather straight forward: Access on $_SERVER on array members that don’t exist in CLI (PHP-CLI-SAPI) to construct some URL.

    When you try to reproduce enable PHP error reporting to the highest level, that should show it.

    It requires to run the WP cron via crontab.

    To quote from my extended feedback in the other thread:

    To add a bit more information, the issue manifested when running within cron and the PHP 8.0 language level. With the PHP 7.4 language level I didn’t see this notice. As PHP 7.4 will be out of main project support this year, and the plugin should be forward compatible with PHP 8.0 / 8.1 language levels, I think it is worth to address this notice.

    A first fix I’m currently running is to have the function return void (as in the phpdoc which also looks like an error) in case HTTP_HOST is not within $_SERVER.

    I must admit I have no clue why the function is called in the cron context anyway, but this is perhaps something that rings a bell on your end.

    This type of fix prevents the notice naturally and it didn’t produce any other notices as a side-effect so far.

    • This reply was modified 2 years, 3 months ago by hakre.
    • This reply was modified 2 years, 3 months ago by hakre.
    • This reply was modified 2 years, 3 months ago by hakre.
    • This reply was modified 2 years, 3 months ago by hakre.
    Plugin Support AR Rasel

    (@arrasel403)

    Hi there,

    Thanks for your update message. Let me check with our Team.
    I will get back to you as soon as possible.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Sorry for the late reply.
    Please download the dev version plugin from here. And retry once.

    Let us know how it goes.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Hope you are doing well.
    Did you test with the shared Dev version plugin, and was your issue gets fixed or not? Let us know the update.

    We are looking forward to hearing from you.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    We haven’t heard back from you in a long time. So, I am assuming your issue has been resolved. I am closing this topic.

    Have a nice day!

    Thread Starter hakre

    (@hakre)

    Hi @arrasel403,

    sorry for not being responsive.

    First of all thanks for providing a link, unfortunately the plugin is updated via WordPress itself, so we take the released version.

    So how does this work? As you have closed here, does it mean there is already a new fix release? This was not clear with closing the topic from your end.

    (the download link didn’t work for me in any case, I could have created a patchset, but unfortunately even that is not possible as the download does not work)

    Thans so far.

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Sorry for the inconvenience caused.
    We need to investigate the issue.
    It would be better if you could please contact our support team here. They will check and help you to fix the issue.

    Thanks for your patience!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    We didn’t hear from you yet. Let us know the update and cooperate with us to fix the issue.

    Thanks!

    Thread Starter hakre

    (@hakre)

    Oh no worries, and don’t make it harder than it needs be. Just an HTTP URL that wget(1) can grab from the command-line should suffice. Just drop the link here or let me know if the support team is not capable for some reason.

    Thanks again.

    • This reply was modified 2 years, 2 months ago by hakre.
    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Thanks for your update. I will check once with our team.
    In the meantime, you can check our another plugin named BetterLinks. This is also a redirection plugin like Simple 301 Redirects.

    On the BetterLinks plugin, you will get all the features like Simple 301 Redirects and more features. You can check BetterLinks-related docs from here. Let us know how it goes.

    Thanks for your patience!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Hope you are doing well.
    Is the above-shared information helps you or not? Let us know the update.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Hope you are doing well.
    We have released a newer version of the Simple 301 plugin today. Please update to the latest version and then recheck. Let us know how it goes.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @hakre,

    Did you test with the latest version Simple 301 plugin? And is your issue gets fixed? Let us know the update.

    Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PHP notice when running wp-cron’ is closed to new replies.