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.


Trying to create a custom points purchasable item

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#89011 (In Topic #18020)

Non-joined user

Hi guys n gals,
I'm trying to create or play around with the custom points store items.

To get to grips with it all, I create a "buy to like" item, the more you purchase the more you "like" my site.

I select the item, click proceed, then it all goes pear shaped....

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 NOTICE [8] Undefined index: c_mail_subject in sources/hooks/modules/pointstore/custom.php on line 259 (version: 9-beta2, PHP version: 5.3.13, URL: /index.php?page=pointstore&type=action_done&id=custom&sub_id=1)

Stack trace…

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: c_mail_subject in sources/hooks/modules/pointstore/custom.php on line 259 (version: 9-beta2, PHP version: 5.3.13, URL: /index.php?page=pointstore&type=action_done&id=custom&sub_id=1)', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 1011
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: c_mail_subject in sources/hooks/modules/pointstore/custom.php on line 259', )

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 220
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: c_mail_subject in sources/hooks/modules/pointstore/custom.php on line 259', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 874
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'notice', 1 => 8, 2 => 'Undefined index: c_mail_subject', 3 => 'sources/hooks/modules/pointstore/custom.php', 4 => 259, )

File -> '/home/rbcjhubc/public_html/sources/hooks/modules/pointstore/custom.php'
Line -> 259
Function -> 'ocportal_error_handler'
Args -> array

Function -> 'action_done'
Class -> 'Hook_pointstore_custom'
Object -> Hook_pointstore_custom::__set_state(array( ))
Type -> '->'
Args -> array ( )

File -> '/home/rbcjhubc/public_html/site/pages/modules/pointstore.php'
Line -> 236
Function -> 'call_user_func'
Args -> array ( 0 => array ( 0 => Hook_pointstore_custom::__set_state(array( )), 1 => 'action_done', ), )

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

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

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

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

also, does not give an option when creating it, to purchase multipul, just the 1...

Kindest Regards
Roy n Dave
Back to the top
 
Posted
Rating:
#89099
Avatar

To be clear, this is a v9 beta bug. I think this will fix it:

Attachment
sources/hooks/modules/pointstore/custom.php
» Download: custom.php (11 Kb, 55 downloads so far)


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:
#89107

Non-joined user

Hi Chris
Sadly it did work :(

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 NOTICE [8] Undefined index: cp_mail_body in sources/hooks/modules/pointstore/custom.php on line 262 (version: 9-beta2, PHP version: 5.3.13, URL: /index.php?page=pointstore&type=action_done&id=custom&sub_id=2)

Stack trace…

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: cp_mail_body in sources/hooks/modules/pointstore/custom.php on line 262 (version: 9-beta2, PHP version: 5.3.13, URL: /index.php?page=pointstore&type=action_done&id=custom&sub_id=2)', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 1011
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: cp_mail_body in sources/hooks/modules/pointstore/custom.php on line 262', )

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 220
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined index: cp_mail_body in sources/hooks/modules/pointstore/custom.php on line 262', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 874
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'notice', 1 => 8, 2 => 'Undefined index: cp_mail_body', 3 => 'sources/hooks/modules/pointstore/custom.php', 4 => 262, )

File -> '/home/rbcjhubc/public_html/sources/hooks/modules/pointstore/custom.php'
Line -> 262
Function -> 'ocportal_error_handler'
Args -> array

Function -> 'action_done'
Class -> 'Hook_pointstore_custom'
Object -> Hook_pointstore_custom::__set_state(array( ))
Type -> '->'
Args -> array ( )

File -> '/home/rbcjhubc/public_html/site/pages/modules/pointstore.php'
Line -> 236
Function -> 'call_user_func'
Args -> array ( 0 => array ( 0 => Hook_pointstore_custom::__set_state(array( )), 1 => 'action_done', ), )

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

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

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

File -> '/home/rbcjhubc/public_html/index.php'
Line -> 105
Function -> 'do_site'
Args -> array ( )
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89109
Avatar

Attachment
» Download: custom.php (11 Kb, 52 downloads so far)


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
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#89110

Non-joined user

Hi and thank you Chris,
It works perfectly.

Kindest Regards
Roy n Dave
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: