chadderuski:
Hi All!
I'm receiving this error in my admin debug log:
[07-Apr-2011 13:39:38] PHP Warning: stripslashes() expects parameter 1 to be string, array given in /home/server/public_html/admin/super_orders.php on line 131
Also, I am not getting the shipping detail line to show anywhere. But order total shows the shipping costs added in.
Any ideas? Oh, I do have TY Tracker installed and turned on/linked.
Hi. It just so happens that I am now getting the same report in my cache folder. Originally I was getting reports containing the following:
[13-Sep-2011 16:55:38] PHP Warning: Missing argument 5 for update_status(), called in /var/www/vhosts/super_payments.php on line 59 and defined in /var/www/vhosts/includes/functions/extra_functions/common_orders_functions.php on line 77
[13-Sep-2011 16:55:38] PHP Warning: Missing argument 6 for update_status(), called in /var/www/vhosts/super_payments.php on line 59 and defined in /var/www/vhosts/includes/functions/extra_functions/common_orders_functions.php on line 77
Repeated for argument 7, 8 and 9
I found a fix through this forum as below which did actually stop the above php warning.
hey_you:
I had this as well.
In the admin folder under Includes > Functions > Extra Functions
Edit the common_orders_functions.php file:
Change line 77 from:
function update_status($oID, $new_status, $customer_notified, $comments = '', $track_id1, $track_id2, $track_id3, $track_id4, $track_id5) {
>
> to:
> ```php
function update_status($oID, $new_status, $customer_notified = 0, $comments = '', $track_id1 = '', $track_id2 = '', $track_id3 = '', $track_id4 = '', $track_id5 = '') {
It appeared to fix one issue and created another.
To give some idea to help. I'm using zen 1.3.9h. I have Super Orders 3, Edit Orders 3 and TY Tracker installed. As far as I can tell all systems are go as long as you don't touch the batch buttons, whether emails or printing. I beleive the issue has a lot do with the common_orders_functions.php. After reading a great deal of posts, I am unable to find an answer.
I think this is an absolute superb mod and I am one of those people that doesn't like to see warning or errors.
I have read that a new version will be out sometime that eliminates the common_orders_funtion.php all together. Can anybody confirm this? if so, and I can't sort out the warnings I may have to wait for the new version and purge the cache folder occasionally.
Many thanks to any one who can look at this.