Sitemap Module
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Brian Litzinger
Errors on save
General
DevDemon
|
Posted: 28 January 2011 01:10 AM |
|
|
|
Hello,
I am getting errors on save. EE 2.1.3 with your version download on 1/27/11.
I get this error several times:
——
A PHP Error was encountered
Severity: Warning
Message: preg_match() [function.preg-match]: No ending delimiter ‘^’ found
Filename: sitemap/ext.sitemap.php
Line Number: 145
Any clues on what this is?
Brad
|
|
|
PutYourLightsOn
|
Posted: 28 January 2011 08:29 AM |
# 1
|
|
|
hmm what version of php do you have installed? changing line 145 to the following should fix it:
if (preg_match("/^HTTP/", $response) && !preg_match("/^HTTP[0-9\.]+ 200/", $response))
i’ll fix this in the next update
|
|
|
DevDemon
|
Posted: 28 January 2011 11:54 AM |
# 2
|
|
|
Hello,
My PHP is PHP Version 5.2.13.
It is the Rackspace Cloud. I will test and let you know.
Brad
|
|
|
franxx
|
Posted: 26 February 2011 05:03 PM |
# 3
|
|
|
I have exact the same problem. Sitemap module shows this error, when I will save a channel edit.
EE 2.1.3, Sitemap Module 2.1.3., PHP Version 5.2.12.
Will there be an update of the Sitemap Module? In the meantime I deinstalled it, because it’s behaviour irritates me.
Franxx
|
|
|
Nick F
|
Posted: 30 March 2011 10:46 AM |
# 4
|
|
|
I’m getting the same problem. Sitemap worked fine for about 24 hours, then suddenly I couldn’t save ANY channel entries. Got the exact same PHP error as above - tons of them.
Have had to de-install sitemap for now :-(
|
|
|
Mike Roling
|
Posted: 15 April 2011 12:52 AM |
# 5
|
|
|
Shouldn’t line 145 be:
if (preg_match("/^HTTP$/", $response) && !preg_match("/^HTTP[0-9\.]+ 200$/", $response))
Without the $, the if statement is always false, causing the module to falsely report that it couldn’t reach google, bing, etc.
|
|
|
richk82
|
Posted: 15 April 2011 12:21 PM |
# 6
|
|
|
Yes Mike, I think you’re correct.
I was getting the PHP errors that everyone else was experiencing. Then when I updated line 145 without the $ symbol I would get an error message saying that Google / Bing etc couldn’t be pinged every time I saved or edited an entry. Added in the $ symbol in the correct position… no more error messages.
Thanks very much.
|
|
|
PutYourLightsOn
|
Posted: 15 April 2011 03:01 PM |
# 7
|
|
|
thanks for pointing this out mike! i’ll be sure to fix in next release.
|
|
|
PutYourLightsOn
|
Posted: 09 May 2011 07:25 PM |
# 8
|
|
|
i’ve released version 2.2 which contains a fix for this, plus a new Sitemap tab on the publish page.
|
|
|