Okay
  Public Ticket #3574141
Error going back to agent dashboard
Open

Comments

  •  16
    Darren Robinson started the conversation

    Hi Stefan,

    Agents are getting an error message "opps that page cant be found" when going back to the agent dashboard after placing an order as a customer. We have no cache plugins on the website.


    Thanks

    Darren 

  •   WebWizards replied privately
  •  16
    Darren Robinson replied

    Hi Stefan,

    Sorry for the delay i have been away for a few days. I have updated to the version you attached to see if this solves the problem.

    It seemed to be happening everytime an order was placed by an agent and then switching back to agent dashboard from the order confirmation page. Also it has happened a few times when on the agent dashboard and they click to go to the customers tab and it gave them same 404 ops that page cant be loaded error.


    Thanks
    Darren

  •  2,405
    WebWizards replied

    Thank you for the details,

    I think it must be some kind of problem with how permalinks are set, although it seems very difficult to understand / reproduce. I tried placing an order and switching back to the agent dashboard as you described but I cannot see the issue locally: https://www.loom.com/share/b0890c8ba69940939cbc71fce17b5d77?sid=4a7da566-4401-44e3-ae2c-e82cf0f1d0ca


    When that happens, if the page is simply refreshed, does it resolve the issue?

    I am thinking perhaps we could resolve it through a workaround like this: add code to the plugin to make it reload the page if a 404 happens that contains /agent-dashboard/ in the URL.

  •  16
    Darren Robinson replied

    Hi Stefan,

    This error is still happening when going back to agent dashboard after placing an order.


    Darren


  •  2,405
    WebWizards replied

    Hi again,

    I am not able to reproduce this in local tests.

    It would help if you can share a backend site or staging site access so we can troubleshoot it directly.

     

    Additionally, can you clarify, when you see that 404 page, does reloading / refreshing the page solve it, or is it still the same 404?

  •   Darren Robinson replied privately
  •  16
    Darren Robinson replied

    Hi Stefan, 


    Refreshing the page does take you back to the agent dashboard on the customers tab after the error.


    Thanks

    Darren

  •  2,405
    WebWizards replied

    Hello Darren,

    I tried writing a code snippet to auto-detect 404s not found errors, and prevent them by reloading the URL instead.

    On your staging site I added it here:

    https://huggablesltd.co.uk/staging/wp-admin/admin.php?page=edit-snippet&id=57

    Code for future reference: https://pastecode.io/s/5debfe13

     

    Please let me know if you see further issues after adding that,

    Kind regards,

    Stefan

  •  16
    Darren Robinson replied

    Thanks Stefan, I will add the code and see if that fixes the issue.


    Darren