Closed (outdated)
Project:
Bibliography Module
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2009 at 17:09 UTC
Updated:
20 Dec 2018 at 16:37 UTC
Jump to comment: Most recent
Comments
Comment #1
rjerome commentedThat's bizarre! I use import ALL the time, that's how I test most functions.
I would need more info on your setup (Web server, OS, PHP version etc) and perhaps I could shed some light on it.
That line should look like this... (does it on your end?)
Comment #2
wehall commentedYes, it is bizarre.
On OS X 10.4, apache 1.3.41, php 4.4.9, drupal 6.8 (empty biblio db), I get the error.
On RHEL 4u7, apache 2.0.52, php 4.3.9, drupal 6.6 (biblio db with ~500 entries), I get an empty browser
My line 282 looks as you describe.
Moving that function to the top of the file, the error follows it, so perhaps a missing ')' before an include?
Comment #3
rjerome commentedHmmm, I've run this on a number of different platforms as well and not encountered that errror, the only difference being I'm using PHP 5.x. Have you tried PHP 5.x? Is there some reason you have to stay with 4.x?
The only other thing I can think of is a file formatting issue (i.e. carriage return/linefeeds as opposed to just linefeeds)
Ron.
Comment #4
ju_wien commentedSame error here, on Debian Etch, Apache 2.2, PHP 4.4.4-8+etch6, Drupal 6.8, Biblio 6.x-1.0-rc2. The reason why I stay with PHP4 is that the last time I tried to change to PHP5, a lot of things didn't work afterwords. (This may well have been *my* mistake but I have to little experience to find out.)
Comment #5
Arminius commentedMaybe it is really a PHP 4 issue? I can confirm the following:
I run Drupal 6 with this fantastic module (thanks by the way!!) on two different servers.
Server (1) has PHP 5.2.6
Server (2) has PHP 4.4.8
Importing works fine on the PHP 5 server, but I got the same error (mentioned above) on the PHP4 installation.
Comment #6
rjerome commentedOK, it looks like I need to test with PHP 4.x although given that 4.x was "End of Lifed" (http://www.php.net/downloads.php#v4) in Dec. 2007 people really should be thinking of upgrading by now :-)
Comment #7
Arminius commentedOkay, I was curious. I just changed on the Server (2) [see my posting #5] from PHP 4 to PHP 5.2.5 and I confirm, that the import works now without this error!
Comment #8
rjerome commentedIt seems that in PHP 4 you can't set the default value of a variable passed by reference, so removing the "= NULL" from the last argument on line 287 fixes the problem...
changing...
to....
solves the problem.
Ron.
Comment #9
ju_wien commentedthank you!
Comment #10
rjerome commentedYour thank you may be a bit premature in that this is just the first in a number of PHP4 compatibilities.
Stay tuned...
Comment #11
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.