Closed (fixed)
Project:
Popup
Version:
6.x-3.22
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2011 at 09:29 UTC
Updated:
22 Aug 2012 at 00:48 UTC
Hi,
I just installed the module, activated the block pop up module and activated the checkbox for a block to show it in a popup. Since then I get a WSOD showing the above error message.
Best,
Tobias
Comments
Comment #1
Road Kill commentedYip get the same WSOD. I applied it to a block and it just dies.
Comment #2
hackvier commentedsubscribing
Comment #3
m-si commentedsubscribing
Comment #4
Josephnewyork commentedMe too... subscribing
Comment #5
Josephnewyork commentedOK, here is the deal. The popup_block_preprocess_block() is being fired before the popup.api.inc is loaded.
To fix:
At: popup/modules/popup_block/popup_block.module:87
Add:
Right before popup_element() is called.
This will make sure this doesn't happen again.
Comment #6
michaelsilverman commentedJoe - thanks for the fix just started to use this module and after receiving the error found and installed this patch. All seem to be going well.
Comment #7
Creators.guru commentedthanks for helping
can you refer me some other cool modules for creating better website
Comment #8
ari-meetai commentedThis works as stated. It can be committed.
Comment #9
sdsheridanChanging title back, as "thanks bhaji" isn't too helpful in finding issues...
Also, a better fix would be to include the line
at the beginning of the function, as we know we'll need it anyway.
Shawn
Comment #10
msbjhandeer commentedGreat help, it worked. thanx..
Comment #11
Rameez commentedWorked nicely. ... i wonder why it's not committed to stable release yet. thanks for help
Comment #12
Scheepers de Bruin commentedThanks all, this'll be in the next release.
Comment #13
codigovision commentedI agree with others, this should be committed to the current release. I think it's important enough to constitute a 3.23 release. Thanks for the module.
Comment #14
pitxels commentedAlso this breaks the hole site, should be critical, just saying
Comment #15
drummondf commentedI tried the fix in Comment #5 but then get this response:
Parse error: syntax error, unexpected '<' in /sites/all/modules/popup/modules/popup_block/popup_block.module on line 87
Please advise
Comment #16
michlis commentedHi Eric,
Seems like you have included PHP opening tag, right? It's not needed and gives PHP error. Add just one line:
at the beginning of function, so it will look like:
Comment #17
drummondf commentedLike a charm, thanks Michlis!
ATTN ALL w/ this issue: use solution #16
Comment #19
Encarte commentedTo be fixed, this issue first needs a patch and then the patch must be reviewed and committed. Until then, the problem persists on the downloadable version and the solution in this issue is just a workaround.
Comment #20
Scheepers de Bruin commentedThanks all, fix in new release