Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem on Fields.php cannot use stdObject as an array #3084
The file Fields.php on system/cms/modules/streams_core/libraries/Fields.php has some problems with validation, so you just need to add is_array($_POST) before doing isset($_POST[$stream_field->field_slug]) on line 381 for example.
I've already did that on my File.php https://dl.dropboxusercontent.com/u/20596750/code/php/Fields.php
Thanks for everything guys!
added a commit
Nov 7, 2013
referenced this issue
Nov 7, 2013
If this PR is intended for 2.3/develop, the problem has to be solved elsewhere because the Fields library is being deprecated in favor of the new found at Pyro\Module\Streams_core\Core\Field\FormBuilder. This is because the entire Streams system has been rewritten.
We still need to work on backwards compatibility in the case that devs still use the old streams drivers in 2.3.
@Zantes, Tell us what version of Pyro you are using and what module (or specific file) are you finding this issue. We will either point you in the right direction to fix it or we will eventually fix it. If this is happening with a custom module you'll have to wait until we finish work on backwards compatibility.
I found the bug in the pyrocms-pyrocms-v2.2.3-0-g08759da and solved in my
On Thu, Nov 7, 2013 at 7:24 PM, Ryan Thompson firstname.lastname@example.org: