github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

symfony / symfony

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 1,061
    • 191
  • Source
  • Commits
  • Network
  • Pull Requests (3)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Graph
  • Members

brtriver wants someone to pull 1 commit into symfony:master from brtriver:bugfix-webprofiler

  • Discussion
  • Commits 1
  • Files Changed 1
  • Reply

Showing 0 comments with 1 commit and 0 commit comments

#15 Closed

Bugfix webprofiler

brtriver — Fri Oct 08 05:14:42 -0700 2010

I caught an error in WebProfiler page like below.

Fatal error: Call to a member function getRawValue() on a non-object in /path-to-sandbox/src/vendor/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php on line 45

When the session attributes don't exist, $data->sessionAttributes->getRawValue() cannot be called as not being defined.
So I added the check whether the session attributes exist or not before calling getRawValue().

brtriver added some commits

Fri Oct 08 05:02:02 -0700 2010

105cf68 fixed: fixed the bug of request_panel.php in WebProfiler

Comment on this pull request

You must be logged in to comment on pull requests.

Active Participants

  • brtriver

Showing 1 unique commit by 1 author.

105cf682 brtriver fixed: fixed the bug of request_panel.php in WebProfiler Fri Oct 08 05:02:02 -0700 2010

Showing 1 changed files with 3 additions and 1 deletion.

M src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php 4 ••••
Txt src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php
  • View file @ 4027f75
... ...
@@ -42,7 +42,8 @@
42 42
         <th>Value</th>
43 43
     </tr>
44 44
 
45  
-    <?php foreach ($data->getSessionAttributes()->getRawValue() as $key => $value): ?>
  45
+    <?php if (count($sessionAttributes = $data->getSessionAttributes())):?>
  46
+    <?php foreach ($sessionAttributes->getRawValue() as $key => $value): ?>
46 47
         <tr>
47 48
             <th><?php echo $key ?></th>
48 49
             <td>
... ...
@@ -58,4 +59,5 @@
58 59
             </td>
59 60
         </tr>
60 61
     <?php endforeach; ?>
  62
+    <?php endif; ?>
61 63
 </table>
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • Русский
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Русский
  • Српски
  • Svenska
  • 中文

Keyboard Shortcuts

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down