onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

P#65163 Redirection fails with errors #226

Closed jmaas-onoffice closed 2 years ago

jmaas-onoffice commented 2 years ago

Current state

I've set up https://2.wptest.onofficeweb.com/ with version 3.0-46-g9f542ba4. The detail page has no parent page.

The detail page is linked correctly, e.g. https://2.wptest.onofficeweb.com/detail/35-og119/. When I break the URL, e.g. https://2.wptest.onofficeweb.com/detail/35-og/, I get a blank page with only the following error messages:

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01cc1b0/2.wptest.onofficeweb.com/htdocs/wp-content/themes/neve/header.php:10) in /www/htdocs/w01cc1b0/2.wptest.onofficeweb.com/htdocs/wp-includes/pluggable.php on line 1355

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01cc1b0/2.wptest.onofficeweb.com/htdocs/wp-content/themes/neve/header.php:10) in /www/htdocs/w01cc1b0/2.wptest.onofficeweb.com/htdocs/wp-includes/pluggable.php on line 1358

This also happens when the title is not in the URL. Then https://2.wptest.onofficeweb.com/detail/35/ works correctly, but when I go to https://2.wptest.onofficeweb.com/detail/35-og119/ I get the same error message as above, when I should have been redirected to https://2.wptest.onofficeweb.com/detail/35/.

Desired state

The plugin should actually redirect to the correct URL.

LongTrong-exe commented 2 years ago

@jmaas-onoffice I tested it on my wordpress, it still works, I can't reproduce it. I will ask our tester to check it. But I think you should check your wordpress environment.

https://user-images.githubusercontent.com/101325858/165565898-0f9c206b-7641-48bc-9d6d-dfedec63b580.mp4

jmaas-onoffice commented 2 years ago

Could you try it on https://2.wptest.onofficeweb.com/? You should have access to that test instance.

jmaas-onoffice commented 2 years ago

Fixed as of 3.0-59-g9b3be5ce.