• I cannot add new AWBs. No error is shown.

    Upon investigation I found the following 2 errors when trying to add a new AWB:

    Warning: Attempt to read property “id” on bool app/plugins/samedaycourier-shipping/views/add-awb-form.php:81 Plugin: samedaycourier-shipping

    Warning: Attempt to read property “title” on bool app/plugins/samedaycourier-shipping/views/add-awb-form.php:156 Plugin: samedaycourier-shipping

    WP 6.2.1 – PHP 8

    Also, there is NO error shown to the user – this is amazingly bad UX. Please show errors to the user so they know what the hack is going on.

Viewing 1 replies (of 1 total)
  • Thread Starter cristianuibar

    (@cristianuibar)

    Quick update here upon further investigation. I see that the parameter “add-awb” is set in the URL as add-awb=error yet no error is visible to the user.
    Looking at the code:
        if ($_GET[“add-awb”] === “error”) {

                SamedayCourierHelperClass::showFlashNotice(‘add_awb_notice’);

            }

    Then into showFlashNotice:
    $notices = get_option($notice);

    And this add_awb_notice maybe is never set for this usecase? I see it is being set in 2 places, but it never shows up in our case and we never know what the problem is.

    • This reply was modified 1 year, 10 months ago by cristianuibar.
Viewing 1 replies (of 1 total)
  • The topic ‘Error in Add AWB Form without alerts to user’ is closed to new replies.