Page 1 of 2

zend_mm_heap corrupted

Posted: Thu Jan 07, 2010 1:30 pm
by drsceifers
How do I debug this?

1.6.6 "Bonde" Orders 1.6.12, Products 2.4.6, Cart 1.4.2, Cgextensions 1.17.6, CGPaymentGatewayBase 1.0.3, , FEU 1.6.11, PayPalGateway 2.1.4, PriceBasedShipping 1.0.2, SelfRegistration 1.2.5, warehouse_taxes 1.1

I can add products, view the cart. When I go to the checkout (orders page) I get the billing info screen, but no fields from Shipping and obviously no Next button.

Does anyone know how I can tell what is really wrong?

Will debug mode help at all? I would have thought PHP would have told me if I had a problem in code.

ThanksI'm desparate (Angry client)
Don

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 2:02 am
by drsceifers
This is the line in the template that it dies on:

{assign var='addr' value=$one->get_shipping_address()}

Any ideas?

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 2:23 am
by drsceifers
I turned on debug and got these messages:

Notice: Use of undefined constant ADDR_POLICY_LAST - assumed 'ADDR_POLICY_LAST' in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/action.default.php on line 135

Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115
Notice: Undefined index: -1 in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.order_maker.php on line 115

Notice: Only variable references should be returned by reference in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/lib/class.orders_ops.php on line 45

Notice: Undefined variable: billing_addr in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/action.default.php on line 157

Notice: Object of class orders_address could not be converted to int in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/action.default.php on line 157

Notice: Undefined variable: promotions_module in /hsphere/local/home/c63396/millenniumlightingonline.com/modules/Orders/action.default.php on line 374

Fatal error: Call to a member function get_shipping_address() on a non-object in /hsphere/local/home/c63396/millenniumlightingonline.com/tmp/templates_c/Orders^%%5D^5D0^5D08133E%%module_db_tpl%3AOrders%3Bbillingform_Sample.php on line 65

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 2:37 am
by Jeff
drsceifers wrote: This is the line in the template that it dies on:

{assign var='addr' value=$one->get_shipping_address()}

Any ideas?
You have a problem with your template. Please post it and/or try the default and see if you still have the problem.

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 2:41 am
by drsceifers
I'm pretty sure this is the default one:

between the lines:
---------------------------------------------------
{* billing form template *}
{* this is a frontend template *}
{if $logged_in}
{$Orders->Lang('order_processing')}:
{if isset($status)}
  {* there is an error of some type.... you can check the $status variable for the type of error *}
 
 
  {foreach from=$errors item='error'}
    {$error}
  {/foreach}
 
 
{/if}

{$formstart}


{$Orders->Lang('billing_info')}:
{$Orders->Lang('first_name')}:* {$input_billing_first_name}

{$Orders->Lang('last_name')}:* {$input_billing_last_name}

{$Orders->Lang('address1')}:* {$input_billing_address1}

{$Orders->Lang('address2')}: {$input_billing_address2}

{$Orders->Lang('city')}:* {$input_billing_city}

{$Orders->Lang('state/province')}:* {$input_billing_state}

{$Orders->Lang('postal')}:* {$input_billing_postal}

{$Orders->Lang('country')}:* {$input_billing_country}

{$Orders->Lang('phone')}: {$input_billing_phone}

{$Orders->Lang('fax')}: {$input_billing_fax}

{$Orders->Lang('email')}: {$input_billing_email}




{foreach from=$shipping_inputs item=one}
don
{assign var='addr' value=$one->get_shipping_address()}
don2

{if $shipping_count == 1}{$Orders->Lang('shipping_info_if_different')}:{else}{$Orders->Lang('shipping_info_for')}: {$one.data->get_name()}{/if} ;
{$Orders->Lang('first_name')}:* {$one.input_first_name}

{$Orders->Lang('last_name')}:* {$one.input_last_name}

{$Orders->Lang('address1')}:* {$one.input_address1}

{$Orders->Lang('address2')}: {$one.input_address2}

{$Orders->Lang('city')}:* {$one.input_city}

{$Orders->Lang('state/province')}:* {$one.input_state}

{$Orders->Lang('postal')}:* {$one.input_postal}

{$Orders->Lang('country')}:* {$one.input_country}

{$Orders->Lang('phone')}: {$one.input_phone}

{$Orders->Lang('fax')}: {$one.input_fax}

{$Orders->Lang('email')}: {$one.input_email}



{/foreach}

{if isset($promotions_avail)}
  {* we have a promotions module, ask for a coupon code *}

{$Orders->Lang('coupon_code')}:
{$Orders->Lang('info_coupon_code')}



{/if}


{$Orders->Lang('order_notes')}:
{$Orders->Lang('info_order_notes')}
{$order_notes}



Lang('submit')}"/>

{$formend}
{else}
  {* user is not logged in, gotta make him *}
  {$Orders->Lang('error_notloggedin')}
{/if}
--------------------------------------------

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 6:20 am
by Jeff
What is your system/server information?

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 11:26 am
by drsceifers
----------------------------------------------

Cms Version: 1.6.6

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 1.0.1
    * MenuManager: 1.6.2
    * ModuleManager: 1.3.1
    * News: 2.10.3
    * nuSOAP: 1.0.1
    * Search: 1.6.1
    * ThemeManager: 1.1.1
    * TinyMCE: 2.5.5
    * CGExtensions: 1.17.6
    * FrontEndUsers: 1.6.11
    * SelfRegistration: 1.2.5
    * CGSimpleSmarty: 1.4.3
    * CustomContent: 1.5.3
    * Products: 2.4.6
    * Cart: 1.4.2
    * CGPaymentGatewayBase: 1.0.3
    * Orders: 1.6.12
    * PriceBasedShipping: 1.0.2
    * warehouse_taxes: 1.1
    * FirstDataGateway: 1.0.2
    * PaypalGateway: 2.1.4


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 80000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension: /
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * phpversion: 5.2.6
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 24M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /hsphere/local/home/c63396/tmp (0705)
    * session.use_cookies: On (True)


Server Information:

    * Server Api: cgi-fcgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.67


----------------------------------------------

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 11:44 am
by Rolf
Try to upgrade your PHP to 5.2.10 or 5.2.11...

Regards, Rolf

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 12:06 pm
by drsceifers
Unfortunately I am in a hosting environment. I'm not sure I can update.

Is there something missing in the one I have loaded? I just upgraded this customer to the newest platform available.

It seems more like a coding error than a PHP issue. Do you have a specific theory of what might be wrong?

Thanks

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 12:23 pm
by Jeff
I don't have any ideas of what could be wrong.

You can try  printing {$shipping_inputs|@print_r} see if it gives you anything useful.

Re: zend_mm_heap corrupted

Posted: Tue Jan 12, 2010 1:46 pm
by Rolf
Do you have a specific theory of what might be wrong?
No, I don't  :D

But I worked on another topic recently with strange behavior on some websites and there also appeared zend_mm_heap corrupted.
Calguy discovered that the problem here was the PHP version. Release 5.2.10 or 5.2.11 solved the problems...

I thought it couldn't hurt to leave a post here. ;) Perhaps if you could easily change the php version... you never know...

Regards, Rolf   :)

Re: zend_mm_heap corrupted

Posted: Tue Feb 02, 2010 1:07 pm
by drsceifers
I have been trying to get my hosting company to upgrade the Php, but it isn't happening anytime soon.

Why would we write the module in such a way to rule out most of the shared hosting companies?

What is in the code that requires the later Php? Does anyone know? Perhaps I could code around the issue.

I'm just afraid I'm losing my client, I am actually faced with moving the site to wordpress, because at least they have a working store module.

Does anyone have a direction I can follow here?

Thanks!

Re: zend_mm_heap corrupted

Posted: Tue Feb 02, 2010 3:50 pm
by RJK
If PHP is the problem then you could just move hosts? We work with Rochen and having just checked, their PHP is 5.2.12. If it helps I could lend you have some space to test the environment for a week or two - you'd just need a domain name to use.

Re: zend_mm_heap corrupted

Posted: Wed Feb 03, 2010 10:55 am
by drsceifers
I'm actually trying to get someone to help me to understand whether it really is a PHP issue or perhaps a mis-installed or mis-configured module.

It seems like there's never been any declared requirement of PHP higher than 5.3.6.

Re: zend_mm_heap corrupted

Posted: Tue Feb 16, 2010 2:05 pm
by drsceifers
I have finally gotten the hosting company to upgrade to PHP 5.2.12 but the exact same problem exists.

It is as I feared, not a PHP problem.

Has anyone seen this issue with possibly an incomplete upgrade?

Or does anyone have a way to get more information from the system to help determine what is happening?

I'm about to lose this customer or have to move them to WordPress

Thanks for any ideas!