• Resolved viotto

    (@viotto)


    Hello,

    the plugin has an issue where when navigating to a ticket page on the frontend (for example, going to Client Area -> Support -> Clicking on Ticket) results in a 404 Page not found error, instead of showing ticket.

    Example link structure to where error happens:
    https://yoursite.net/ticket/67856/#reply-73755

    This makes impossible for customers to open, view or reply tickets, destroying the plugin functionality.

    Upon debugging the issue, it seems that going to WordPress Settings -> Permalinks -> Save Permalinks temporarily solves the issue.

    However, after about 1-2 days from permalink reset and for unknown circumstances, the 404 error comes back everytime, until I save permalinks again.

    I would greatly appreciate a solution to the issue or help pointing to a fix.
    I already tried deactivating all the other active plugins, and the issue persists.

    Thank you and best regards

    • This topic was modified 10 months, 2 weeks ago by viotto.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Steven

    (@shazahm1hotmailcom)

    I, too, have had this issue for many months now. I spent quite a lot of time trying to figure out the root cause. I gave up after spending too much time and ended up writing myself a code snippet that schedules WP to flush the permalinks once an hour. Hardly ideal, but effective for me. It did occur to me the other day that I could add a backtrace to write in the error log in the WP flush_rewrite_rules() function that way, I can figure out which plugins are calling it and when.

    Plugin Author Jawad Ahmed

    (@jawada)

    Hi there,

    We are sorry to hear that you are having this issue. While we investigate, could you please check if another plugin/add-on is interfaring with the permalink? Or have a conflict with another plugin.

    Regards

    Thread Starter viotto

    (@viotto)

    Thank you Steven (@shazahm1hotmailcom) and Jawad (@jawada) for your replies.

    I am doing further testing and will update this thread once I have an update regarding what is the root cause of the error.

    Ced

    (@cedriccharles)

    Hello there!

    Do you use Polylang? I have a similar issue, but admins don’t answer me… https://www.ads-software.com/support/topic/rewrite-rules-issues-with-polylang-pro/#post-17405669

    Steven

    (@shazahm1hotmailcom)

    @cedriccharles

    Are you asking me? … Sorry, no, I do not use Polylang.

    Thread Starter viotto

    (@viotto)

    @cedriccharles no, I don’t use polylang, I use Gtranslate for translations.

    It is worth noting that I paid the staff for a “priority” support request on date 18 January to help me fix this bug and, after 3 weeks, no solution was provided at all.

    I am waiting each time till 1 week for a reply: just to be replied with an useless answer which shows the dev didn’t even look at my issue, despite I paid for “priority” support.

    Well, it doesn’t seem their support is so “awesome” after all. It sucks badly instead. Since the support service I paid for was not provided, I asked for a refund and still waiting.

    • This reply was modified 9 months, 2 weeks ago by viotto.
    • This reply was modified 9 months, 2 weeks ago by viotto.
    Thread Starter viotto

    (@viotto)

    As I got no support from devs even though I submitted a paid support request, I added a cron job every hour to flush permalinks, but unfortunately, instead of solving the issue, the permalink flush generates a 404 page again, thus making the issue worse.

    @shazahm1hotmailcom would you mind to share your working script which flushes the permalinks?

    Thank you

    Steven

    (@shazahm1hotmailcom)

    @viotto

    Sure… I use the Code Snippets plugin. Install it, copy-paste the code into a new snippet, save, and activate it.

    // Schedule the event.
    add_action(
    	'wp',
    	static function () {
    		if ( ! wp_next_scheduled( 'snippetFlushRewrite' ) ) {
    			wp_schedule_event( time(), 'hourly', 'snippetFlushRewrite' );
    		}
    	}
    );
    
    // Flush permalinks every hour.
    add_action(
    	'snippetFlushRewrite',
    	static function () {
    		flush_rewrite_rules();
    		error_log( 'flush_rules()' );
    	}
    );
    

    I hope this helps!

    Thread Starter viotto

    (@viotto)

    @shazahm1hotmailcom

    Thanks a Ton, Steven!
    I will try it out and report back if it works for me.
    It may be helpful to more users encountering this bug.

    Best regards

    Steven

    (@shazahm1hotmailcom)

    No problem; happy to help!

    Plugin Author Jawad Ahmed

    (@jawada)

    Hello

    The issue has been resolved with our latest version release. Please update Awesome Support to the latest version.

    If you have any additional questions, please let us know. We’re here to help.

    Best regards.

    Thread Starter viotto

    (@viotto)

    @shazahm1hotmailcom unfortunately your method didn’t work in my case.
    Thank you so much for the help anyway.

    @jawada thank you for working on this issue.
    I will report it on ticket if error persists after the update.

    Best regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.