Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventListener & Command Line Dumper #47

Closed
aur1mas opened this issue Jan 22, 2014 · 7 comments · Fixed by #48
Closed

EventListener & Command Line Dumper #47

aur1mas opened this issue Jan 22, 2014 · 7 comments · Fixed by #48

Comments

@aur1mas
Copy link

aur1mas commented Jan 22, 2014

Could you please provide more info how to setup EventListener & Dumper Command?

I did everything exactly as written in documentation: https://github.com/prestaconcept/PrestaSitemapBundle/blob/master/Resources/doc/5-Usage-Event_Listener.md

But everytime ir run:
php app/console presta:sitemaps:dump

get error:

No URLs were added to sitemap by EventListeners - this may happen when provided section is invalid

How can I attach event listener that it would be executed?

@halundraN
Copy link
Member

Hi,
Thank for using your bundle.

I don't see anything else to configure.
I got the same error when I didn't register the listener with the tag: "presta.sitemap.listener" ?

Maybe a concrete exemple of PrestaSitemapBundle can help.
You can see it in your sandbox: https://github.com/prestaconcept/prestacms-sandbox

A listener is defined in the https://github.com/prestaconcept/PrestaCMSSitemapBridgeBundle.

@Koc
Copy link
Contributor

Koc commented Jan 29, 2014

@aur1mas Can you check referenced PR? Is it solve you problem?

@aur1mas
Copy link
Author

aur1mas commented Jan 30, 2014

Ok, I'll check later today

@aur1mas
Copy link
Author

aur1mas commented Feb 3, 2014

@Koc yes, this PR solves the problem.

halundraN added a commit that referenced this issue Feb 3, 2014
Fix AddSitemapListenersPass (possible fix for #47)
@halundraN
Copy link
Member

Hi,
The PR #48 was merge.

@aur1mas Is it ok for you ?

@aur1mas
Copy link
Author

aur1mas commented Mar 4, 2014

yes, everything works fine.

p.s. sorry for late reply. Message got lost in my emails :/

@halundraN
Copy link
Member

No problem, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants