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.


Edit profile giving error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100623 (In Topic #19757)
Avatar

Fan in action

Hi Guys,
           So I have installed OCRewards and it is working ok so far, except now I get this message when I go to edit mine, or anyone elses profile:

Programming error: Integers and/or floats should not be passed into templates (SELECTED): convert them to strings via integer_format/float_format/strval.

I have tried to fix the profile editing as shown in http://ocportal.com/forum/topicview/misc/website-comments/ocrewards.htm?post_id=99481#post_99481

however I am having no luck.

What should I do?

Kind Regards,
Wal
Back to the top
 
Posted
Rating:
#100624
Avatar

Fan in action

Stack trace…

File -> '/home4/tryhomes/public_html/sources/failure.php'
Line -> 796
Function -> 'die_html_trace'
Args -> array

File -> '/home4/tryhomes/public_html/sources/global.php(210) : eval()\'d code'
Line -> 1042
Function -> '_fatal_exit'
Args -> array

File -> '/home4/tryhomes/public_html/sources/failure.php'
Line -> 244
Function -> 'fatal_exit'
Args -> array

File -> '/home4/tryhomes/public_html/sources/global.php(210) : eval()\'d code'
Line -> 1002
Function -> '_generic_exit'
Args -> array

File -> '/home4/tryhomes/public_html/sources/tempcode.php'
Line -> 1499
Function -> 'warn_exit'
Args -> array

File -> '/home4/tryhomes/public_html/sources/tempcode.php'
Line -> 608
Function -> 'bind'
Class -> 'ocp_tempcode'
Object -> object
Type -> '->'
Args -> array ( 0 => array ( '_GUID' => 'dd76a2685d0fba5f819ef160b0816d03', 'SELECTED' => 0, 'DISABLED' => false, 'CLASS' => '', 'NAME' => '3', 'TEXT' => '1 Year', ), 1 => 'FORM_SCREEN_INPUT_LIST_ENTRY', )

File -> '/home4/tryhomes/public_html/sources/templates.php'
Line -> 270
Function -> 'do_template'
Args -> array ( 0 => 'FORM_SCREEN_INPUT_LIST_ENTRY', 1 => array ( '_GUID' => 'dd76a2685d0fba5f819ef160b0816d03', 'SELECTED' => 0, 'DISABLED' => false, 'CLASS' => '', 'NAME' => '3', 'TEXT' => '1 Year', ), )

File -> '/home4/tryhomes/public_html/sources_custom/hooks/systems/pr
ofiles_tabs_edit/rewards.php'
Line -> 78
Function -> 'form_input_list_entry'
Args -> array ( 0 => '3', 1 => 0, 2 => '1 Year', )

File -> '/home4/tryhomes/public_html/sources/hooks/systems/profiles_
tabs/edit.php'
Line -> 82
Function -> 'render_tab'
Class -> 'Hook_Profiles_Tabs_Edit_rewards'
Object -> Hook_Profiles_Tabs_Edit_rewards::__set_state(array( ))
Type -> '->'
Args -> array ( 0 => 2, 1 => 2, 2 => false, )

File -> '/home4/tryhomes/public_html/sources/hooks/systems/snippets/
profile_tab.php'
Line -> 51
Function -> 'render_tab'
Class -> 'Hook_Profiles_Tabs_edit'
Object -> Hook_Profiles_Tabs_edit::__set_state(array( ))
Type -> '->'
Args -> array ( 0 => 2, 1 => 2, )

File -> '/home4/tryhomes/public_html/sources/ajax.php'
Line -> 540
Function -> 'run'
Class -> 'Hook_profile_tab'
Object -> Hook_profile_tab::__set_state(array( ))
Type -> '->'
Args -> array ( )

File -> '/home4/tryhomes/public_html/data/snippet.php'
Line -> 37
Function -> 'snippet_script'
Args -> array ( )
Back to the top
 
Posted
Rating:
#100630
Avatar

Hi,

I believe this is what I found and commented on here:
OCRewards - ocPortal.com

(It's not an official addon and not in git, so I'm not maintaining myself – but I noticed the issue when working with a customer using the addon)


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:
#100631
Avatar

Fan in action

ill play around with it tomorrow although I may have to restore to earlier.
Back to the top
 
Posted
Rating:
#100632
Avatar

Fan in action

just uninstalled the addon....to much of a hassle. Where can I find the official addons?
Back to the top
 
Posted
Item has a rating of 5 (Liked by Walbertross)  
Rating:
#100633
Avatar

Okay, official addon isn't actually a term we use formally.

There are the bundled addons which come built into ocPortal and can be uninstalled/installed as you like, and are upgraded as a part of the product.

Then, there are non-bundled addons, some of which are being maintained by ocProducts, some of which are not. Some of them are maintained to a high quality and aren't bundled because they'd break our partisan policies (e.g. Facebook support, or Twitter support), or for licensing reasons (e.g. Plupload), or don't quite meet our core standard yet (e.g. Activities [relies on Javascript]).


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:
#100641
Avatar

Fan in action

ahh no dramas thanks for that chris!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: