Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Price by Quantity Threshold Fieldtype errors
Posted: 14 June 2012 10:01 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

Hi,

I’m trying to use the Price by Quantity Threshold Fieldtype http://cartthrob.com/docs/fieldtypes/price_quantity_threshold/index.html
Once I add the fieldtype to my channel and try to add/edit a product, I get a bunch of errors.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: entry_id
Filename: fieldtypes/ft.cartthrob_matrix.php
Line Number: 700

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at .../system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 770

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at .../system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 393

When I come back to the edit screen, the correct values are there. If I hit submit again, I still get the errors.

Also, when I use the tag in my template, I get the following errors.

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Cartthrob_price_quantity_thresholds_ft::$prefix_only
Filename: fieldtypes/ft.cartthrob_matrix.php
Line Number: 615

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Cartthrob_price_quantity_thresholds_ft::$prefix_only
Filename: fieldtypes/ft.cartthrob_matrix.php
Line Number: 615

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at .../system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 409

Fatal error: ob_start() [ref.outcontrol]: Cannot use output buffering in output buffering display handlers in .../system/codeigniter/system/core/Exceptions.php on line 166

Thanks

 

Profile
 
 
Posted: 14 June 2012 11:13 AM   [ Ignore ]   [ # 1 ]
Wallflower
Rank
Total Posts:  28
Joined  2012-06-13

In the default install of the templates, main cart page displays following php error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Cartthrob_package_ft::$prefix_only
Filename: fieldtypes/ft.cartthrob_matrix.php
Line Number: 615

It happens when displaying packages with following code:

{packages_packages}
{title}<br /> 
{/packages_packages} 
Profile
 
 
Posted: 14 June 2012 10:57 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10240
Joined  2008-09-29

Make sure line 40 of ft.cartthrob_matrix.php in cartthrob > field types looks like this:

public $prefix_only FALSE

 

at sometime it was prefixed_only or something ilke that. I know we corrected it, but I’m not sure if it’s made it out into the general release. Start with that fix. Log out and back in and try again. It might not fix everything, but lets start there.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 17 June 2012 02:05 PM   [ Ignore ]   [ # 3 ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

This didn’t seem to fix it.
Also, it now happens when I submit on any channel. Even ones that have nothing to do with Cartthrob.

Profile
 
 
Posted: 18 June 2012 02:33 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Same exact errors?

Profile
 
 
Posted: 18 June 2012 02:37 PM   [ Ignore ]   [ # 5 ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

Yes it is.

Profile
 
 
Posted: 18 June 2012 02:45 PM   [ Ignore ]   [ # 6 ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

Removing the custom field from the CT Product custom field group gets rid of the errors.

I still can’t use the field, though.
However, it’s not a priority right now. I’ll be talking to Chris tomorrow about custom work anyway. I won’t end up using this fieldtype.

Profile
 
 
Posted: 19 June 2012 04:58 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10240
Joined  2008-09-29

I made a fix, which should correct this error. Even though the issue’s now moot for you, I thought I’d post it in here for posterity’s sake.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 05 July 2012 07:57 AM   [ Ignore ]   [ # 8 ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

What’s the fix?

Profile
 
 
Posted: 05 July 2012 10:26 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10240
Joined  2008-09-29

Hah. It’s been 3 weeks. I don’t recall. Whatever it was, I put it into the core. Rob was supposed to roll up a new version on Monday, but I don’t think he did yet. It’ll be included in 2.1.4+

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile