Re: PHP errors specific to Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks very much to Ron and Bob for thir suggestions.  That PHP changed
between releases was my suspicion as well, and this may confirm it.

Bob, the change to $a_pref[value] fixed the issue.  One thing I wasn't
clear on was whether I should insert a value in the brackets, or actually
type [value].  Not knowing what the value would be, I did the latter.  And
it worked, so it looks like I can go live with my new site.

Thanks again for the suggestions, which I will forward to the maintainer
of that plugin as well.

Regards,
Ed

On Wed, 5 May 2004, Bob Shaffer wrote:

> It looks like each() returns an array, and preg_match wants a string.  The
> old version of PHP must have just missed the error where the new one is
> more strict.  Try changing this line:
> if (!preg_match("/^#/", $a_pref)) {
> to this:
> if (!preg_match("/^#/", $a_pref[value])) {
> and it might fix your problem.  The code for that plugin doesn't look
> entirely correct to me, though, anyway.  If it worked before, that might
> fix your problem though.
>
> Ed Holden said:
> > Hi.  I was wondering if anyone was familiar with the differences between
> > Apache and PHP in Red Hat 8.0 and those same packages in Fedora Core 1.
> >   Something seems to have changed, because I'm phasing out a RH8 web
> > server and replacing it with FC1, but on the new server I get an error
> > on one of my PHP pages.  It looks like this:
> >
> >   Warning: preg_match() expects parameter 2 to be string, array given in
> > /var/www/squirrelmail-1.4.2/plugins/vacation/vacation.php on line 33
> >
> > Fortunately this is the only error on the whole site.  The page in
> > question is a Squirrelmail PHP-based webmail plugin that allows users to
> > manipulate the vacation program from their browser.  This error repeats
> > three times in a row.
> >
> > I've tried a number of things to fix it, including deciperhing the PHP
> > code (which seems fine), but I then decided to determine whether the
> > problem recurred when I ported the old version of the site to the new
> > server.  It did, so the error seems to be specific to FC1 (but not RH8),
> > even though the code is identical.
> >
> > Apache is at 2.0.48-1.2 and PHP is at 4.3.4-1.1.  On my old server they
> > were at 2.0.40-8 and 4.2.2-8.0.5.  Anyone out there know whether this is
> > a configuration error or a problem with the packages themselves?
> >
> > Regards,
> > Ed Holden
> >
> > --
> >
> > :: Ed Holden
> > :: Administrator, Research Information Systems
> > :: McLean Hospital
> > :: Tel: (617) 855-2822
> > :: Web: http://research.mclean.org/ris
> >
> >
> > Any information, including protected health information (PHI), transmitted
> > in this email is intended only for the person or entity to which it is
> > addressed and may contain information that is privileged, confidential and
> > or
> > exempt from disclosure under applicable Federal or State law. Any review,
> > retransmission, dissemination or other use of or taking of any action in
> > reliance upon, protected health information (PHI) by persons or entities
> > other
> > than the intended recipient is prohibited. If you received this email in
> > error,
> > please contact the sender and delete the material from any computer.
> > --
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >
>
>
>


Any information, including protected health information (PHI), transmitted
in this email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential and or
exempt from disclosure under applicable Federal or State law. Any review,
retransmission, dissemination or other use of or taking of any action in
reliance upon, protected health information (PHI) by persons or entities other
than the intended recipient is prohibited. If you received this email in error,
please contact the sender and delete the material from any computer.

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux