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

Allowed memory size of 109051904 bytes exhausted #146

Closed
Valendus opened this issue Feb 13, 2014 · 10 comments
Closed

Allowed memory size of 109051904 bytes exhausted #146

Valendus opened this issue Feb 13, 2014 · 10 comments

Comments

@Valendus
Copy link

After update to 2.2.1 from 2.2.0 -->
Hi, in combination with any "custom sidebar" (e.g. per page sidebars, simple page sidebar, content aware sidebars) plugin the following error occures. My memory_limit is 104MB. Other lightboxes work without errors in comination with the sidebar pluins, but I'd like to use your simple lightbox, because it's the best. So maybe you can fix this issu or give a workarround. It's not possible for me to raise the memory_limit.

Fatal error: Allowed memory size of 109051904 bytes exhausted (tried to allocate 40961 bytes) in /mnt/webb/e0/92/51420392/htdocs/cms/wp-content/plugins/simple-lightbox/controller.php on line 1232

@archetyped
Copy link
Owner

Thanks for the report. Are you using a specific plugin for custom sidebars?

@Valendus
Copy link
Author

I'm using "content aware sidebars", but tried the others too. Always the same error. Now i rolled back to 2.2.0 and everythings fine for now. I'm using it with graphene-theme. If you find out whats going wrong, please still tell me.

@majekw
Copy link

majekw commented Feb 15, 2014

I have the same issue with 2.2.1 on WP 3.8.1, I use 'Content Aware Sidebars' and problem occurs only on pages where this sidebar is active.
I tried to rise memory limit but it didn't help.

PHP Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 40961 bytes) in ...wp-content/plugins/simple-lightbox/controller.php on line 1232

@archetyped
Copy link
Owner

Thanks for the additional information @Valendus & @majekw. Looking into this.

archetyped added a commit that referenced this issue Feb 19, 2014
* Disable output buffering when widget processing disabled
* Ref: #146
archetyped added a commit that referenced this issue Feb 19, 2014
@archetyped
Copy link
Owner

@Valendus & @majekw SLB v2.2.2 (Beta 1) includes a small workaround while the issue is evaluated further.

Disabling SLB's Enable for Widgets option should bypass additional widget processing and thus resolve memory limit issues.

Please test 2.2.2 (Beta 1) and confirm whether disabling widget activation resolves the memory limit issue.

Download: 2.2.2 (Beta 1)

@Valendus
Copy link
Author

@archetyped I tested SLB v2.2.2 (Beta 1). No matter "Enable for Widgets" is enabled or disabled, SLB is working fine. I also tried to put a picture in a widget and it opend well with SLB, without any errors so far.

@archetyped
Copy link
Owner

Hmmm, that's strange, but good I guess ;)

There are further performance optimizations planned, but if this gets you up and running, then all the better.

BTW, what themes are you all using? This may also affect the memory usage.

@2braincells2go
Copy link

2.2.2 (Beta 1) fixed my issues WITHOUT disabling "enable for widgets".

Many thanks, was looking for replacement and hated to do that.

@majekw
Copy link

majekw commented Feb 20, 2014

v2.2.2 (Beta 1) works for me with and without 'enable for widgets'. Thanks.

@archetyped
Copy link
Owner

Thanks for the updates everyone!

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

No branches or pull requests

4 participants