HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Error when trying to view a profile after gift given

Login / Search

 [ Join | More ]
 Add topic 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89479 (In Topic #18086)
Avatar

Fan in action

Hi,
I purchased a "gift" through the Gifts addon.
After I purchased and allocated to a member/user, I wanted to check their profile.
After clicking the username I got...

Critical error – bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/lang.php on line 948 (version: 9.0, PHP version: 5.3.13, URL: /index.php?page=members&type=view&id=caitlin)

Stack trace…

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/lang.php on line 948 (version: 9.0, PHP version: 5.3.13, URL: /index.php?page=members&type=view&id=caitlin)', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 1007
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/lang.php on line 948', )

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 220
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/lang.php on line 948', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 870
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'error', 1 => 4096, 2 => 'Object of class ocp_tempcode could not be converted to string', 3 => 'sources/lang.php', 4 => 948, )

Function -> 'ocportal_error_handler'
Args -> array

File -> '/home/rbcjhubc/public_html/sources/lang.php'
Line -> 948
Function -> 'str_replace'
Args -> array

File -> '/home/rbcjhubc/public_html/sources/lang.php'
Line -> 43
Function -> '_do_lang'
Args -> array

File -> '/home/rbcjhubc/public_html/sources_custom/hooks/modules/members/gifts.php'
Line -> 60
Function -> 'do_lang'
Args -> array

File -> '/home/rbcjhubc/public_html/sources/hooks/systems/profiles_tabs/about.php'
Line -> 138
Function -> 'get_sections'
Class -> 'Hook_members_gifts'
Object -> Hook_members_gifts::__set_state(array( ))
Type -> '->'
Args -> array ( 0 => 4, )

File -> '/home/rbcjhubc/public_html/sources/ocf_profiles.php'
Line -> 49
Function -> 'render_tab'
Class -> 'Hook_Profiles_Tabs_about'
Object -> Hook_Profiles_Tabs_about::__set_state(array( ))
Type -> '->'
Args -> array ( 0 => 4, 1 => 2, 2 => true, )

File -> '/home/rbcjhubc/public_html/site/pages/modules/members.php'
Line -> 316
Function -> 'render_profile_tabset'
Args -> array ( 0 => 4, 1 => 2, 2 => 'caitlin', )

File -> '/home/rbcjhubc/public_html/site/pages/modules/members.php'
Line -> 104
Function -> 'profile'
Class -> 'Module_members'
Object -> Module_members::__set_state(array( ))
Type -> '->'
Args -> array ( )

File -> '/home/rbcjhubc/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'Module_members'
Object -> Module_members::__set_state(array( ))
Type -> '->'
Args -> array ( )

File -> '/home/rbcjhubc/public_html/sources/site.php'
Line -> 838
Function -> 'load_module_page'
Args -> array ( 0 => 'site/pages/modules/members.php', 1 => 'members', )

File -> '/home/rbcjhubc/public_html/sources/site.php'
Line -> 629
Function -> 'request_page'
Args -> array ( 0 => 'members', 1 => true, )

File -> '/home/rbcjhubc/public_html/index.php'
Line -> 97
Function -> 'do_site'
Args -> array ( )

Cant even reverse transaction... :o(

Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by psydoc)  
Rating:
#89497
Avatar

Hi,

Does this fix it?

Attachment
sources/forum_stub.php
» Download: forum_stub.php (15 Kb, 92 downloads so far)


(this fixes a flaw in the "Clicking a username starts an IM" option)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#89504
Avatar

Fan in action

it do, it do...
Thank you very muchly

Roy

Be gentle, I'm new to this :)
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: