Module

Archived
Forum
(read-only)

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
DevDemon

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
# 1
PutYourLightsOn

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
# 2
DevDemon

Hello,

My PHP is PHP Version 5.2.13.

It is the Rackspace Cloud. I will test and let you know.

Brad

franxx
# 3
franxx

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
# 4
Nick F

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
# 5
Mike Roling

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
# 6
richk82

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
# 7
PutYourLightsOn

thanks for pointing this out mike! i’ll be sure to fix in next release.

PutYourLightsOn
# 8
PutYourLightsOn

i’ve released version 2.2 which contains a fix for this, plus a new Sitemap tab on the publish page.