GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 159 forks source link

Warning: preg_match() expects parameter 2 to be string, array given #191

Open inpresif opened 8 years ago

inpresif commented 8 years ago

We keep getting tons of these in our logs:

ERR (3): Warning: preg_match() expects parameter 2 to be string, array given in /app/code/community/Lesti/Fpc/Helper/Data.php on line 220

GordonLesti commented 8 years ago

Hello @inpresif what Miss Uri Params did you have? I guess they didn't fit that well.

inpresif commented 8 years ago

These errors have been going on for a while now we Just started looking for the cause since upgrading to the latest version did not solve it.

This is what we have for those values:

nocache=/1/, limit=/[0-9]+/, dir=/[0-9a-z]+/, order=/[0-9a-z]+/, mode=/[0-9a-z]+/, price=/[0-9a-z]+/, manufacturer=/[0-9a-z]+/, __store=/[a-z]{1}[0-9a-z]*/, capacity=/[0-9a-z]+/, color=/[0-9a-z]+/

Thanks.

Gordon Lesti notifications@github.com schreef op 24 februari 2016 21:32:29 CET:

Hello @inpresif what Miss Uri Params did you have? I guess they didn't fit that well.


Reply to this email directly or view it on GitHub: https://github.com/GordonLesti/Lesti_Fpc/issues/191#issuecomment-188442540

Verzonden van mijn Android telefoon met K-9 Mail.

GordonLesti commented 8 years ago

Thank you, it seems like Zend_Controller_Request_Http::getParam is returning an Array. Unfortunately I had never this case. I will fix that in the next version.

inpresif commented 8 years ago

Ok, great.

Keep up the good work!

Thanks,

Paul.

Van: Gordon Lesti [mailto:notifications@github.com] Verzonden: donderdag 25 februari 2016 10:11 Aan: GordonLesti/Lesti_Fpc CC: inpresif Onderwerp: Re: [Lesti_Fpc] Warning: preg_match() expects parameter 2 to be string, array given (#191)

Thank you, it seems like Zend_Controller_Request_Http::getParam is returning an Array. Unfortunately I had never this case. I will fix that in the next version.

— Reply to this email directly or view it on GitHub https://github.com/GordonLesti/Lesti_Fpc/issues/191#issuecomment-188679886 . https://github.com/notifications/beacon/AMRlUKo05S-GfBWaEFDDlqRABVGqMgZyks5pnry1gaJpZM4Hh9gY.gif

GordonLesti commented 8 years ago

Hello @inpresif I wanted to work on dealing arrays as parameter, but unfortunately there is no standard form of an uri with array parameters. Can you send me one example of your shop?