Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2009 at 19:12 UTC
Updated:
31 Dec 2009 at 23:30 UTC
hi
I am running drupal 6.14 in debian etch fully upgraded with
php5 5.2.0+dfsg-8+etch16
apache2 2.2.3-4+etch11
after upgrading biblio module 1.7 to 1.8 I am getting this error when I access to publications in my library module
warning: preg_match() [function.preg-match]: Unknown modifier '[' in /var/www/drupal6/sites/all/modules/biblio/biblio_style_ama.inc on line 271
this is the line 271. it seems this regex is not working:
if (!preg_match("[?!.][ \"" . $markupPatternsArray["italic-suffix"] . "]*$", $output)) $output .= ".";
I am a total php newby so by now I have commented out that line and everything seems to be working. ¿any clue about how to solve this error?
many thanks in advance.
Comments
Comment #1
rjerome commentedThere should be a forward slash in front of that first square ( [ ) bracket like this...
Comment #2
rjerome commentedfixed in 1.9 release
Comment #3
esplinter commentedhi
I have just upgrade to 6.x-1.9 and started getting this error:
this is the original line in line 271 in file biblio_style_ama.inc where the error is:
I solved it just adding a final '/' . with this line it seems to be working ok:
Comment #4
rjerome commentedRight you are, that will teach me to commit code without testing it :-(
Ron.
http://drupal.org/cvs?commit=302644
Comment #5
esplinter commentedthanks for a so quick fix!!