We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Publish layout hidden field causing PHP error

Developer Preview

Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
14 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

On a few publish layouts I have the comment expiration field hidden. I’m getting the following errors:

A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 145 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 151 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 152 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 157 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 159 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 166 A PHP Error was encountered Severity: Notice Message: Undefined index: comment_expiration_date Filename: content/publish.php Line Number: 171
       
Kevin Cupp's avatar
Kevin Cupp
791 posts
14 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks for all your testing today, Erik. I’m unable to reproduce this one. I tried on a 2.3.1 install, hid the comment expiration date field, then upgraded to 2.4 and all seemed normal. Also tried simply hiding it in 2.4 without the upgrade process. Is there anything else specific I can try to reproduce this? The serialized layout array must have gotten mucked up somehow.

Kevin

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
14 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

Strange indeed. I always hate reporting errors that aren’t cut and dry 😊

For what it’s worth, I went from 2.1.3 to 2.4. I’ll dig a bit more and see what I find. Worst case scenario I’ll just wipe the layout entry from the db for the sake of time.

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
14 years ago
Kevin Cupp's avatar Kevin Cupp

I’m glad to at least hear the installer was able to go from 2.1.3 to 2.4 with no problems (I assume). Yes usually in these cases, we tell users to reset their layouts, there must be some strange edge case where that array gets messed up that we’ve been unable to come across on our own.

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
14 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team
I’m glad to at least hear the installer was able to go from 2.1.3 to 2.4 with no problems (I assume).

Correct. No issues at all. 😊

       
Boyink!'s avatar
Boyink!
5,011 posts
13 years ago
Boyink!'s avatar Boyink!

FWIW I just had this issue on a site that we’ve moved from 1.6 up to 2.4 at different stages.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.