preg_match error

Issue #14 duplicate
Former user created an issue

I update to the "tip" release with the ereg to preg_match conversation, but unfortunately one (or maybe more) conversions where correct:

Warning: preg_match() [function.preg-match]: Unknown modifier ']' in OpenBiblio\classes\Date.php on line 16


Comments (3)

  1. Hans van der Weij

    I've seen this bug on Bibliography Check Out: Warning: preg_match() [function.preg-match]: Unknown modifier ']' in W:\www\070\classes\Date.php on line 16

    Warning: Cannot modify header information - headers already sent by (output started at W:\www\070\classes\Date.php:16) in W:\www\070\circ\checkout.php on line 61

    When the browser back button is used you see that the Check Out has been performed.

    Check In: identical problem.

    The above appears with:

    Uniform Server 3.5

    • Apache 2.0.59
    • MySQL 5.0.41
    • PHP 5.2.3

    Uniform Server 4.0

    • Apache 2.2.11
    • MySQL 5.0.67
    • PHP 5.2.8

    XAMPPlite Version 1.5.5

    • PHP Version 5.2.0

    The warning does NOT appear with the environment below, instead you get bug #15 Check Out error

    Uniform Server 5.6.9-Nano: Apache 2.2.16 MySQL 5.1.49 PHP 5.3.3

  2. Hans van der Weij

    Annoying to see a PHP warning mess up the Circulation workflow. Later I discovered changing PHP.INI can fix this, only on XAMPPlite Version 1.5.5 / PHP Version 5.2.0 that didn't work.

    Uniform Server 3.5, 4.0 and XAMPPlite Version 1.5.5 are distributed with PHP.INI setting display_errors = On (no problem for OpenBiblio 0.6.0 and older).

    Uniform Server 5.6.9-Nano: display_errors = Off

    When set to Off, as recommended for production sites, Check Out is performed in 0.7.0 without the preg_match() warning. Issue #15 can also be solved, by adjusting another setting in PHP.INI.

    I don't know what the warning message about the unknown modifier means, but I do know that when display_errors is set to Off, Circulation works the way I expect it to work. (Here I'm not talking about the new option Override Due Date.)

  3. Log in to comment