in2code-de / luxletter

Newsletter system for TYPO3
https://www.in2code.de/agentur/typo3-extensions/luxletter/
23 stars 25 forks source link

Origin could not be converted into a valid url! #147

Closed estudio-kintek closed 1 year ago

estudio-kintek commented 1 year ago

We've tried to create a new Newsletter in a Typo3 version 9.5.22.

After 2 first steps of the process, at the last one with the preview of the newsletter, we've got an error message:

"Origin #page_id could not be converted into a valid url! Message: Given URL could not be parsed and accessed (Tried to read url: https://domain/segment/page?type=1562349004). Typenum definition in site-configuration not set? Fluid Styled Mail Content TypoScript added?"

We've followed the configuration steps (https://github.com/in2code-de/luxletter/blob/develop/Documentation/Installation/Index.md):

When we check the "var_dump" of different variables in the code of the process, we can see that variable $body is NULL in the request headers.

Anyone knows what's reason of the error?

Thank you!

einpraegsam commented 1 year ago

What if you open the URL https://domain/segment/page?type=1562349004 in a new browser tab. Can it be rendered or are there errors? What if you login via SSH to your server and do a curl -I https://domain/segment/page?type=1562349004 - is it possible without problems?

estudio-kintek commented 1 year ago

We've tried and we have no problems in both cases.

We have also tried to install a clear typo3 9.5.31 installation with the luxletter extension and also have the same problem.

Thank you!

einpraegsam commented 1 year ago

This is a bit strange so far and I'm running out of ideas without deeper debugging...

estudio-kintek commented 1 year ago

Finnally it worked! The reason was just silly...

At luxletter configuration, we haven't set an unsuscribe PID of a page with the unsuscribe plugin element of luxletter. We have set a page with other kind of form, but it seems that luxletter requires that specific element to work correctly.

We have try to set the unsuscribe plugin of luxletter at the page with the PID set in luxletter configuration and now it works.

Thank you anyway for your attention!

einpraegsam commented 1 year ago

Ah ok. That's why we improved the error message back for version 11.0.0 in march this year (commit https://github.com/in2code-de/luxletter/commit/2079c390b5d459c44fd173c2bcc466e906b84d2f). That's another reason to update your TYPO3 to 10 or 11. Thx for your final feedback.