We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

SOLVED: Site Map and LG Poll module don’t place nice together

Development and Programming

the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

I just encountered an interesting error in regards to the LG Polls and Sitemap modules. I was creating my first poll and selected update. I get the following error:

“Notice: A session had already been started - ignoring session_start() in /extensions/ext.sitemap_pinger.php on line 153.”

I noticed I had the “Send sitemap ping to search engines” checked. So i went to the site map module control page and excluded the lg polls. However, when I go back to the LG Polls weblog, its still selected.

By the way the poll does get created.

I try to create another poll. This time making sure the send to site map ping is not selected. Same error.

has any one else run into these problems. Any ideas.

I’ll email this to LG also.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

Since this is about two third-party extensions, I’ve moved it down to the Modules forum. I would recommend definitely contacting the authors directly as well.

       
Ben @PutYourLightsOn's avatar
Ben @PutYourLightsOn
295 posts
17 years ago
Ben @PutYourLightsOn's avatar Ben @PutYourLightsOn

thanks for the notice, i’ll look into this and get in touch with leevi to see if we can track the cause

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

Now I also get the error anytime i update a regular entry. After, i uninstalled and reinstalled the Site Map module - things seem to work fine.

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

I was wrong. After I reinstalled the Site map module, and resubmitted an entry. I get the following error:

Notice: A session had already been started - ignoring session_start() in /extensions/ext.sitemap_pinger.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /extensions/ext.sitemap_pinger.php:39) in /core/core.functions.php on line 296

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey guys,

One of the issues is that Site Map Pinger is not checking if a $_SESSION has already started. This can be resolved by adding:

if (session_id() == "") session_start(); // if no active session we start a new one

Cheers Leevi

       
Ben @PutYourLightsOn's avatar
Ben @PutYourLightsOn
295 posts
17 years ago
Ben @PutYourLightsOn's avatar Ben @PutYourLightsOn

you can add the above line of code to line 39 of ext_sitemap_pinger.php to solve the issue. i will add it to the current version.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Thanks Ben

       
Ben @PutYourLightsOn's avatar
Ben @PutYourLightsOn
295 posts
17 years ago
Ben @PutYourLightsOn's avatar Ben @PutYourLightsOn

thanks leevi, and well done on an excellent polls module!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey therooster,

Any chance of getting this thread title updated to: “SOLVED: Site Map and LG Poll module don’t place nice together” ?

Cheers

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

I’ll test today and let you know the results.

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

I get this error when testing:

“A session had already been started - ignoring session_start() in extensions/ext.sitemap_pinger.php on line 153”

This is what my updated ext.sitemap_pinger.php line 39 looks like

// start session
            if (session_id() == "") session_start(); // if no active session we start a new one 
            $_SESSION['sitemap_pinger'] = array();
       
Ben @PutYourLightsOn's avatar
Ben @PutYourLightsOn
295 posts
17 years ago
Ben @PutYourLightsOn's avatar Ben @PutYourLightsOn

oops i forgot to mention that the condition also needs to be added on line 153

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
17 years ago
the_crimsonrooster's avatar the_crimsonrooster

I downloaded the newest update from your site and everything appears to be working. Let me work with both a little more and if all goes well, I’ll update the title. Also, the previous problem seemed to be killing the “Restricted Entries” ext, but now all seems to be working fine.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.