Craft-Plugin--Redirect-Manager icon indicating copy to clipboard operation
Craft-Plugin--Redirect-Manager copied to clipboard

PHP Warning in version 1.9.1

Open mediagirl opened this issue 7 years ago • 4 comments

I'm seeing this warning over and over in the PHP error logs of project. Can you suggest a fix that I can implement? https://www.screencast.com/t/ETEhtLdQ5

[01-Feb-2018 18:24:36 UTC] PHP Warning: preg_match(): Unknown modifier ' ' in /storage/XXXXX/www/public_html/craft/plugins/redirectmanager/services/RedirectManagerService.php on line 44

LINE 44 in that file is: if(preg_match($record['uri'], $uri)){

mediagirl avatar Feb 01 '18 18:02 mediagirl

@rkingon Want to see if you have a patch for this warning I'm seeing in the PHP logs. Any help would be much appreciated.

mediagirl avatar Apr 26 '18 20:04 mediagirl

Sorry, I don't even have PHP installed anymore. I've moved onto other languages. I'll see if I can help assist you here, though.

I am assuming that you have an issue with one of your records REGEX patterns.

How many records do you have? If you could post a screen shot of the pattern column, I could look at it and see if I notice anything that is off

rkingon avatar Apr 27 '18 17:04 rkingon

I appreciate any feedback you have for a fix.

There are about 100 redirects setup. All use either of these two Match URI formats: https://www.screencast.com/t/fRdjQWbSUeFa

I’ll try to add some logging to see which redirect is causing the issue.

Anna


Anna Brown MediaGirl, Inc. http://www.mediagirl.com/?src=sig Office: (505) 205-1597 mailto:[email protected] [email protected] Twitter: http://www.twitter.com/mediagirl @mediagirl

From: Roi Kingon [mailto:[email protected]] Sent: Friday, April 27, 2018 11:16 AM To: rkingon/Craft-Plugin--Redirect-Manager [email protected] Cc: mediagirl [email protected]; Author [email protected] Subject: Re: [rkingon/Craft-Plugin--Redirect-Manager] PHP Warning in version 1.9.1 (#32)

Sorry, I don't even have PHP installed anymore. I've moved onto other languages. I'll see if I can help assist you here, though. I am assuming that you have an issue with one of your records REGEX patterns. How many records do you have? If you could post a screen shot of the pattern column, I could look at it and see if I notice anything that is off — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rkingon/Craft-Plugin--Redirect-Manager/issues/32#issuecomment-385035930 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAPN3xajWoAH3Fg-57sFpSQFA4iRbMDoks5ts1I0gaJpZM4R2GN_ . https://github.com/notifications/beacon/AAPN3_PsYVbi8f20vAp4Ds2zBpZ4xnDoks5ts1I0gaJpZM4R2GN_.gif

mediagirl avatar Apr 27 '18 17:04 mediagirl

I checked through each redirect and found one that was written incorrectly. I fixed the issue and will keep an eye on the error logs.

Anna


Anna Brown MediaGirl, Inc. http://www.mediagirl.com/?src=sig Office: (505) 205-1597 mailto:[email protected] [email protected] Twitter: http://www.twitter.com/mediagirl @mediagirl

From: Roi Kingon [mailto:[email protected]] Sent: Friday, April 27, 2018 11:16 AM To: rkingon/Craft-Plugin--Redirect-Manager [email protected] Cc: mediagirl [email protected]; Author [email protected] Subject: Re: [rkingon/Craft-Plugin--Redirect-Manager] PHP Warning in version 1.9.1 (#32)

Sorry, I don't even have PHP installed anymore. I've moved onto other languages. I'll see if I can help assist you here, though. I am assuming that you have an issue with one of your records REGEX patterns. How many records do you have? If you could post a screen shot of the pattern column, I could look at it and see if I notice anything that is off — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rkingon/Craft-Plugin--Redirect-Manager/issues/32#issuecomment-385035930 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAPN3xajWoAH3Fg-57sFpSQFA4iRbMDoks5ts1I0gaJpZM4R2GN_ . https://github.com/notifications/beacon/AAPN3_PsYVbi8f20vAp4Ds2zBpZ4xnDoks5ts1I0gaJpZM4R2GN_.gif

mediagirl avatar Apr 27 '18 19:04 mediagirl