power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

[Notice] Array to string conversion (@line 416 in file .../framework/Web/UI/TClientScriptManager.php #447

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use CSS autoloading via the themes folder

2. Manually add a TStyleSheeit, e.g.
<com:TStyleSheet 
StyleSheetUrl="https://fonts.googleapis.com/css?family=Alfa+Slab+One|Ubuntu:300,
400,500,700" />

3. There are issues with onCallback processing.

X-PRADO-ERROR: 
{"code":500,"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/PradoBase.ph
p","line":136,"trace":
[{"function":"phpErrorHandler","class":"PradoBase","type":"::","args":[8,"Array 
to string 
conversion","\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/TClientScr
iptManager.php",416,{"stylesheets":["https:\/\/fonts.googleapis.com\/css?family=
Alfa+Slab+One|Ubuntu:300,400,500,700",["\/frontend\/themes\/frontend\/jquery-sel
ectbox.screen.css","screen"],["\/frontend\/themes\/frontend\/slimbox2.screen.css
","screen"],"\/frontend\/themes\/frontend\/style.css"],"path":"\/data\/www\/dumm
y\/web\/ipax-dummy\/framework\/Web\/Javascripts\/source","url":"\/frontend\/asse
ts\/33e6291e"}]},

{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/TClientScriptM
anager.php","line":416,"function":"array_unique","args":[["https:\/\/fonts.googl
eapis.com\/css?family=Alfa+Slab+One|Ubuntu:300,400,500,700",["\/frontend\/themes
\/frontend\/jquery-selectbox.screen.css","screen"],["\/frontend\/themes\/fronten
d\/slimbox2.screen.css","screen"],"\/frontend\/themes\/frontend\/style.css"]]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/ActiveControls
\/TActivePageAdapter.php","line":211,"function":"getStyleSheetUrls","class":"TCl
ientScriptManager","type":"->","args":[]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/ActiveControls
\/TActivePageAdapter.php","line":136,"function":"renderResponse","class":"TActiv
ePageAdapter","type":"->","args":[{}]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/TPage.php","li
ne":366,"function":"renderCallbackResponse","class":"TActivePageAdapter","type":
"->","args":[{}]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/TPage.php","li
ne":198,"function":"processCallbackRequest","class":"TPage","type":"->","args":[
{}]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/Services\/TPageSer
vice.php","line":524,"function":"run","class":"TPage","type":"->","args":[{}]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/Services\/TPageSer
vice.php","line":470,"function":"runPage","class":"TPageService","type":"->","ar
gs":[{},{"MasterClass":"Application.Pages.LayoutControlPanel","Theme":"frontend"
}]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/TApplication.php","line
":1189,"function":"run","class":"TPageService","type":"->","args":[]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/framework\/TApplication.php","line
":406,"function":"runService","class":"TApplication","type":"->","args":[]},
{"file":"\/data\/www\/dummy\/web\/ipax-dummy\/frontend\/index.php","line":16,"fu
nction":"run","class":"TApplication","type":"->","args":[]}],
"type":"TPhpErrorException","message":"[Notice] Array to string conversion 
(@line 416 in file 
\/data\/www\/dummy\/web\/ipax-dummy\/framework\/Web\/UI\/TClientScriptManager.ph
p).","version":"nginx 3.2.1","time":"2013-03-13 11:43"}
Content-Type: text/html;charset=UTF-8

Original issue reported on code.google.com by ra...@bhatia.at on 13 Mar 2013 at 10:51

GoogleCodeExporter commented 8 years ago
Inspecting the $stylesheets variable. You can see that some stylesheets include 
the media type as well.

Original comment by ra...@bhatia.at on 13 Mar 2013 at 11:46

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r3280, thank you

Original comment by ctrlal...@gmail.com on 13 Mar 2013 at 8:20