Closed (fixed)
Project:
Collapse Text
Version:
7.x-2.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2011 at 21:00 UTC
Updated:
21 Nov 2012 at 12:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
cpelham commentedI didn't see an include in this module but I guess it's trying to load something and using the wrong syntax? I get these error messages on EVERY single page now so I'd really like to find a way to get rid of them.
Comment #2
pukku commentedTHis is confusing, because the error is showing up in one of Drupal's functions, not one of this modules.
Could you try the dev version? There was a call-time pass-by-reference error that may have been fixed in a different place...
Ricky
Comment #3
cpelham commentedI found that upgrading to the dev version did not eliminate the error. but then surprisingly deactivating the module did not eliminate the error either, even though the error began with the activation of the module.
However, adding the following line to my .htaccess file eliminated the error messages:
php_flag allow_call_time_pass_reference on
Comment #4
Carlos Miranda Levy commentedThe dev version fixes this.
If you continue getting the error after clearing your cache, then it is another module generating the error.
These two other modules have the same problem:
http://drupal.org/project/uuid
http://drupal.org/project/sharethis
Comment #5
benjaminkyta commentedThe dev version worked for me too. Thanks
[benjamin@mountbatten.net]
Comment #6
hanskuiters commentedI can confirm the dev version worked for me too.
Comment #7
ultimateboy commentedConfirmed this is fixed in the latest dev.... might I suggest tagging a new 7.x release?!
Anyways, closing this as its fixed.
Comment #9
ultimateboy commentedI have to do this.. I'm reopening and setting to critical until a new stable release is out.. this bug has gotten me multiple different times on multiple sites.
Comment #10
bobbingwide commentedI saw this problem for the first time today when I tried running a custom module developed on Drupal 6 in a Drupal 7 implementation.
I had made no changes to the code other than to update the .info files to say core = 7.x.
I discovered that you can get the message even if the code isn't executed; it only needs to be parsed.
The following code will produce the message.
Include file called ro.inc contains
Main file contains
The conditions you need to satisfy to get the message are:
The problem is fixed by removing the & on the call to the function that has declared its parameter as being passed by reference.
In this simple example I've not managed to reproduce the apparently incorrect reporting of the message as if it came from the main file... but I'm working on it.
Comment #11
bobbingwide commentedBased on the above, http://drupal.org/node/1166504#comment-5843292, the unwanted & is on line 605 of collapse_text.module
changing it from
to
eliminates the message.
This appears to be simpler than the dev fix ... but I haven't checked if the code actually works.
Comment #12
bobbingwide commentedI've found out why I couldn't get the message to be reported from the wrong place #1166504-10: call-time pass-by-reference has been deprecated in drupal_load()
and have now raised an issue suggesting an improvement to Drupal error reporting code. #1525400: Improve problem determination for 'Call-time pass-by-reference has been deprecated' by changing _drupal_error_handler_real()
Comment #13
liquidcms commentedhere is the patch for the fix listed in #11
btw, this error is a result of using php 5.3; which is when this use was deprecated
Comment #14
dotman commentedeither fix breaks it for me at dreamhost running php 5.3. Is there another way to suppress the error?
thanks.
Comment #15
mhd999 commentedI got the same problem and it's gone by stopping the beta modules for my case it was "Publish button modules"
is there in other solution !!?
Comment #16
mfoda commentedI'm new to drupal and I've noticed multiple times the suggestion to use the dev version of a module in response to some issue. I was wondering how safe that is on a production site. Does it vary by module? Or is it only OK to use the dev version when a stable release for the same drupal version exists? Also if you use the dev version does your module get updated when a new update is made to the stable release?
thanks in advance
Comment #17
mhd999 commentedWell i think no one use dev version when other stable one available . also updating issue if it occur might be solved in the stable version so never use dev when stable is available
Comment #18
mfoda commented@ liquidcms
Your patch isn't working. I think you took out the wrong '&'
Your patch removes the '&' from line 614: function _collapse_text_preprocess_page_walk_callback ($val, $key, &$found) {
Which is not the same line as the fix in #11.
Just manually do it at line 605
Comment #19
mfoda commentedOK i guess I misunderstood this. You need to take out both '&'s in order for the error to disappear.
So use both #11 and #13. Neither works on its own.
Comment #20
onewomanbiz commentedAfter the latest Drupal core update, this error appeared. It only disappeared after de-activating Collapse Text Module.
The previous messages are not clear.
We tried removing extra character "&" preceding $found on the two instances as indicated without success.
Can anyone confirm a fix for the error?
Comment #21
pukku commentedHI! I'm about to put up a simpler solution and create a release node for a new version. I'm just going to always include the .js file. The amount of trouble that trying to dynamically add the collapse.js file has caused is more than the feature is worth.
Comment #23
lovelykaushik86 commentedThnku so much cpelham. ur solution worked for me