An error occurred at /admin/build/views/ajax/preview/admin_content.
Error Description:
Fatal error: Call to undefined function panels_print_layout() in /home/xxxx/html/sites/all/modules/views_bonus/panels/views_bonus_panels.module on line 20
Help please I don't what happened
Comments
Comment #1
sdboyer commentedFor now, copy/paste this into your
panels.modulefile:Do not include the
<?phpor?>tags.We will figure out a better, more permanent solution shortly.
Comment #2
michelleThanks, sdboyer. I took a risky chance and upgraded my live site without testing first and ouch! I do have a backup but this works much nicer than reverting to the insecure version. :)
Michelle
Comment #3
joshua.stout commentedThanks! This fixed the error for me as well. Great timing!
Comment #4
venusrising commentedI decided to roll back Ctools and panels until this is fixed. Is this an okay solution instead of hacking the module file? Since Ctools and Panels work in tandem it seems Ctools needs to be sorted out prior to moving forward What are your thoughts?
Comment #5
planstoprosper commentedThank you! This seems to fix the error just fine for me.
Comment #6
jessicakoh commentedThank you, sdboyer.
Comment #7
W.M. commentedI get a similar error but with "panels_load_include()":
Fatal error: Call to undefined function panels_load_include() in home/000/public_html/sites/all/modules/views_bonus/panels/views_bonus_panels.module on line 18
What change, as in #1, I need to make to "panels.module" to solve this issue?!
Note: I have latest dev versions of Panels & Ctools downloaded yesterday.
Comment #8
gozigzag commentedI'm not sure what's going on...the first time I tried the fix in #1 it worked fine and displayed my views_bonus_pack panels normally. But, I wanted to retest before putting it on my live server. And now I cannot get my views_bonus_pack panels to display. I upgrade to Panels 6.x-3.4, then add the patch in #1, and it no longer displays any errors, but simply does not display my views on the page.
Comment #9
gozigzag commentedproblem solved- I just had not upgraded ctools yet, where I had the 1st time. Fix in #1 seems to be working now.
Comment #10
Ole Martin commentedI have updated all modules and is then received this error. I copied the code at the end of "panels.module", but now receive this error: Parse error: syntax error, unexpected '<' in /home/xxxxx/public_html/xxxxx/sites/all/modules/panels/panels.module on line 1047
What can I do about this?
Comment #11
merlinofchaos commentedWhen pasting the code, do not include the
<?phpor?>tags.Comment #12
Ole Martin commentedI did, but still errors.
Comment #13
merlinofchaos commentedWell, the error you got suggests there is a stray
<at the line that it mentions. It's hard to tell what you actually did, but my guess is cut & paste error.Comment #14
Ole Martin commentedI delete everything and started from the start again, and now it seems to work well. But I having trouble entering blocks in Panels. It stands and loads and loads, until I re-load the page. Then I can see the block and save it. All other things seem to be working fine.
Thank you for your help.
Comment #15
merlinofchaos commentedSee http://drupal.org/node/804198 for that one
Comment #16
sdboyer commentedOK, the function has been restored in panels.module (though it's been marked deprecated), so this'll be included in the patchup release I'm making presently.
Comment #17
hawkdrupal commentedI had the same problem, took down most of my site. My fix was to revert to Panels 3.3.
It seems this function can't be deprecated since other modules (presumably Views) rely on it.