Sitecore 9.1 + PHP 7.2 = all form fields being removed by Sitecore on POST events

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

Mixing Sitecore and PHP has worked for all versions up till 9.1. Now PHP pages render fine, but when you post to a page, the $_POST collection is empty now.

I took a vanilla Sitecore 9.1 instance and ripped it apart until it was basically an MVC site again. Once I got it that far, it worked again. I have disabled all the modules and handlers in the web.configworking my way through configs now. I have to imagine it is a httpRequestBegin or a pipeline.

Just looking for any thoughts on diagnosing this. I have disabled my test page with the IgnoreUrlPrefixes, but Sitecore is still clearing the post variables.

 xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/">
  
    
       name="IgnoreUrlPrefixes">
         name="value">/cauer.php
      
    
  

Update:

I added a debugging processor at the beginning and end of httpRequestBegin and httpRequestEnd. In 8.2 U7 when my php file is in the IgnoreUrlPrefixes I get a hit at the beginning of the httpRequestBegin. But in 9.1 I do not get the hit. It is skipped. They seem to be handling the IgnoreUrlPrefixes urls differently in 9.1.

Update 2

This is reported as a bug. Being worked on now.

profilepic.png
manpreet 2 years ago

I reported this as an issue when I created this question. Support worked through it and created a patch for it. It was a complete replace of the Sitecore.Owin.Authentication.IdentityServer.dll

Reference support ID 305761 for the fix.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.