500 error when trying to view order

I’m running the multi-vendor version 4.14.3.SP1 of CS Cart, which is a fresh install. When trying to view an order in either the main admin or vendor panel, it returns a 500 service unavailable error (see screenshot below).

It’s the first time I’ve seen this issue and can’t seem to find a solution. It happens in all modern browsers. My server specs are the following: PHP version 8.0, MariaDB 10.4

Here’s the code of where the error appears:

<div class="well orders-right-pane form-horizontal">
                <div class="control-group">
                    <div class="control-label"><h4 class="subheader">Status</h4></div>
                    <div class="controls">
                        
                                                                                                                                                                            
                                                                                    
        
<div class="cm-popup-box dropdown dropleft">
            <a href="#" id="sw_select_98_wrap" class="btn-text status-dropdown-c btn dropdown-toggle cm-combination dropdown-toggle--text-wrap" data-toggle="dropdown">
                        Complete
                    <span class="caret"></span>
        </a>
                            <ul class="dropdown-menu">
                                                                                                <li>
                    <a class="dropdown--text-wrap status-link-p cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=P&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'p', '#97cf4d');" data-ca-event="ce.update_object_status_callback" title="Paid">Paid</a>
                </li>
                                <li class="disabled">
                    <a class="dropdown--text-wrap status-link-c active " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=C&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'c', '#97cf4d');" data-ca-event="ce.update_object_status_callback" title="Complete">Complete</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-o cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=O&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'o', '#ff9522');" data-ca-event="ce.update_object_status_callback" title="Open">Open</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-f cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=F&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'f', '#ff5215');" data-ca-event="ce.update_object_status_callback" title="Failed">Failed</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-d cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=D&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'd', '#ff5215');" data-ca-event="ce.update_object_status_callback" title="Declined">Declined</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-b cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=B&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'b', '#28abf6');" data-ca-event="ce.update_object_status_callback" title="Backordered">Backordered</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-i cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=I&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'i', '#c2c2c2');" data-ca-event="ce.update_object_status_callback" title="Canceled">Canceled</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-y cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=Y&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'y', '#cc4125');" data-ca-event="ce.update_object_status_callback" title="Awaiting call">Awaiting call</a>
                </li>
                                <li>
                    <a class="dropdown--text-wrap status-link-n cm-ajax cm-post " data-ca-target-id="content_downloads" href="https://phpstack-665568-3287955.cloudwaysapps.com/vendor.php?dispatch=orders.update_status&amp;id=98&amp;status=N&amp;return_url=vendor.php%3Fdispatch%3Dorders.details%26order_id%3D98" onclick="return fn_check_object_status(this, 'n', '');" data-ca-event="ce.update_object_status_callback" title="Incomplete">Incomplete</a>
                </li>
                                        
                                            
    
            <li class="divider"></li>
        <li><a><label for="select_98_notify">
            <input type="checkbox" name="__notify_user" id="select_98_notify" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_user]').prop('checked', this.checked);">
            Notify customer</label></a>
        </li>
                <li><a><label for="select_98_notify_department">
            <input type="checkbox" name="__notify_department" id="select_98_notify_department" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_department]').prop('checked', this.checked);">
            Notify orders department</label></a>
        </li>
                <li><a><label for="select_98_notify_vendor">
            <input type="checkbox" name="__notify_vendor" id="select_98_notify_vendor" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_vendor]').prop('checked', this.checked);">
            Notify vendor</label></a>
        </li>
                




            
                    </ul>
                <!-- Inline script moved to the bottom of the page -->
                    </div>

                        

                    </div>
                </div>

                <div class="control-group shift-top">
                    <h4 class="subheader  ">
    Payment information
        </h4>

                </div>
                


<meta name="robots" content="noindex, nofollow">
<title>Service unavailable</title>

<style>
.bigEntrance{
    animation-name: bigEntrance;
    -webkit-animation-name: bigEntrance;
    animation-duration: 1.6s;
    -webkit-animation-duration: 1.6s;
    animation-timing-function: ease-out;
    -webkit-animation-timing-function: ease-out;
    visibility: visible !important;
}

@keyframes bigEntrance {
    0% {
        transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
        opacity: 0.2;
    }
    30% {
        transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);
        opacity: 1;
    }
    45% {
        transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }
    60% {
        transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }   
    75% {
        transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }
    90% {
        transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);
        opacity: 1;
    }   
    100% {
        transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
        opacity: 1;
    }       
}

@-webkit-keyframes bigEntrance {
    0% {
        -webkit-transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
        opacity: 0.2;
    }
    30% {
        -webkit-transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);
        opacity: 1;
    }
    45% {
        -webkit-transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }
    60% {
        -webkit-transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }   
    75% {
        -webkit-transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
        opacity: 1;
    }
    90% {
        -webkit-transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);
        opacity: 1;
    }   
    100% {
        -webkit-transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
        opacity: 1;
    }               
}

body {
    margin-top: 100px;
    font-family: Tahoma;
}

.banner {
    background-color: #fe5652;
    border-radius: 24px;
    color: #ffffff;
    font-weight: normal; 
    font-size: 68px;
    padding: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    display: inline-block;
    zoom: 1;
    display*: inline; /* ie hack */

}

.banner-inner {
    border-radius: 20px;
    border: 4px solid #ffffff;
    padding: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    text-align:center;
}

.message {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
}

</style>



<div class="container">
    <div class="bigEntrance banner">
        <div class="banner-inner">
        Service<br> unavailable
        </div>
    </div>
</div>

<div class="message">
Sorry, service is temporarily unavailable.
</div>
                 
</div>

What payment method do you use? Try to enable store-front and check the result

Phone ordering, as nothing else is connected yet. I’ve tried purchase order too and it’s the same issue.

Another things I have noticed is the issue happens only when trying to view an order. If I edit, it renders fine for both admin and vendor panel.

The issue seems to be with this controller: ?dispatch=orders.details&order_id=99

Interestingly when you view the order via /index.php?dispatch=orders.details&order_id=98, it renders fine… so it’s specifically an admin/vendor panel issue.

PHP 8.0 wasn’t stable until 4.15.1 try PHP 7.4

2 Likes

Downgraded to 7.4 and all works. Thanks a lot @chickentwisty!

1 Like