Jump to content

Set order to processing, then nothing


robertbell
 Share

Recommended Posts

When I manually set an order status to processing, either from within the order or from the unsettled order list, the status does not change and no page is returned. The error log says:

 	Today, 14:01 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	
	Today, 14:00 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	
	Today, 14:00 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	
	Today, 13:58 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&redirect=dashboard	
	Today, 13:57 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	
	Today, 13:57 	[<strong>Exception</strong>] /home/sojourn1/public_html/modules/gateway/Card_Capture/gateway.class.php:24 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	
	Today, 13:56 	[<strong>Deprecated</strong>] /home/sojourn1/public_html/admin_2T68Ql/sources/orders.index.inc.php:307 - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard	str_replace

 

Link to comment
Share on other sites

For a work-around, please try this:

In /classes/order.class.php:
Near line 501, find:
if(!empty($order_summary['gateway']) && file_exists(CC_ROOT_DIR.'/modules/gateway/'.$order_summary['gateway'].'/gateway.class.php')) {

Change to:
if(isset($GLOBALS['cart']) && !empty($order_summary['gateway']) && file_exists(CC_ROOT_DIR.'/modules/gateway/'.$order_summary['gateway'].'/gateway.class.php')) {

 

Link to comment
Share on other sites

Sorry

Today, 16:39	[<strong>Exception</strong>] /home/sojourn1/public_html/classes/order.class.php:66 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard
	Today, 16:39	[<strong>Exception</strong>] /home/sojourn1/public_html/classes/order.class.php:66 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard
	Today, 16:39	[<strong>Exception</strong>] /home/sojourn1/public_html/classes/order.class.php:66 - Attempt to modify property "basket" on null
https://www.sojourner.biz/admin_xxxxxxx.php?_g=orders&action=edit&order_id=220910-115803-6481&source=dashboard
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/user.class.php:719 - strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:30	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/debug.class.php:260 - strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated
https://172.96.187.225:443/
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
http:///phpMyAdmin/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
http:///phpMyAdmin/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
http:///phpMyAdmin/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
http:///phpMyAdmin/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/debug.class.php:260 - strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated
http:///phpMyAdmin/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
http:///pma/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
http:///pma/scripts/setup.php
	Today, 16:07	[<strong>Deprecated</strong>] /home/sojourn1/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
http:///pma/scripts/setup.php

 

Link to comment
Share on other sites

In your file: /classes/order.class.php, line 66, please show what the statement is for that line.

This is what I have for lines 64-66:

        if (!defined('ORDER_PROCESS')) {
            define('ORDER_PROCESS', self::ORDER_PROCESS);
        }

 

Link to comment
Share on other sites

Because there is this expression on line 81:

if(isset($GLOBALS['cart'])) {

then by adding the new piece of code to line 501, there should be no problem.

In fact, your recent error log points to a problem on line 66 in the order.class.php file - not in the gateway.class.php file as seen in the first post.

In the order.class.php file, lines 59-78, a comment suggests that these lines can be removed.

If you choose to re-instate the edit on line 501, and then also remove lines 59-78, please let us know what happens.

Link to comment
Share on other sites

Resolving the 'deprecation' errors is an ongoing effort. Many issues were resolved in CC647 with many more resolved in the upcoming CC648.

Please know that even if a statement throws a 'deprecated' error message, the statement still executes its functionality just as it did in PHP7.4.

To quiet the reporting of these messages, disable CubeCart's Debug mode (admin, Store Settings, Advanced tab).

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...