Hi,
I am unable to get flag submodules to work with statuses. After I enable the flag and flag for comments submodules for statuses, the following error is displayed.
•Strict warning: Declaration of fbss_flag::replace_tokens() should be compatible with that of flag_flag::replace_tokens() in require_once() (line 20 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\fbss_flag.flag.inc).
•Notice: Undefined variable: flag in fbss_flag_views_default_views() (line 22 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\fbss_flag.views_default.inc).
•Notice: Trying to get property of non-object in fbss_flag_views_default_views() (line 22 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\fbss_flag.views_default.inc).
•Notice: Trying to get property of non-object in fbss_flag_views_default_views() (line 285 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\fbss_flag.views_default.inc).
•Strict warning: Declaration of fbss_flag::replace_tokens() should be compatible with that of flag_flag::replace_tokens() in require_once() (line 20 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\fbss_flag.flag.inc).
Please advise on any thoughts or next steps I can take.
Thanks
Comments
Comment #1
mathankumarc commentedDuplicate of #1296238: calls to flag_get_flag('follow')->fid or ->status fail
You need to use the latest dev version for flag integration.
Can we create another checkpoint release?
Comment #2
icecreamyou commentedThis has already been fixed in dev.
EDIT: cross-post. Since we're so close to an alpha release no need to create another checkpoint release.
Also if an issue is closed before I comment on it I probably won't notice it so if you need my feedback just drop me an email or something.
Comment #3
mathankumarc commentedThis is a duplicate of #1427788: Trying to get property of non-object in fbss_flag_views_default_views() (line 22 not #1296238: calls to flag_get_flag('follow')->fid or ->status fail
Comment #4
oystercrackher commentedI'm relatively new to Drupal. Can you tell me what the best procedure is to replace the recommended release of this module with the dev version? If I do an uninstall and then try installing the dev version; it tells me that the module is already installed. Then when I try to enable it; it is still the old recommended release. Please advise.
Thanks
Comment #5
icecreamyou commentedGenerally you can skip the install/uninstall steps and just delete the old version and upload the new version. If you do that make sure to run update.php afterwards. Make sure you actually do delete the whole module folder though, if you just overwrite it you could end up with problems.
Comment #6
oystercrackher commentedThank you @IceCreamYou for the instructions to install new dev version.
I have installed dev version and when enabling flag submodule for statuses, I now receive the following error:
•Notice: Undefined property: flag_heartbeat_message::$status in fbss_flag_views_default_views_alter() (line 68 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\fbss_flag.module).
•Strict warning: Declaration of fbss_flag::replace_tokens() should be compatible with that of flag_flag::replace_tokens() in require_once() (line 20 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\fbss_flag.flag.inc).
Any advice is greatly appreciated.
Thanks
Comment #7
mathankumarc commentedyeah replace_tokens is changed in flag api 2. I think we need to revisit the flag integration again.
Can we reopen #1296238: calls to flag_get_flag('follow')->fid or ->status fail or use this issue to fix the flag integration.
I'm not able to reproduce this one
Comment #8
icecreamyou commentedThis issue is fine
Comment #9
mathankumarc commentedI dunno whether these functions are deprecated, I'm not seeing this flag_flag class
Comment #10
mathankumarc commentedoops missed the patch.
Comment #11
icecreamyou commentedWell I haven't tested it but #10 doesn't introduce any breaking changes so if that fixes things that's fine
Comment #12
mathankumarc commentedI didnt tested this one. just modified the function definitions according to new api changes. If someone confirm this then its RTBC.
Comment #13
mathankumarc commentedI didnt tested this one. just modified the function definitions according to new api changes. If someone confirm this then its RTBC.
Edit : Duplicate comments :(
Comment #14
oystercrackher commentedHi,
Thank you, the patch worked and allowed me to enable the statuses flag submodule without error, but when users login, they get the following error: (This error goes away if I disable the statuses flag submodule)
• Notice: Undefined index: join field in flag_handler_field_ops->query() (line 78 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\flag\includes\flag_handler_field_ops.inc).
• Notice: Undefined index: join field in flag_handler_field_ops->query() (line 104 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\flag\includes\flag_handler_field_ops.inc).
Additionally, when enabling the statuses flag comments submodule integration module, I receive the following error:
•Strict warning: Only variables should be passed by reference in statuses_views_handler_argument_flagged_user->option_definition() (line 15 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\statuses_views_handler_argument_flagged_user.inc).
•Strict warning: Only variables should be passed by reference in statuses_views_handler_argument_flagged_user->option_definition() (line 15 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\statuses_views_handler_argument_flagged_user.inc).
•Strict warning: Declaration of fbss_comments_flag::replace_tokens() should be compatible with that of flag_flag::replace_tokens() in require_once() (line 20 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_comments\fbss_comments_flag\fbss_comments_flag.flag.inc).
When disabling the flag comments submodule, get one additional error to those supplied above, this one is bolded below.
•Strict warning: Declaration of fbss_comments_flag::replace_tokens() should be compatible with that of flag_flag::replace_tokens() in require_once() (line 20 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_comments\fbss_comments_flag\fbss_comments_flag.flag.inc).
•Strict warning: Declaration of statuses_views_handler_argument_flagged_user::query() should be compatible with that of views_handler_argument::query() in require_once() (line 11 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\statuses_views_handler_argument_flagged_user.inc).
•Strict warning: Only variables should be passed by reference in statuses_views_handler_argument_flagged_user->option_definition() (line 15 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\statuses_views_handler_argument_flagged_user.inc).
•Strict warning: Only variables should be passed by reference in statuses_views_handler_argument_flagged_user->option_definition() (line 15 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\statuses\submodules\fbss_flag\views\statuses_views_handler_argument_flagged_user.inc).
Thanks
Comment #15
mathankumarc commented@oystercrackher
Thanks for your report.
seems to be flag integration needs more care. Will fix this in this weekend :)
Comment #16
deanflory commentedI too am getting this error when enabling the Statuses Flags module (error shown on Modules page):
Notice: Undefined property: flag_heartbeat_message::$status in fbss_flag_views_default_views_alter() (line 68 of /home/account/public_html/drupal/sites/all/modules/statuses/submodules/fbss_flag/fbss_flag.module).
Comment #17
oystercrackher commented@mathankumarc
Do you have an eta on this fix?
Please advise.
Thanks
Comment #18
mathankumarc commentedSince I've other priorities I cant specify a eta for this one. But this will be fixed before alpha 1 release as Isaac mentioned in #1551542: [META] Release Plan
Comment #19
oystercrackher commentedThank you for the update.
Comment #20
mathankumarc commentedI'm not getting this error. I fixed other issues.
Comment #21
hiddenfellon commentedI know some of these have been posted and probably wont help after the updated dev is done but here is what I am currently getting with the latest dev version and
And then I get these additional errors when posting a image using FBSMP.
Im using the latest dev version of Statuses, flags, views and ctools
Comment #22
mathankumarc commentedoops. just now I noticed that I didnt enabled E_STRICT error reporting. thats why I'm unable to reproduce some errors.
Re #21 : These errors are already been reported
Strict warning: Declaration of fbsmp_views_handler_field_themed_attachment::init() should be compatible with that of views_handler_field::init() in _registry_check_code() (line 3024 of C:\xampp\htdocs\d7\includes\bootstrap.inc).This is not related to this issue queue. this issue should be reported in FBSMP module issue queue. However committed a fix to dev for this issue in fbsmp 7.x branch.
Hereafter post the issues in proper issue queues.
Comment #23
mathankumarc commentedFinally got it. Fixed all the errors and warnings.
Any testers?
But I have a question regarding this one. I think $content_type should be user not statuses, cause in options_form we are listing the user content type flags not statuses content_type flags.
If this is the case, then we need to backport this change.
Comment #24
hiddenfellon commentedI would like to try this but im currently having a problem with the patching the patch on the module...
Comment #25
mathankumarc commented@hiddenfellon
this may help you
http://drupal.org/project/statuses/git-instructions
Comment #26
hiddenfellon commentedWorks like a charm, remember to put the patch in the root statuses file before patching people. =)
Comment #27
icecreamyou commentedRe #23: you're right, good catch. Other than that this is RTBC.
(Sorry I've been AFK, busy at work.)
Comment #28
mathankumarc commentedNo problem.
Committed to 7.x
Here is the patch for 6.x
I'm getting another bunch of warnings in other submodule handlers after enabling E_STRICT warnings. Need consider them as followup issue.
#1501978: Create an upgrade path from Facebook-style Statuses (D6) this alone is pending for alpha release. I'm really afraid to take this one :( Any way will give a try :)
Comment #29
icecreamyou commentedI have some time this afternoon, will commit this to D6 and work on the upgrade issue.
Comment #30
icecreamyou commentedCommitted to D6. Marking this fixed, but let's make sure to follow up with other E_STRICT warnings.
Comment #32
oystercrackher commented@mathankumarc
In #14 above, was the error for "join field in flag_handler_field_ops" listed above part of the applied fixes as I am running the latest dev version and still am getting the following error on the user's profile when I enable the flag submodule for statuses:
Notice: Undefined index: join field in flag_handler_field_ops->query() (line 78 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\flag\includes\flag_handler_field_ops.inc).
Notice: Undefined index: join field in flag_handler_field_ops->query() (line 104 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\flag\includes\flag_handler_field_ops.inc).
Also, while flag submodule is enabled, statuses do not appear in user's profile. When I disable flag submodule, the error disappears and the statuses then reappear in users profile.
Please advise on your thoughts.
Thanks so much.
Comment #33
icecreamyou commented@oystercrackher: I can't reproduce the issue you're describing. Please open a separate support request and reference any related issues.
Comment #34
oystercrackher commentedDone as requested; it is #1689502.
Thanks