Closed (fixed)
Project:
Webform
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2010 at 18:49 UTC
Updated:
7 Apr 2010 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchI'm assuming that line 941 is part of the t() function? Giving the line contents are often more helpful, since what line 941 is depends on when you downloaded the dev version.
This is usually caused by an incorrect call to t(). From the error it sounds like there might be a call that is passing an array into t(), such as
t(array('something')). However I reviewed the admin/content/webform page and I couldn't find any place where this might be the case. It also doesn't look like it would be an error at least *caused* by PHP 5.3, though I do not think 5.2 would report that error. I can't confirm it in any way though, do you have any blocks on that page? It might be caused by a block or something in your theme rather than what Webform is outputting. Try switching to Garland and see if the page works properly.Comment #2
hawleyal commentedSorry, I didn't notice the error was in a core file.
Is there a way to get a stack trace, so I can see the caller?
Line 941
Function
Comment #3
quicksketchIf you have devel module enabled, my favorite way of getting a stack track is
dsm(debug_backtrace());. debug_backtrace() is a PHP function.Comment #4
hawleyal commentedwell, i coulda guessed.
wasn't sure if that would give me all i needed.
thanks.
Comment #5
quicksketchI think I found the source of this problem while working on the Drupal 7 version. It looks like we've simply passed an array into url() (which ultimately must run through t() at some point). I reproduced the problem and this patch seems to fix it. Please reopen if the issue persists after this patch.
Comment #6
quicksketchPardon, it looks like we were passing in an array into t() instead of the result of url(). Sort of like I suggested in #1. The patch in #5 has been committed.