Reviewed & tested by the community
Project:
Views default argument from Context
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2012 at 23:03 UTC
Updated:
7 Nov 2015 at 10:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ericski commentedSeeing as how this has been open for about a year... I'm guessing the chances of getting this committed are slim, but I just wanted to throw my hat in and say I've independently found and fixed this issue in the same manner before coming to file a bug report myself.
Comment #2
tche082 commentedMade a patch for this so others can apply the fix
Comment #3
rafaqz commentedPatch didn't apply for some reason, so I rolled another one.
Comment #4
darrellduane commentedLets get this committed!
Comment #5
bleen commented@DarrellDuane have you tested the latest patch? If so, can you describe the steps you used to test?
Comment #6
darrellduane commentedHonestly, I didn't actually use the patch provided, I directly edited my code to have
$option_nameas the second argument to the check_access() function on line 36.The existing code was working fine on my PHP 5.3 system, but when I upgraded to php 5.5, I began getting this error message.
Once I did the net effect of this patch, it fixed the problem. I hope you're able to either directly apply the patch or edit your file and add this argument into the function.
I had to make a similar fix as described at: https://www.drupal.org/node/2176035#comment-9263555
Comment #7
darrellduane commentedOk, I've had this problem on another site and had a chance to test patch #3 directly:
The error message has gone away once I applied this patch.
Lets get it committed!
Comment #8
damien_vancouver commentedanother +1 for the patch in #3. It fixed this strict warning for me, which appeared after upgrading from PHP 5.3 to PHP 5.4.
Comment #9
vadym.kononenko commentedI've got "Warning: Missing argument 2 for views_plugin_argument_default_context::check_access()" message after patch was applied.
Updated patch fixes this warning. PHP 5.6.13